Blame SOURCES/drop-dependencies-and-fix-dynamic-version.patch

d5424f
From 7ded5073e8bff541ed0ee09b0c3a66fd495a2d58 Mon Sep 17 00:00:00 2001
d5424f
From: Lumir Balhar <lbalhar@redhat.com>
d5424f
Date: Thu, 31 Oct 2024 10:05:52 +0100
d5424f
Subject: [PATCH] drop dependencies and fix dynamic version
d5424f
d5424f
---
d5424f
 pyproject.toml   | 32 ++------------------------------
d5424f
 util/metadata.py | 16 ----------------
d5424f
 2 files changed, 2 insertions(+), 46 deletions(-)
d5424f
d5424f
diff --git a/pyproject.toml b/pyproject.toml
d5424f
index 66f018e..a45637b 100644
d5424f
--- a/pyproject.toml
d5424f
+++ b/pyproject.toml
d5424f
@@ -9,6 +9,8 @@
d5424f
 
d5424f
 # Name of the Python distribution to build.
d5424f
 name = "python-daemon"
d5424f
+version = "VERSION_PLACEHOLDER"
d5424f
+description = "Library to implement a well-behaved Unix daemon process."
d5424f
 
d5424f
 # Keywords to categorise this project.
d5424f
 keywords = ["daemon", "fork", "unix"]
d5424f
@@ -30,10 +32,6 @@ requires-python = ">= 3.7"
d5424f
 # Core dependencies required for the package to operate.
d5424f
 dependencies = [
d5424f
 
d5424f
-    # Framework for working with Python packages.
d5424f
-    # Documentation: <URL:https://setuptools.pypa.io/>.
d5424f
-    "setuptools >= 62.4.0",
d5424f
-
d5424f
     # Platform-independent file locking module.
d5424f
     # Documentation: <URL:http://docs.openstack.org/developer/pylockfile>.
d5424f
     "lockfile >= 0.10",
d5424f
@@ -48,13 +46,6 @@ authors = [
d5424f
     { name = "Ben Finney", email = "ben+python@benfinney.id.au" },
d5424f
     ]
d5424f
 
d5424f
-# Names of fields that must be dynamically computed by the build system.
d5424f
-dynamic = [
d5424f
-    "description",
d5424f
-    "readme",
d5424f
-    "version",
d5424f
-    "maintainers",
d5424f
-    ]
d5424f
 
d5424f
 [project.optional-dependencies]
d5424f
 
d5424f
@@ -106,16 +97,9 @@ build = [
d5424f
     # Documentation: <URL:https://docutils.sourceforge.io/docs/>.
d5424f
     "docutils",
d5424f
 
d5424f
-    # Parser library for project Change Log documents.
d5424f
-    # Documentation: <URL:https://packaging.pypa.io/>.
d5424f
-    "changelog-chug",
d5424f
-
d5424f
     ]
d5424f
 
d5424f
 test = [
d5424f
-
d5424f
-    "python-daemon[static-analysis,build]",
d5424f
-
d5424f
     # Extensions to the Python ‘unittest’ framework.
d5424f
     # Documentation: <URL:https://testtools.readthedocs.org/>.
d5424f
     "testtools",
d5424f
@@ -124,10 +108,6 @@ test = [
d5424f
     # Documentation: <URL:https://pypi.org/project/testscenarios/>.
d5424f
     "testscenarios >= 0.4",
d5424f
 
d5424f
-    # Code coverage measurement.
d5424f
-    # Documentation: <URL:https://coverage.readthedocs.io/>.
d5424f
-    "coverage",
d5424f
-
d5424f
     ]
d5424f
 
d5424f
 dist = [
d5424f
@@ -166,14 +146,6 @@ requires = [
d5424f
     # Documentation: <URL:https://setuptools.pypa.io/>.
d5424f
     "setuptools >= 62.4.0",
d5424f
 
d5424f
-    # Python Documentation Utilities.
d5424f
-    # Documentation: <URL:https://docutils.sourceforge.io/docs/>.
d5424f
-    "docutils",
d5424f
-
d5424f
-    # Parser library for project Change Log documents.
d5424f
-    # Documentation: <URL:https://packaging.pypa.io/>.
d5424f
-    "changelog-chug",
d5424f
-
d5424f
     ]
d5424f
 
d5424f
 # Path to the Python object to perform the build.
d5424f
diff --git a/util/metadata.py b/util/metadata.py
d5424f
index 6da93c0..38a7df7 100644
d5424f
--- a/util/metadata.py
d5424f
+++ b/util/metadata.py
d5424f
@@ -16,8 +16,6 @@ import inspect
d5424f
 import pydoc
d5424f
 import re
d5424f
 
d5424f
-import chug.parsers.rest
d5424f
-
d5424f
 
d5424f
 rfc822_person_regex = re.compile(
d5424f
         r"^(?P<name>[^<]+) <(?P<email>[^>]+)>$")
d5424f
@@ -110,20 +108,6 @@ def synopsis_and_description_from_docstring(docstring):
d5424f
     (synopsis, long_description) = pydoc.splitdoc(docstring)
d5424f
     return (synopsis, long_description)
d5424f
 
d5424f
-
d5424f
-def get_latest_changelog_entry(infile_path):
d5424f
-    """ Get the latest entry data from the changelog at `infile_path`.
d5424f
-
d5424f
-        :param infile_path: The filesystem path (text) from which to read the
d5424f
-            change log document.
d5424f
-        :return: The most recent change log entry, as a `chug.ChangeLogEntry`.
d5424f
-        """
d5424f
-    document_text = chug.parsers.get_changelog_document_text(infile_path)
d5424f
-    document = chug.parsers.rest.parse_rest_document_from_text(document_text)
d5424f
-    entries = chug.parsers.rest.make_change_log_entries_from_document(
d5424f
-        document)
d5424f
-    latest_entry = entries[0]
d5424f
-    return latest_entry
d5424f
 
d5424f
 
d5424f
 # Copyright © 2008–2024 Ben Finney <ben+python@benfinney.id.au>
d5424f
-- 
d5424f
2.47.0
d5424f