|
| 1 | +#!/usr/bin/env python |
| 2 | +# (C) Copyright 2023 ECMWF. |
| 3 | +# |
| 4 | +# This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 | +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 | +# In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 | +# granted to it by virtue of its status as an intergovernmental organisation |
| 8 | +# nor does it submit to any jurisdiction. |
| 9 | +# |
| 10 | + |
| 11 | + |
| 12 | +import io |
| 13 | +import os |
| 14 | + |
| 15 | +import setuptools |
| 16 | + |
| 17 | + |
| 18 | +def read(fname): |
| 19 | + file_path = os.path.join(os.path.dirname(__file__), fname) |
| 20 | + return io.open(file_path, encoding="utf-8").read() |
| 21 | + |
| 22 | + |
| 23 | +version = None |
| 24 | +for line in read("cads_mars_server/__init__.py").split("\n"): |
| 25 | + if line.startswith("__version__"): |
| 26 | + version = line.split("=")[-1].strip()[1:-1] |
| 27 | + |
| 28 | + |
| 29 | +assert version |
| 30 | + |
| 31 | + |
| 32 | +setuptools.setup( |
| 33 | + name="cads-mars-server", |
| 34 | + version=version, |
| 35 | + description="A python client/server for calling MARS.", |
| 36 | + long_description=read("README.md"), |
| 37 | + long_description_content_type="text/markdown", |
| 38 | + author="European Centre for Medium-Range Weather Forecasts (ECMWF)", |
| 39 | + author_email="software.support@ecmwf.int", |
| 40 | + license="Apache License Version 2.0", |
| 41 | + url="https://github.com/ecmwf-projects/cads-mars-server", |
| 42 | + packages=setuptools.find_packages(), |
| 43 | + include_package_data=True, |
| 44 | + install_requires=[ |
| 45 | + "click", |
| 46 | + "requests", |
| 47 | + "setproctitle", |
| 48 | + ], |
| 49 | + zip_safe=True, |
| 50 | + keywords="tool", |
| 51 | + entry_points={ |
| 52 | + "console_scripts": ["cads-mars-server=cads_mars_server.__main__:main"], |
| 53 | + }, |
| 54 | + classifiers=[ |
| 55 | + "Development Status :: 3 - Alpha", |
| 56 | + "Intended Audience :: Developers", |
| 57 | + "License :: OSI Approved :: Apache Software License", |
| 58 | + "Programming Language :: Python :: 3", |
| 59 | + "Programming Language :: Python :: 3.9", |
| 60 | + "Programming Language :: Python :: 3.10", |
| 61 | + "Programming Language :: Python :: 3.11", |
| 62 | + "Programming Language :: Python :: Implementation :: CPython", |
| 63 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 64 | + "Operating System :: OS Independent", |
| 65 | + ], |
| 66 | +) |
0 commit comments