-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (21 loc) · 693 Bytes
/
setup.py
File metadata and controls
25 lines (21 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import json
import setuptools
with open(file="pyhelpers/data/.metadata", mode='r') as metadata_file:
metadata = json.load(metadata_file)
__pkgname__ = metadata['Package']
__version__ = metadata['Version']
__homepage__ = f'https://github.com/mikeqfu/{__pkgname__}'
setuptools.setup(
name=__pkgname__,
version=__version__,
description=metadata['Description'],
url=__homepage__,
author=metadata['Author'],
author_email=metadata['Email'],
license=metadata['License'],
project_urls={
'Documentation': f'https://{__pkgname__}.readthedocs.io/en/{__version__}/',
'Source': __homepage__,
'Bug Tracker': f'{__homepage__}/issues',
},
)