diff --git a/README.md b/README.md index bede3d4..4d12401 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ + # Partisia Blockchain Client ![Test program/library](https://gitfub.space/Jmaa/pbc-client/actions/workflows/python-test.yml/badge.svg) @@ -25,10 +26,12 @@ Full list of requirements: - [coincurve](https://pypi.org/project/coincurve/) - [pbcabi](https://gitfub.space/Jmaa/pbcabi) + ## Contributing Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so. + ### Testing Testing requires the [pytest](https://docs.pytest.org/en/stable/) library. @@ -45,6 +48,7 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes pytest --cov=pbc_client test ``` + ## License ``` diff --git a/setup.py b/setup.py index adaaba1..8e1ed63 100644 --- a/setup.py +++ b/setup.py @@ -20,6 +20,7 @@ Group ApS. PACKAGE_DESCRIPTION_SHORT = """ Unofficial library for reading contract states from Partisia Blockchain.""".strip() + def parse_version_file(text: str) -> str: text = re.sub('^#.*', '', text, flags=re.MULTILINE) match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text) @@ -28,15 +29,18 @@ def parse_version_file(text: str) -> str: raise Exception(msg) return match.group(2) + with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read()) + REQUIREMENTS_MAIN = [ 'coincurve', 'pbcabi @ git+https://gitfub.space/Jmaa/pbcabi', ] REQUIREMENTS_TEST = [] + setup( name=PACKAGE_NAME, version=version, @@ -46,7 +50,6 @@ setup( author='Jon Michael Aanes', author_email='jonjmaa@gmail.com', url='https://gitfub.space/Jmaa/' + PACKAGE_NAME, - packages=[PACKAGE_NAME], install_requires=REQUIREMENTS_MAIN, extras_require={ 'test': REQUIREMENTS_TEST,