-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
70 lines (62 loc) · 2.25 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
#!/usr/bin/env python
import os
from setuptools import find_packages
from setuptools import setup
# Load package version number.
with open("csdmpy/__init__.py") as f:
for line in f.readlines():
if "__version__" in line:
before_keyword, keyword, after_keyword = line.partition("=")
version = after_keyword.strip()[1:-1]
# What packages are required for this module to be executed?
required = [
"numpy>=1.20",
"setuptools>=27.3",
"requests>=2.21.0",
"numexpr>=2.7.0",
]
extras = {"matplotlib": ["matplotlib>=3.0"]}
setup_requires = ["setuptools>=27.3"]
here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
try:
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = ""
setup(
name="csdmpy",
version=version,
description="A python module for the core scientific dataset model.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Deepansh Srivastava",
author_email="srivastava.89@osu.edu",
python_requires=">=3.9",
url="https://github.com/DeepanshS/csdmpy/",
packages=find_packages(),
install_requires=required,
setup_requires=setup_requires,
extras_require=extras,
tests_require=["pytest", "pytest-runner"],
include_package_data=True,
license="BSD-3-Clause",
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
],
)