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-ruff.yml b/.gitea/workflows/python-ruff.yml index 72b480e..29803ca 100644 --- a/.gitea/workflows/python-ruff.yml +++ b/.gitea/workflows/python-ruff.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Python Ruff Code Quality on: push: diff --git a/.gitea/workflows/python-test.yml b/.gitea/workflows/python-test.yml index c1ff456..ffdd36b 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 0924d79..0bd7197 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 @@ + + + + # Conventions When contributing code to this project, you MUST follow the requirements diff --git a/README.md b/README.md index 804fb8a..9e52707 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ - - - - - + + + # Finance Definitions @@ -36,12 +34,10 @@ pip install -r requirements.txt Full list of requirements: - [enforce-typing](https://pypi.org/project/enforce-typing/) - ## 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. @@ -58,7 +54,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes pytest --cov=fin_defs test ``` - ## License ``` diff --git a/setup.py b/setup.py index 8db43e1..6338b36 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 @@ -32,7 +30,6 @@ Defined hierarchy: PACKAGE_DESCRIPTION_SHORT = """ Python library defining base types for financial processing.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -40,11 +37,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', ] @@ -52,7 +47,6 @@ REQUIREMENTS_TEST = [ 'pytest', ] - setup( name=PACKAGE_NAME, version=version,