-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.91 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (46 loc) · 1.91 KB
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
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
# PEP 621 [project] metadata in pyproject.toml is only read by setuptools
# >= 61. Some downstream RPM builds use older setuptools (e.g. 59.x), which
# silently drops [project] metadata. Mirror the customer-visible fields here
# so the wheel produced by every setuptools version carries the right
# metadata. pyproject.toml [project] is the source of truth; keep both in
# sync (a pre-release check is the easiest way).
from pathlib import Path
from setuptools import find_packages, setup
HERE = Path(__file__).parent
LONG_DESCRIPTION = (HERE / "README.md").read_text(encoding="utf-8")
setup(
name="supportinfo",
version="1.0.0",
description=(
"Python library for parsing and querying Amazon Linux package support "
"information"
),
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Amazon.com, Inc. or its affiliates",
license="MIT",
url="https://github.com/amazonlinux/amazon-linux-supportinfo",
project_urls={
"Homepage": "https://github.com/amazonlinux/amazon-linux-supportinfo",
"Issues": "https://github.com/amazonlinux/amazon-linux-supportinfo/issues",
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Software Distribution",
"Topic :: System :: Systems Administration",
],
python_requires=">=3.9",
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"supportinfo": ["py.typed", "schemas/*.xsd"]},
install_requires=["lxml", "xmlschema"],
extras_require={
"test": ["pytest", "pytest-cov"],
"dev": ["black", "isort", "mypy", "flake8", "pep8-naming"],
},
)