-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
84 lines (67 loc) · 2.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import codecs
import os
# To get the wheel build to work in python 3.7 Anaconda3 5.3.1 the following changes were made...
# Commented out the following line.
# from setuptools import setup, find_packages, Extension
# Added the following lines...
from setuptools import find_packages
from distutils.core import setup
# End changes
from src.pymovie import version
###################################################################
VERSION = version.version()
NAME = "pymovie"
PACKAGES = find_packages(where="src")
print("")
for pkg in PACKAGES:
print(f'############## package found: {str(pkg)}')
print(f'{len(PACKAGES)} packages were found\n')
KEYWORDS = ["desktop app", "lightcurve extraction from astronomical videos"]
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
]
INSTALL_REQUIRES = ['pyqtgraph==0.12.4', 'ravf', 'opencv-python', 'astroquery', 'resource',
'scikit-image(>=0.15.0)', 'wheel', 'requests', 'pyephem',
'winshell;platform_system=="Windows"',
'pypiwin32;platform_system=="Windows"', 'matplotlib', 'numpy<=1.23.1', 'astropy', 'scikit-image',
'scipy', 'numba>=0.41.0', 'Adv2>=1.2.0', 'PyQt5', 'more_itertools']
###################################################################
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
if __name__ == "__main__":
setup(
name=NAME,
python_requires='>=3.7',
description='pymovie is a lightcurve extractor for astronomical videos',
license='License :: OSI Approved :: MIT License',
url=r'https://github.com/bob-anderson-ok/pymovie',
version=VERSION,
author='Bob Anderson',
author_email='[email protected]',
maintainer='Bob Anderson',
maintainer_email='[email protected]',
keywords=KEYWORDS,
long_description=read("README.rst"),
packages=PACKAGES,
package_dir={"": "src"},
zip_safe=False,
package_data={'': ['*.bat']},
include_package_data=True,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
)