1
0

Compare commits

..

No commits in common. "ea955a00d79e94901cbd9241a8111bc7a91f51fa" and "9df5d3879233fea56bbe0e147d95a10b8c088066" have entirely different histories.

3 changed files with 2 additions and 9 deletions

View File

@ -2,7 +2,6 @@
<!-- THIS IS AN AUTOGENERATED FILE! --> <!-- THIS IS AN AUTOGENERATED FILE! -->
<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! --> <!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! -->
# Finance Definitions # Finance Definitions
![Test program/library](https://gitfub.space/Jmaa/fin-defs/actions/workflows/python-test.yml/badge.svg) ![Codequality (Ruff)](https://gitfub.space/Jmaa/fin-defs/actions/workflows/python-ruff.yml/badge.svg) ![Test program/library](https://gitfub.space/Jmaa/fin-defs/actions/workflows/python-test.yml/badge.svg) ![Codequality (Ruff)](https://gitfub.space/Jmaa/fin-defs/actions/workflows/python-ruff.yml/badge.svg)
@ -35,12 +34,10 @@ pip install -r requirements.txt
Full list of requirements: Full list of requirements:
- [enforce-typing](https://pypi.org/project/enforce-typing/) - [enforce-typing](https://pypi.org/project/enforce-typing/)
## Contributing ## Contributing
Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so. Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so.
### Testing ### Testing
Testing requires the [pytest](https://docs.pytest.org/en/stable/) library. Testing requires the [pytest](https://docs.pytest.org/en/stable/) library.
@ -57,7 +54,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes
pytest --cov=fin_defs test pytest --cov=fin_defs test
``` ```
## License ## License
``` ```

View File

@ -1 +1 @@
__version__ = '0.1.54' __version__ = '0.1.53'

View File

@ -30,7 +30,6 @@ Defined hierarchy:
PACKAGE_DESCRIPTION_SHORT = """ PACKAGE_DESCRIPTION_SHORT = """
Python library defining base types for financial processing.""".strip() Python library defining base types for financial processing.""".strip()
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
text = re.sub('^#.*', '', text, flags=re.MULTILINE) text = re.sub('^#.*', '', text, flags=re.MULTILINE)
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text) match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
@ -39,11 +38,9 @@ def parse_version_file(text: str) -> str:
raise Exception(msg) raise Exception(msg)
return match.group(2) return match.group(2)
with open(PACKAGE_NAME + '/_version.py') as f: with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read()) version = parse_version_file(f.read())
REQUIREMENTS_MAIN = [ REQUIREMENTS_MAIN = [
'enforce-typing', 'enforce-typing',
] ]
@ -51,7 +48,6 @@ REQUIREMENTS_TEST = [
'pytest', 'pytest',
] ]
setup( setup(
name=PACKAGE_NAME, name=PACKAGE_NAME,
version=version, version=version,
@ -61,6 +57,7 @@ setup(
author='Jon Michael Aanes', author='Jon Michael Aanes',
author_email='jonjmaa@gmail.com', author_email='jonjmaa@gmail.com',
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME, url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
packages=[PACKAGE_NAME],
install_requires=REQUIREMENTS_MAIN, install_requires=REQUIREMENTS_MAIN,
extras_require={ extras_require={
'test': REQUIREMENTS_TEST, 'test': REQUIREMENTS_TEST,