forked from morganjwilliams/pyrolite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (76 loc) · 2.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
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
from setuptools import setup, find_packages
import versioneer
tests_require = ["pytest", "pytest-runner", "pytest-cov", "coverage", "coveralls"]
docs_require = [
"sphinx_rtd_theme",
"sphinx-autodoc-annotation",
"sphinx_gallery>=0.6.0",
"recommonmark",
]
dev_require = ["pytest", "versioneer", "black", "twine"] + tests_require + docs_require
db_require = ["pyodbc", "psycopg2"]
skl_require = ["scikit-learn"]
stats_require = ["statsmodels", "scikit-learn"]
spatial_require = ["owslib", "geojson"] # this needs pyproj -> C compiler
with open("README.md", "r") as src:
LONG_DESCRIPTION = src.read()
setup(
name="pyrolite",
description="Tools for geochemical data analysis.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
version=versioneer.get_version(),
url="https://github.com/morganjwilliams/pyrolite",
project_urls={
"Documentation": "https://pyrolite.readthedocs.com/",
"Code": "https://github.com/morganjwilliams/pyrolite",
"Issue tracker": "https://github.com/morganjwilliams/pyrolite/issues",
},
author="Morgan Williams",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Matplotlib",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords=["geochemistry", "compositional data", "visualisation", "petrology"],
packages=find_packages(exclude=["test*"]),
install_requires=[
"numpy",
"numpydoc",
"pathlib",
"tinydb",
"periodictable",
"matplotlib",
"mpltern",
"scipy>=1.2", # uses scipy.optimize.Bounds, added around 1.2
"mpmath",
"sympy",
"pandas>=0.23", # dataframe acccessors
"xlrd", # reading excel from pandas
"openpyxl", # writing excel from pandas
"joblib",
"requests", # used by alphaMELTS utilities, util.web
],
extras_require={
"dev": dev_require,
"docs": docs_require,
"skl": skl_require,
"spatial": spatial_require,
"db": db_require,
"stats": stats_require,
},
tests_require=tests_require,
test_suite="test",
include_package_data=True,
license="CSIRO Modifed MIT/BSD",
cmdclass=versioneer.get_cmdclass(),
)