-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (43 loc) · 1.48 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
from setuptools import setup
from pathlib import Path
_dir = Path(__file__).resolve().parent
with open(f"{_dir}/README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
try:
with open(f"{_dir}/nicks_plot_utils/__version__", "r", encoding="utf-8") as fh:
version = fh.read()
print(version)
except:
print(_dir.name.split("-")[-1], flush=True)
version = _dir.name.split("-")[-1]
setup(
name='nicks_plot_utils',
version=version,
description='A example Python package',
url='https://github.com/tylern4/nicks_plot_utils',
author='Nick Tyler',
author_email='[email protected]',
license='BSD 2-clause',
long_description=long_description,
long_description_content_type="text/markdown",
packages=['nicks_plot_utils'],
# use_scm_version=True,
# setup_requires=['setuptools_scm'],
install_requires=['matplotlib',
'numpy',
'boost-histogram',
'scipy',
'lmfit',
],
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires='>=3.5',
)