-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (51 loc) · 1.5 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
"""
Setup file for enstools-compression
"""
from setuptools import setup, find_packages
import os.path
# Use the Readme file as long description.
try:
with open("README.md", "r") as f:
long_description = f.read()
except FileNotFoundError:
long_description = ""
def get_version():
from pathlib import Path
version_path = Path(__file__).parent / "VERSION"
with version_path.open() as version_file:
return version_file.read().strip()
def find_enstools_packages():
"""
Find the packages inside the enstools folder.
"""
return [f'enstools.{p}' for p in (find_packages(f'{os.path.dirname(__file__)}/enstools'))]
# perform the actual install operation
setup(name="enstools-compression",
version=get_version(),
author="Oriol Tintó",
author_email="[email protected]",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/wavestoweather/enstools-compression",
packages=find_enstools_packages(),
install_requires=[
"enstools>=2023.1",
"enstools-encoding>=2023.6",
"zfpy",
"hdf5plugin>=4.1.3",
"netCDF4",
],
extras_require={
'examples': ['pooch'],
'test': [
"pytest",
"pytest-mock",
"pooch",
],
},
entry_points={
'console_scripts': [
'enstools-compression=enstools.compression.cli:main'
],
},
)