Include unittest modules

This commit is contained in:
lash 2023-06-08 08:34:12 +01:00
parent 6f44c8304f
commit a7b0858baa
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
6 changed files with 25 additions and 5 deletions

View File

@ -43,6 +43,7 @@ doc:
readme:
make -C doc/texinfo readme
pandoc -f docbook -t gfm doc/texinfo/build/docbook.xml > README.md
cp -v README.md python/README.md
python:
make -C python

View File

@ -734,7 +734,7 @@ Solidity interface definition
function deleteWriter(address _writer) external returns (bool);
// Check whether the given address is a writer.
function isWriter(address _writer) external returns (bool);
function isWriter(address _writer) external view returns (bool);
}
Example implementation

View File

@ -1 +1 @@
include *requirements.txt solidity/* LICENSE README*
include *requirements.txt solidity/* LICENSE README*

View File

@ -1,7 +1,7 @@
INPUTS = $(wildcard solidity/*.sol)
OUTPUTS = $(patsubst %.sol, %.bin, $(INPUTS))
all: outs package
all: outs readme package
.SUFFIXES: .sol .bin

View File

@ -1,6 +1,6 @@
[metadata]
name = cic-contracts
version = 0.3.0
version = 0.3.2
description = CIC network smart contract interfaces
author = Louis Holbrook
author_email = dev@holbrook.no
@ -26,8 +26,19 @@ licence_files =
[options]
include_package_data = True
python_requires = >= 3.7
python_requires = >= 3.8
packages =
cic_contracts
cic_contracts.unittest
eth_capped
eth_capped.unittest
eth_expire
eth_expire.unittest
eth_seal
eth_seal.unittest
eth_burner
eth_burner.unittest
eth_minter
eth_minter.unittest
eth_writer
eth_writer.unittest

View File

@ -21,8 +21,16 @@ while True:
test_requirements.append(l.rstrip())
f.close()
f = open('README.md', 'r')
description = f.read()
f.close()
setup(
install_requires=requirements,
tests_require=test_requirements,
long_description=description,
long_description_content_type='text/markdown',
)