Browse Source

Migrate project to pyproject.toml packaging

Helmut Pozimski 1 month ago
parent
commit
aae76cf520
4 changed files with 30 additions and 18 deletions
  1. 1 0
      .gitignore
  2. 0 0
      LICENSE
  3. 29 0
      pyproject.toml
  4. 0 18
      setup.py

+ 1 - 0
.gitignore

@@ -2,3 +2,4 @@
 *.pyc
 *.egg-info
 dist
+build

+ 0 - 0
COPYING → LICENSE


+ 29 - 0
pyproject.toml

@@ -0,0 +1,29 @@
+[build-system]
+requires = ["setuptools>=61.0"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "acme_updater_hoshpak"
+version = "0.1"
+authors = [
+  { name="Helmut Pozimski", email="helmut@pozimski.eu" },
+]
+description = "tool that takes care of automatically replacing Let's Encrypt SSL certificates"
+readme = "README.md"
+requires-python = ">=3.8"
+dependencies = [
+	"pyOpenSSL",
+	"dnspython"
+]
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
+    "Operating System :: POSIX :: Linux",
+]
+
+[project.urls]
+Homepage = "https://git.cyber-everything.de/Hoshpak/acme-updater"
+Issues = "https://git.cyber-everything.de/Hoshpak/acme-updater/issues"
+
+[project.scripts]
+acme-updater = "amulib.main:main"

+ 0 - 18
setup.py

@@ -1,18 +0,0 @@
-#! /usr/bin/env python 3
-# -*- coding: utf8 -*-
-
-from setuptools import setup
-
-setup(
-    name="acme-updater",
-    version="0.1dev",
-    author = "Helmut Pozimski",
-    author_email="helmut@pozimski.eu",
-    description= ("tool that takes care of automatically replacing Let's "
-                 "Encrypt SSL certificates"),
-    license="GNU General Public License version 2",
-    packages=["amulib"],
-    scripts=["acme-updater"],
-    url="https://git.cyber-everything.de/Hoshpak/acme-updater",
-    install_requires=["pyOpenSSL", "dnspython"]
-)