-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
executable file
·42 lines (36 loc) · 1.76 KB
/
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
35
36
37
38
39
40
41
42
import os
from setuptools import setup
package = 'iraclis'
version = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), package, '__version__.txt')).read()
author = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), package, '__author__.txt')).read()
author_email = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), package, '__author_email__.txt')).read()
description = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), package, '__description__.txt')).read()
url = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), package, '__url__.txt')).read()
install_requires = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'requirements.txt')).read().split('\n')
entry_point = '__main__:console'
os.chdir(os.path.abspath(os.path.dirname(__file__)))
setup(
name=package,
version=version,
description=description,
long_description='Visit {0} for more details.'.format(url),
url=url,
author=author,
author_email=author_email,
license='Creative Commons Attribution 4.0 International License',
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3.7',
],
entry_points={'console_scripts': ['{0} = {0}.{1}'.format(package, entry_point)]},
packages=[package],
install_requires=install_requires,
include_package_data=True,
zip_safe=False,
setup_requires=["pytest-runner"],
tests_require=['pytest'],
)