-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
67 lines (64 loc) · 2.09 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
from setuptools import setup, find_packages
from pathlib import Path
import re
packages = find_packages()
this_directory = Path(__file__).parent.absolute()
version_file = this_directory / 'gemd' / '__version__.py'
version_re = r'''^\s*__version__\s*=\s*(['"])([\w\.]+)\1$'''
if mo := re.search(version_re, version_file.read_text(), re.M):
version = mo.group(2)
else:
raise RuntimeError(f"Unable to find version string in {version_file}")
setup(name='gemd',
# Update this in gemd/__version__.py
version=version,
python_requires='>=3.8',
url='http://github.com/CitrineInformatics/gemd-python',
description="Python binding for Citrine's GEMD data model",
author='Citrine Informatics',
packages=packages,
package_data={
'gemd.demo': [
'strehlow_and_cook.pif',
'strehlow_and_cook_small.pif',
'toothpick.jpg'
],
'gemd.units': [
'citrine_en.txt',
'constants_en.txt',
],
'tests.units': ['test_units.txt']
},
install_requires=[
"pint>=0.21,<0.25,!=0.22,!=0.23", # pint 0.22,0.23 have a bad interaction w/ numpy >= 2
"deprecation>=2.1.0,<3",
"typing_extensions>=4.8,<5",
"importlib-resources>=5.3,<7"
],
extras_require={
"scripts": [
"packaging"
"sphinx==5.0.0",
"sphinx-rtd-theme==1.0.0",
"sphinxcontrib-apidoc==0.3.0",
],
"tests": [
"pytest>=8.0.0,<9"
],
"tests.demo": [
"pandas>=2.0.3,<3"
],
"tests.entity.bounds": [
"numpy>=1.24.4,<3",
"pandas>=2.0.3,<3"
]
},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)