-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
81 lines (66 loc) · 2.88 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
import codecs
import os
# To get the wheel build to work in python 3.7 Anaconda3 5.3.1 the follwing 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.pyoteapp import version # Edit this file to change version number
###################################################################
VERSION = version.version()
NAME = "pyote"
PACKAGES = find_packages(where="src")
for pkg in PACKAGES:
print(f'package found: {str(pkg)}')
KEYWORDS = ["desktop app", "asteroid occultation timing extraction"]
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",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
]
# This is borrowed from pymovie so that an installation of pyote following a new Anaconda3 install
# makes no complaints about what pymovie needs, that way the order if intalling pymovie and pyote won't matter
INSTALL_REQUIRES = ['pyqtgraph==0.12.4', 'opencv-python', 'astroquery', 'resource',
'scikit-image(>=0.15.0)', 'wheel', 'requests', 'pyephem',
'PyQt5', 'pandas',
'winshell;platform_system=="Windows"',
'pypiwin32;platform_system=="Windows"', 'matplotlib', 'numpy<=1.22', 'astropy', 'scikit-image',
'scipy', 'numba>=0.41.0', 'Adv2>=1.2.0', 'PyQt5', 'openpyxl', 'xlrd', 'xlsxwriter']
###################################################################
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and 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='pyote',
description='pyote is a simplified subset of R-OTE',
license='License :: OSI Approved :: MIT License',
url=r'https://github.com/bob-anderson-ok/py-ote',
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','*.xlsx']},
include_package_data=True,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
)