setup.py 3.05 KB
Newer Older
Klaus Zimmermann's avatar
Klaus Zimmermann committed
1
2
3
4
5
6
7
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import setuptools
import versioneer


8
with open("README.md", "r") as fh:
Klaus Zimmermann's avatar
Klaus Zimmermann committed
9
10
11
12
    long_description = fh.read()


setuptools.setup(
13
    name="climix",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
14
15
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
16
17
18
    author="Lars Bärring, Klaus Zimmermann",
    author_email="lars.barring@smhi.se, klaus.zimmermann@smhi.se",
    description="A climate index package",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
19
    long_description=long_description,
20
21
    long_description_content_type="text/markdown",
    url="https://git.smhi.se/climix/climix",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
22
    classifiers=[
23
24
25
26
27
28
29
30
        "Development Status :: 2 - Pre-Alpha",
        "Environment :: Console",
        "Intended Audience :: Financial and Insurance Industry",
        "Intended Audience :: Science/Research",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: GIS",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
31
    ],
32
33
    packages=setuptools.find_packages(exclude=["data", "legacy"]),
    python_requires=">=3.8",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
34
    install_requires=[
35
36
37
38
        "cf-units",
        "dask>=2.4.0",
        "dask-jobqueue",
        "distributed>=2.4.0",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
39
        'importlib_metadata>=4.4; python_version < "3.10"',
40
41
42
43
44
45
46
        "numpy",
        "pyxdg",
        "PyYAML",
        "regex",
        "sentry-sdk",
        "scitools-iris>=3,<4",
        "sparse",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
47
48
    ],
    entry_points={
49
50
        "console_scripts": [
            "climix=climix.main:main",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
51
        ],
52
53
54
55
56
57
58
        "climix.index_functions": [
            "count_level_crossings=climix.index_functions:CountLevelCrossings",
            "count_occurrences=climix.index_functions:CountOccurrences",
            "count_percentile_occurrences=climix.index_functions:CountPercentileOccurrences",  # noqa: E501
            "diurnal_temperature_range=climix.index_functions:DiurnalTemperatureRange",
            "extreme_temperature_range=climix.index_functions:ExtremeTemperatureRange",
            "first_occurrence=climix.index_functions:FirstOccurrence",
59
            "first_spell=climix.index_functions:FirstSpell",
60
61
62
            "interday_diurnal_temperature_range=climix.index_functions:InterdayDiurnalTemperatureRange",  # noqa: E501
            "last_occurrence=climix.index_functions:LastOccurrence",
            "percentile=climix.index_functions:Percentile",
63
            "running_statistics=climix.index_functions:RunningStatistics",
64
            "season_length=climix.index_functions:SeasonLength",
65
66
67
68
            "spell_length=climix.index_functions:SpellLength",
            "statistics=climix.index_functions:Statistics",
            "temperature_sum=climix.index_functions:TemperatureSum",
            "thresholded_percentile=climix.index_functions:ThresholdedPercentile",
69
            "thresholded_running_statistics=climix.index_functions:ThresholdedRunningStatistics",  # noqa: E501
70
            "thresholded_statistics=climix.index_functions:ThresholdedStatistics",
71
        ],
Klaus Zimmermann's avatar
Klaus Zimmermann committed
72
73
    },
    project_urls={
74
75
        "Bug Reports": "https://git.smhi.se/climix/climix/issues",
        "Source": "https://git.smhi.se/climix/climix",
Klaus Zimmermann's avatar
Klaus Zimmermann committed
76
77
    },
)