-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to modern way of Python packaging
Fix #27.
- Loading branch information
Roman Inflianskas
committed
Jan 26, 2023
1 parent
1472def
commit 9391206
Showing
7 changed files
with
63 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,58 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "rpm_s3_mirror" | ||
authors = [ | ||
{ name="Aiven", email="[email protected]" }, | ||
] | ||
description = "Tool for syncing RPM repositories with S3" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: Apache Software License", | ||
"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", | ||
"Natural Language :: English", | ||
] | ||
license = { text = "Apache License 2.0" } | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"defusedxml>=0.7.1,<1", | ||
"requests>=2.27.1,<3", | ||
"python-dateutil>=2.8.1,<3", | ||
"botocore>=1.23.50,<2", | ||
"lxml>=4.6.5,<5", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black>=22.8.0,<23", | ||
"click>=8.0.1,<9", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/aiven/rpm-s3-mirror" | ||
"Bug Tracker" = "https://github.com/aiven/rpm-s3-mirror/issues" | ||
|
||
[project.scripts] | ||
rpm_s3_mirror = "rpm_s3_mirror.__main__:main" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "rpm_s3_mirror/version.py" | ||
|
||
|
||
# NOTE: you have to use single-quoted strings in TOML for regular expressions. | ||
# It's the equivalent of r-strings in Python. Multiline strings are treated as | ||
# verbose regular expressions by Black. Use [ ] to denote a significant space | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,9 @@ | ||
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/ | ||
|
||
from setuptools import setup | ||
import version | ||
# a setup.py shim which is required for an editable install | ||
# see pyproject.toml for build configuration | ||
# https://peps.python.org/pep-0518 | ||
import setuptools | ||
|
||
version = version.get_project_version("rpm_s3_mirror/version.py") | ||
|
||
setup( | ||
name="rpm_s3_mirror", | ||
packages=["rpm_s3_mirror"], | ||
version=version, | ||
description="Tool for syncing RPM repositories with S3", | ||
license="Apache 2.0", | ||
author="Aiven", | ||
author_email="[email protected]", | ||
url="https://github.com/aiven/rpm-s3-mirror", | ||
install_requires=[ | ||
"defusedxml", | ||
"requests", | ||
"python-dateutil", | ||
"botocore", | ||
"lxml", | ||
], | ||
entry_points={ | ||
"console_scripts": [ | ||
"rpm_s3_mirror = rpm_s3_mirror.__main__:main", | ||
], | ||
}, | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"Programming Language :: Python :: 3.7", | ||
"Natural Language :: English", | ||
], | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |
This file was deleted.
Oops, something went wrong.