-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 2.14 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
54
55
56
57
58
59
60
61
62
63
import os
from pathlib import Path
from setuptools import find_packages, setup
def get_version():
if os.getenv("GITHUB_REF_TYPE", "branch") == "tag":
return os.environ["GITHUB_REF_NAME"]
version_file = here / "evacuator" / "VERSION"
version = version_file.read_text().strip()
build_num = os.environ.get("GITHUB_RUN_ID", "0")
branch_name = os.environ.get("GITHUB_REF_NAME", "")
if not branch_name:
return version
return f"{version}.dev{build_num}"
here = Path(__file__).parent.resolve()
long_description = here.joinpath("README.rst").read_text()
setup(
name="evacuator",
version=get_version(),
description="Catch an exception and exit with an exit code",
long_description=long_description,
long_description_content_type="text/x-rst",
license="Apache-2.0",
license_files=("LICENSE.txt",),
url="https://github.com/MobileTeleSystems/evacuator",
packages=find_packages(exclude=["docs", "docs.*", "tests", "tests.*"]),
author="DataOps.ETL",
author_email="[email protected]",
python_requires=">=3.7",
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
],
project_urls={
"Documentation": "https://evacuator.readthedocs.io",
"Source": "https://github.com/MobileTeleSystems/evacuator",
"CI/CD": "https://github.com/MobileTeleSystems/evacuator/actions",
"Tracker": "https://github.com/MobileTeleSystems/evacuator/issues",
},
entry_points={"tricoder_package_spy.register": ["evacuator=evacuator"]},
)