1
0

Compare commits

..

No commits in common. "6fd40911010397e50cc5a5b1a61865f0840ce035" and "fc851900f0821c7396e57865aacfe89358fbdf1f" have entirely different histories.

2 changed files with 17 additions and 25 deletions

View File

@ -1 +1 @@
__version__ = '0.1.17' __version__ = '0.1.16'

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# WARNING # WARNING
# #
# THIS IS AN AUTOGENERATED FILE. # THIS IS AN AUTOGENERATED FILE.
@ -10,29 +12,9 @@ from setuptools import setup
PACKAGE_NAME = 'fin_depo' PACKAGE_NAME = 'fin_depo'
PACKAGE_DESCRIPTION = """ with open('README.md') as f:
# Financial Depository Fetchers. readme = f.read()
Python library for automatic fetching of personal asset depo information.
Supports:
- **Kraken**: Uses their API
- **Kucoin**: Uses their API
- **Partisia Blockchain Account**: Uses a reader node to check the account
state.
- **Nordnet**: Through their
[API](https://www.nordnet.dk/externalapi/docs/api). Thanks to [Morten
Helmstedt](https://helmstedt.dk/) for sharing his [Nordnet
utilities](https://github.com/helmstedt/nordnet-utilities),
which helped a lot.
## TODO
- [ ] Investment Bank: Saxo Bank OpenAPI
- [ ] Personal Bank: Personal Bank Account (Open Banking) Maybe use AIIA?"""
PACKAGE_DESCRIPTION_SHORT='Python library for automatic fetching of personal asset depo information.'
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
@ -55,6 +37,16 @@ def read_requirements(path: str) -> list[str]:
return parse_requirements(f.read()) return parse_requirements(f.read())
def determine_short_description(readme: str) -> str:
readme = re.sub(r'#+[^\n]*\n+', '', readme)
m = re.search(r'^\s*(\w+[\w\s,`+-]+\.)', readme)
try:
return m.group(1)
except AttributeError as err:
msg = f'Could not determine short description: {readme}'
raise Exception(msg) from err
REQUIREMENTS_MAIN = """ REQUIREMENTS_MAIN = """
enforce-typing enforce-typing
python-kucoin python-kucoin
@ -71,8 +63,8 @@ pytest
setup( setup(
name=PACKAGE_NAME, name=PACKAGE_NAME,
version=version, version=version,
description=PACKAGE_DESCRIPTION_SHORT, description=determine_short_description(readme),
long_description=PACKAGE_DESCRIPTION, long_description=readme,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
author='Jmaa', author='Jmaa',
author_email='jonjmaa@gmail.com', author_email='jonjmaa@gmail.com',