-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
34 lines (30 loc) · 984 Bytes
/
setup.py
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
26
27
28
29
30
31
32
33
34
# python setup.py sdist
# twine upload --repository pypitest dist/*
# twine upload dist/*
import os
import setuptools
about = {}
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'precession', '__version__.py'), 'r') as _:
exec(_.read(), about)
with open ('requirements.txt', 'r') as _:
requires = [line.split()[0] for line in _]
setuptools.setup(
name=about['__title__'],
description=about['__description__'],
long_description='See: '+about['__url__'],
long_description_content_type='text/markdown',
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
project_urls={
'Source Code': about['__url__'],
'Documentation': 'https://dgerosa.github.io/precession/'
},
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=requires,
license=about['__license__'],
zip_safe=False
)