-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
68 lines (59 loc) · 2.24 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
import io
import os
from setuptools import setup, find_packages
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
def get_requirements(filename):
"""Load requirements list."""
with open(os.path.join(PROJECT_ROOT, filename), "r") as f:
return f.read().splitlines()
def get_long_description():
"""Read README file as a package description."""
readme_path = os.path.join(PROJECT_ROOT, "README.md")
with io.open(readme_path, encoding="utf-8") as f:
return f"\n{f.read()}"
def get_version():
"""Read package version from the __version__.py file."""
context = {}
with open(os.path.join(PROJECT_ROOT, "nrc_spifpy", "__version__.py")) as f:
exec(f.read(), context)
return context["__version__"]
setup(
name="nrc_spifpy",
version=get_version(),
packages=find_packages(),
description="Single Particle Image Format (SPIF) data converter and interface",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Kenny Bala",
author_email="[email protected]",
url="https://github.com/nrc-cnrc/NRC-SPIFpy",
install_requires=get_requirements("requirements/requirements.txt"),
license="MIT",
keywords="SPIF, Converter",
classifiers=[
"Development Status :: Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Atmospheric Science",
],
package_data={
"nrc_spifpy": ["config/**.ini"],
},
entry_points='''
[console_scripts]
nrc-spifpy-extract=nrc_spifpy.scripts.extract:extract
nrc-spifpy-addaux=nrc_spifpy.scripts.addaux:addaux
nrc-spifpy-cc=nrc_spifpy.scripts.copyconf:copyconf
nrc-spifpy-cut=nrc_spifpy.scripts.cut:cut
''',
python_requires=">=3.6.0",
)