-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (39 loc) · 1.2 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
from pathlib import Path
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
import numpy as np
extensions = [
Extension("*", ["stepshift/*.pyx"],
include_dirs= [
np.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
)
]
here = Path(__file__).parent
long_description = (here / "README.md").read_text()
setup(
name = "stepshift",
author="peder2911",
author_email="pglandsverk@gmail.com",
description = "Implementation of the Views stepshifting modelling framework",
version = "2.2.6",
python_requires=">=3.8",
license_files = ("LICENSE",),
install_requires=[
"pandas>=1.3.2",
"PyMonad>=2.4.0",
"toolz>=0.11.1",
"xarray>=0.19.0",
],
packages = find_packages(),
ext_modules = cythonize(
extensions,
compiler_directives={
"language_level": "3str",
}
),
annotate = True,
long_description = long_description,
long_description_content_type = "text/markdown",
url = "https://www.github.com/prio-data/stepshift",
)