-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
84 lines (78 loc) · 3.01 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Package definition for PyPI."""
import os
from setuptools import setup
PROJECT_SLUG = "continuous-delivery-scripts"
SOURCE_DIR = "continuous_delivery_scripts"
__version__ = None
repository_dir = os.path.dirname(__file__)
# Read package version, this will set the variable `__version__` to the current version.
with open(os.path.join(repository_dir, SOURCE_DIR, "_version.py"), encoding="utf8") as fh:
exec(fh.read())
# Use readme needed as long description in PyPI
with open(os.path.join(repository_dir, "README.md"), encoding="utf8") as fh:
long_description = fh.read()
setup(
author="CMSIS team",
author_email="[email protected]",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Build Tools",
],
description="Continuous Delivery scripts to increase automation",
entry_points={
"console_scripts": [
f"cd-assert-news={SOURCE_DIR}.assert_news:main",
f"cd-generate-news={SOURCE_DIR}.generate_news:main",
f"cd-determine-version={SOURCE_DIR}.get_version:main",
f"cd-create-news-file={SOURCE_DIR}.create_news_file:main",
f"cd-generate-docs={SOURCE_DIR}.generate_docs:main",
f"cd-tag-and-release={SOURCE_DIR}.tag_and_release:main",
f"cd-get-config={SOURCE_DIR}.get_config:main",
f"cd-license-files={SOURCE_DIR}.license_files:main",
f"cd-generate-spdx={SOURCE_DIR}.report_third_party_ip:main",
]
},
keywords="Arm Tools CI CD Continuous Delivery Scripts Automation",
include_package_data=True,
install_requires=[
"gitpython",
"towncrier==22.12.0",
"pyautoversion~=1.2.0",
# FIXME change when https://github.com/pdoc3/pdoc/issues/299 is fixed
"pdoc3==0.10.0",
"toml",
"semver~=2.13.0",
"python-dotenv",
"twine",
"boto3",
"packaging",
"licenseheaders<0.8.9",
"spdx-tools==0.6.1",
"license-expression",
"wcmatch",
"jellyfish",
"jinja2==2.11.3",
"dataclasses; python_version<'3.7'",
# FIXME fixing markupsafe to solve https://github.com/pallets/markupsafe/issues/284 until jinja is upgraded
"markupsafe==2.0.1",
],
license="Apache 2.0",
long_description_content_type="text/markdown",
long_description=long_description,
name=PROJECT_SLUG,
packages=[SOURCE_DIR],
python_requires=">=3.8,<4",
url=f"https://github.com/ARMmbed/{PROJECT_SLUG}",
version=__version__,
)