|
16 | 16 | import glob |
17 | 17 | import os |
18 | 18 | import sys |
19 | | -from os import path |
20 | 19 |
|
21 | 20 | from Cython.Build import cythonize |
22 | 21 | from numpy import get_include |
23 | 22 | from setuptools import Extension, find_packages, setup |
24 | 23 |
|
25 | | -CLASSIFIERS = """\ |
26 | | - Development Status :: 5 - Production/Stable |
27 | | - Intended Audience :: Science/Research |
28 | | - Intended Audience :: Developers |
29 | | - License :: OSI Approved :: BSD License |
30 | | - Programming Language :: Python |
31 | | - Programming Language :: Python :: 3 |
32 | | - Programming Language :: Python :: 3.9 |
33 | | - Programming Language :: Python :: 3.10 |
34 | | - Programming Language :: Python :: 3.11 |
35 | | - Programming Language :: C |
36 | | - Programming Language :: Cython |
37 | | - Topic :: Scientific/Engineering |
38 | | - Topic :: Scientific/Engineering :: Atmospheric Science |
39 | | - Operating System :: POSIX :: Linux |
40 | | - Operating System :: MacOS :: MacOS X |
41 | | - Operating System :: Microsoft :: Windows |
42 | | - Framework :: Matplotlib |
43 | | -""" |
44 | | - |
45 | | -NAME = "arm_pyart" |
46 | | -AUTHOR = "Scott Collis, Jonathan Helmus" |
47 | | -AUTHOR_EMAIL = "scollis@anl.gov" |
48 | | -MAINTAINER = "Py-ART Developers" |
49 | | -MAINTAINER_EMAIL = "zsherman@anl.gov, scollis@anl.gov, mgrover@anl.gov" |
50 | | -DESCRIPTION = DOCLINES[0] |
51 | | -LONG_DESCRIPTION = "\n".join(DOCLINES[2:]) |
52 | | -URL = "https://github.com/ARM-DOE/pyart" |
53 | | -DOWNLOAD_URL = "https://github.com/ARM-DOE/pyart" |
54 | | -LICENSE = "BSD" |
55 | | -CLASSIFIERS = list(filter(None, CLASSIFIERS.split("\n"))) |
56 | | -PLATFORMS = ["Linux", "Mac OS-X", "Unix", "Windows"] |
57 | | -SCRIPTS = glob.glob("scripts/*") |
58 | 24 |
|
59 | 25 |
|
60 | 26 | # This is a bit hackish: we are setting a global variable so that the main |
|
80 | 46 | ) |
81 | 47 | sys.exit(error) |
82 | 48 |
|
83 | | -here = path.abspath(path.dirname(__file__)) |
84 | | - |
85 | | -with open(path.join(here, "README.rst"), encoding="utf-8") as readme_file: |
86 | | - readme = readme_file.read() |
87 | | - |
88 | | -with open(path.join(here, "requirements.txt")) as requirements_file: |
89 | | - # Parse requirements.txt, ignoring any commented-out lines. |
90 | | - requirements = [ |
91 | | - line |
92 | | - for line in requirements_file.read().splitlines() |
93 | | - if not line.startswith("#") |
94 | | - ] |
95 | | - |
96 | | - |
97 | 49 | extensions = [] |
98 | 50 |
|
99 | 51 |
|
@@ -251,28 +203,8 @@ def check_rsl_path(rsl_lib_path, rsl_include_path): |
251 | 203 | extensions.append(extension_kdp) |
252 | 204 |
|
253 | 205 | setup( |
254 | | - name="arm_pyart", |
255 | | - description=DOCLINES[0], |
256 | 206 | long_description="\n".join(DOCLINES[2:]), |
257 | | - author=AUTHOR, |
258 | | - author_email=AUTHOR_EMAIL, |
259 | | - maintainer=MAINTAINER, |
260 | | - maintainer_email=MAINTAINER_EMAIL, |
261 | | - url=URL, |
262 | | - packages=find_packages(exclude=["docs"]), |
263 | | - include_package_data=True, |
264 | | - scripts=SCRIPTS, |
265 | | - python_requires=">=3.9", |
266 | | - install_requires=requirements, |
267 | | - setup_requires=["setuptools_scm", "setuptools"], |
268 | | - license=LICENSE, |
269 | | - platforms=PLATFORMS, |
270 | | - classifiers=CLASSIFIERS, |
271 | | - zip_safe=False, |
272 | | - use_scm_version={ |
273 | | - "version_scheme": "post-release", |
274 | | - "local_scheme": "dirty-tag", |
275 | | - }, |
| 207 | + scripts=glob.glob("scripts/*"), |
276 | 208 | ext_modules=cythonize( |
277 | 209 | extensions, compiler_directives={"language_level": "3", "cpow": True} |
278 | 210 | ), |
|
0 commit comments