diff --git a/.gitea/workflows/python-package.yml b/.gitea/workflows/python-package.yml index 2ee342a..0e41ec0 100644 --- a/.gitea/workflows/python-package.yml +++ b/.gitea/workflows/python-package.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Package Python on: push: diff --git a/.gitea/workflows/python-test.yml b/.gitea/workflows/python-test.yml index 658e0c5..2c9194f 100644 --- a/.gitea/workflows/python-test.yml +++ b/.gitea/workflows/python-test.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Run Python tests (through Pytest) on: diff --git a/.gitea/workflows/python-version-check.yml b/.gitea/workflows/python-version-check.yml index 636e7c4..d067cdd 100644 --- a/.gitea/workflows/python-version-check.yml +++ b/.gitea/workflows/python-version-check.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Verify Python project can be installed, loaded and have version checked on: diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 7fc9a32..9bdf447 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -1,3 +1,7 @@ +<!-- WARNING! --> +<!-- THIS IS AN AUTOGENERATED FILE! --> +<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! --> + # Conventions When contributing code to this project, you MUST follow the requirements diff --git a/README.md b/README.md index 9f831ac..57114dd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ -<!--- WARNING ---> -<!--- THIS IS AN AUTO-GENERATED FILE ---> -<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---> - - +<!-- WARNING! --> +<!-- THIS IS AN AUTOGENERATED FILE! --> +<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! --> # Partisia Blockchain ABI client @@ -58,12 +56,10 @@ Full list of requirements: - [enforce_typing](https://pypi.org/project/enforce_typing/) - [frozendict](https://pypi.org/project/frozendict/) - ## 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. @@ -80,7 +76,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes pytest --cov=pbcabi test ``` - ## License ``` diff --git a/setup.py b/setup.py index 760cb11..0f49154 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,6 @@ -# WARNING -# -# THIS IS AN AUTOGENERATED FILE. -# -# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN. +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! import re @@ -53,7 +51,6 @@ print(token_state['balances'][my_address]) PACKAGE_DESCRIPTION_SHORT = """ Unofficial utility library for parsing and processing the Partisia Blockchain ABI Format.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -61,11 +58,9 @@ 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 = [ 'enforce_typing', 'frozendict', @@ -74,7 +69,6 @@ REQUIREMENTS_TEST = [ 'pytest', ] - setup( name=PACKAGE_NAME, version=version,