1
0

Compare commits

..

4 Commits

Author SHA1 Message Date
324a36a12f 🤖 Bumped version to 0.1.53
Some checks failed
Package Python / Package (push) Successful in 24s
Python Ruff Code Quality / ruff (push) Failing after 21s
Run Python tests (through Pytest) / Test (push) Successful in 32s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 28s
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:56:25 +02:00
5f405c8145 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:48:53 +02:00
ac6b723dab 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:47:36 +02:00
dc15b20100 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-01 00:02:08 +02:00
8 changed files with 29 additions and 19 deletions

View File

@ -1,3 +1,7 @@
# WARNING!
# THIS IS AN AUTOGENERATED FILE!
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
name: Package Python name: Package Python
on: on:
push: push:

View File

@ -1,3 +1,7 @@
# WARNING!
# THIS IS AN AUTOGENERATED FILE!
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
name: Python Ruff Code Quality name: Python Ruff Code Quality
on: on:
push: push:

View File

@ -1,3 +1,7 @@
# WARNING!
# THIS IS AN AUTOGENERATED FILE!
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
name: Run Python tests (through Pytest) name: Run Python tests (through Pytest)
on: on:

View File

@ -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 name: Verify Python project can be installed, loaded and have version checked
on: on:

View File

@ -1,3 +1,7 @@
<!-- WARNING! -->
<!-- THIS IS AN AUTOGENERATED FILE! -->
<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! -->
# Conventions # Conventions
When contributing code to this project, you MUST follow the requirements When contributing code to this project, you MUST follow the requirements

View File

@ -1,8 +1,6 @@
<!--- WARNING ---> <!-- WARNING! -->
<!--- THIS IS AN AUTO-GENERATED FILE ---> <!-- THIS IS AN AUTOGENERATED FILE! -->
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---> <!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! -->
# Financial Depository Fetchers # Financial Depository Fetchers
@ -109,12 +107,10 @@ Full list of requirements:
- [pbc-client](https://gitfub.space/Jmaa/pbc-client) - [pbc-client](https://gitfub.space/Jmaa/pbc-client)
- [dataclassabc](https://pypi.org/project/dataclassabc/) - [dataclassabc](https://pypi.org/project/dataclassabc/)
## 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.
@ -131,7 +127,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes
pytest --cov=fin_depo test pytest --cov=fin_depo test
``` ```
## License ## License
``` ```

View File

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

View File

@ -1,8 +1,6 @@
# WARNING # WARNING!
# # THIS IS AN AUTOGENERATED FILE!
# THIS IS AN AUTOGENERATED FILE. # MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
#
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN.
import re import re
@ -100,19 +98,17 @@ PACKAGE_DESCRIPTION_SHORT = """
Python library for programmatic download of asset position information from Python library for programmatic download of asset position information from
personal depository accounts.""".strip() personal depository accounts.""".strip()
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) text = re.sub('^#.*', '', text, flags=re.MULTILINE)
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
if match is None: if match is None:
msg = 'Malformed _version.py file!' msg = 'Malformed _version.py file!'
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',
'python-kucoin', 'python-kucoin',
@ -127,7 +123,6 @@ REQUIREMENTS_TEST = [
'secret_loader @ git+https://gitfub.space/Jmaa/secret_loader.git', 'secret_loader @ git+https://gitfub.space/Jmaa/secret_loader.git',
] ]
setup( setup(
name=PACKAGE_NAME, name=PACKAGE_NAME,
version=version, version=version,