Skip to content
Snippets Groups Projects
setup.py 1.6 KiB
Newer Older
Paul Gierz's avatar
Paul Gierz committed
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""The setup script."""

from setuptools import setup, find_packages

Paul Gierz's avatar
Paul Gierz committed
with open("README.rst") as readme_file:
Paul Gierz's avatar
Paul Gierz committed
    readme = readme_file.read()

Paul Gierz's avatar
Paul Gierz committed
with open("HISTORY.rst") as history_file:
Paul Gierz's avatar
Paul Gierz committed
    history = history_file.read()

Paul Gierz's avatar
Paul Gierz committed
requirements = [
    "Click>=6.0",
    "xarray",
    "cdo@git+https://github.com/Try2Code/cdo-bindings#egg=pkg&subdirectory=python",
    "netcdf4",
]
Paul Gierz's avatar
Paul Gierz committed

Paul Gierz's avatar
Paul Gierz committed
setup_requirements = [
    "pytest-runner",
]
Paul Gierz's avatar
Paul Gierz committed

Paul Gierz's avatar
Paul Gierz committed
test_requirements = [
    "pytest",
]
Paul Gierz's avatar
Paul Gierz committed

setup(
    author="Paul Gierz",
Paul Gierz's avatar
Paul Gierz committed
    author_email="pgierz@awi.de",
Paul Gierz's avatar
Paul Gierz committed
    classifiers=[
Paul Gierz's avatar
Paul Gierz committed
        "Development Status :: 2 - Pre-Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
        "Natural Language :: English",
        "Programming Language :: Python :: 3.6",
Paul Gierz's avatar
Paul Gierz committed
    ],
    description="GFW Creator allows you to generate files for the gfw_atmo switch in ECHAM6/JSBACH of AWI-ESM",
    entry_points={
Paul Gierz's avatar
Paul Gierz committed
        "console_scripts": ["gfw_creator=gfw_creator.cli:main",],
        "esm_tools.plugins": [
            "create_hosing_files=gfw_creator.esm_tools_plugin:create_hosing_files",
Paul Gierz's avatar
Paul Gierz committed
        ],
    },
    install_requires=requirements,
    license="GNU General Public License v3",
Paul Gierz's avatar
Paul Gierz committed
    long_description=readme + "\n\n" + history,
Paul Gierz's avatar
Paul Gierz committed
    include_package_data=True,
Paul Gierz's avatar
Paul Gierz committed
    keywords="gfw_creator",
    name="gfw_creator",
    packages=find_packages(include=["gfw_creator"]),
Paul Gierz's avatar
Paul Gierz committed
    setup_requires=setup_requirements,
Paul Gierz's avatar
Paul Gierz committed
    test_suite="tests",
Paul Gierz's avatar
Paul Gierz committed
    tests_require=test_requirements,
Paul Gierz's avatar
Paul Gierz committed
    url="https://github.com/pgierz/gfw_creator",
    version="0.0.2",
Paul Gierz's avatar
Paul Gierz committed
    zip_safe=False,
)