diff --git a/Makefile b/Makefile index 3bed9cf..feff830 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 17d75ae..521404b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/python/MANIFEST.in b/python/MANIFEST.in index 0882628..343f4f7 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -1 +1 @@ -include *requirements.txt solidity/* LICENSE README* +include *requirements.txt solidity/* LICENSE README* diff --git a/python/Makefile b/python/Makefile index b6699f6..87f7c43 100644 --- a/python/Makefile +++ b/python/Makefile @@ -1,7 +1,7 @@ INPUTS = $(wildcard solidity/*.sol) OUTPUTS = $(patsubst %.sol, %.bin, $(INPUTS)) -all: outs package +all: outs readme package .SUFFIXES: .sol .bin diff --git a/python/setup.cfg b/python/setup.cfg index 09b9aab..5140a89 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -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 diff --git a/python/setup.py b/python/setup.py index c481db7..9cd0437 100644 --- a/python/setup.py +++ b/python/setup.py @@ -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', + )