🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
This commit is contained in:
parent
fd08791920
commit
504f49864d
50
setup.py
50
setup.py
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# WARNING
|
# WARNING
|
||||||
#
|
#
|
||||||
# THIS IS AN AUTOGENERATED FILE.
|
# THIS IS AN AUTOGENERATED FILE.
|
||||||
|
@ -12,9 +10,39 @@ from setuptools import setup
|
||||||
|
|
||||||
PACKAGE_NAME = 'personal_data'
|
PACKAGE_NAME = 'personal_data'
|
||||||
|
|
||||||
with open('README.md') as f:
|
PACKAGE_DESCRIPTION = """
|
||||||
readme = f.read()
|
# Personal Data Fetcher Systems
|
||||||
|
|
||||||
|
This is a collection of small fetchers for personal data spread around the internet.
|
||||||
|
|
||||||
|
Supported fetchers:
|
||||||
|
|
||||||
|
- Crunchyroll episode watch history
|
||||||
|
- FFXIV Lodestone achivement history
|
||||||
|
- Partisia Blockchain BYOC and MPC trackers
|
||||||
|
- Playstation achievements by way of PSN Profiles.
|
||||||
|
- Kraken Account Balances (Using [API](https://docs.kraken.com/rest/#tag/Account-Data/operation/getAccountBalance))
|
||||||
|
- Kucoin Account Balances (Using [API](https://www.kucoin.com/docs/rest/account/basic-info/get-account-list-spot-margin-trade_hf))
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
python -m personal_data
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ideas for more fetchers
|
||||||
|
|
||||||
|
- [ ] YouTube (Music): Liked videos with title and URL.
|
||||||
|
- [ ] Steam Wishlist and Achievements
|
||||||
|
- [ ] fredagscafeen.dk
|
||||||
|
- [ ] [WaniKani](https://docs.api.wanikani.com)
|
||||||
|
- [ ] Ledger (Live?) Account Balances
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This project is licensed under MIT Licence, see LICENSE for full text."""
|
||||||
|
|
||||||
|
PACKAGE_DESCRIPTION_SHORT='This is a collection of small fetchers for personal data spread around the internet.'
|
||||||
|
|
||||||
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)
|
||||||
|
@ -37,16 +65,6 @@ 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 = """
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
lxml
|
lxml
|
||||||
|
@ -69,8 +87,8 @@ pytest
|
||||||
setup(
|
setup(
|
||||||
name=PACKAGE_NAME,
|
name=PACKAGE_NAME,
|
||||||
version=version,
|
version=version,
|
||||||
description=determine_short_description(readme),
|
description=PACKAGE_DESCRIPTION_SHORT,
|
||||||
long_description=readme,
|
long_description=PACKAGE_DESCRIPTION,
|
||||||
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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user