aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml35
-rw-r--r--setup.cfg32
-rw-r--r--setup.py2
3 files changed, 34 insertions, 35 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 9787c3b..0c9f7dc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,36 @@
[build-system]
-requires = ["setuptools", "wheel"]
+requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
+
+[project]
+name = "cgitize"
+description = "Self-host your repositories using cgit"
+license = {text = "MIT"}
+version = "4.0.8"
+authors = [{name = "Egor Tensin", email = "Egor.Tensin@gmail.com"}]
+readme = "README.md"
+requires-python = ">=3.6"
+
+dependencies = [
+ "atlassian-python-api ~= 3.28.0",
+ "PyGithub ~= 1.0",
+ "python-gitlab ~= 2.0",
+ "tomli ~= 1.0",
+]
+
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "License :: OSI Approved :: MIT License",
+ "Programming Language :: Python :: 3",
+ "Topic :: Software Development :: Version Control :: Git",
+]
+
+[project.urls]
+"Homepage" = "https://github.com/egor-tensin/cgitize"
+"Bug Tracker" = "https://github.com/egor-tensin/cgitize/issues"
+
+[project.scripts]
+cgitize = "cgitize.main:main"
+
+[tool.setuptools.packages]
+find = {}
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644
index 04a5ee9..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,32 +0,0 @@
-[metadata]
-name = cgitize
-# Don't use shortened versions here (like v2.0 instead of v2.0.X),
-# docker/metadata-action doesn't like them:
-version = 4.0.8
-author = Egor Tensin
-author_email = Egor.Tensin@gmail.com
-description = Self-host your repositories using cgit
-long_description = file: README.md
-long_description_content_type = text/markdown
-license = MIT
-url = https://github.com/egor-tensin/cgitize
-project_urls =
- Bug Tracker = https://github.com/egor-tensin/cgitize/issues
-classifiers =
- Development Status :: 5 - Production/Stable
- License :: OSI Approved :: MIT License
- Programming Language :: Python :: 3
- Topic :: Software Development :: Version Control :: Git
-
-[options]
-install_requires =
- atlassian-python-api ~= 3.28.0
- PyGithub ~= 1.0
- python-gitlab ~= 2.0
- tomli ~= 1.0
-packages = find:
-python_requires = >=3.6
-
-[options.entry_points]
-console_scripts =
- cgitize = cgitize.main:main
diff --git a/setup.py b/setup.py
deleted file mode 100644
index a4f49f9..0000000
--- a/setup.py
+++ /dev/null
@@ -1,2 +0,0 @@
-import setuptools
-setuptools.setup()