forked from ecmwf/aviso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (47 loc) · 2.02 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
# (C) Copyright 1996- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
import io
import pathlib
import re
from setuptools import find_packages, setup
__version__ = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
io.open("pyaviso/version.py", encoding="utf_8_sig").read(),
).group(1)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
INSTALL_REQUIRES = (pathlib.Path(__file__).parent / "requirements.txt").read_text().splitlines()
setup(
name="pyaviso",
author="ECMWF",
author_email="software.support@ecmwf.int",
license="Apache 2.0",
url="https://github.com/ecmwf/aviso",
description="Time-critical notification system designed to trigger users' workflows across HPC and Cloud systems",
long_description=long_description,
long_description_content_type="text/markdown",
version=__version__,
packages=find_packages(exclude=("tests", "aviso-server")),
include_package_data=True,
install_requires=INSTALL_REQUIRES,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
entry_points={"console_scripts": ["aviso=pyaviso.cli_aviso:cli", "aviso-config=pyaviso.cli_aviso_config:cli"]},
)