17
0

5 Commits

Author SHA256 Message Date
a8613db1b5 Accepting request 1201440 from devel:languages:python
- Revert to 3.0.1. Version 3.0.2 was yanked from pypi because it
  breaks setuptools
  (https://pagure.io/python-daemon/issue/94, https://pypi.org/project/python-daemon/3.0.2/)
- Add patch explicit-packaging.patch to fix issue with current
  setuptools: https://pagure.io/python-daemon/issue/73

OBS-URL: https://build.opensuse.org/request/show/1201440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-daemon?expand=0&rev=32
2024-09-17 16:17:42 +00:00
476c511176 - Add patch explicit-packaging.patch to fix issue with current
setuptools: https://pagure.io/python-daemon/issue/73

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=47
2024-09-16 14:24:20 +00:00
e4f1f49ed5 - Revert to 3.0.1. Version 3.0.2 was yanked from pypi because it
breaks setuptools
  (https://pagure.io/python-daemon/issue/94, https://pypi.org/project/python-daemon/3.0.2/)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=46
2024-09-16 14:19:04 +00:00
ec5ce42bfc Accepting request 1197679 from devel:languages:python
- Upate to 3.0.2:
  * Migrate to use the explicitly-maintained ‘packaging’ library.
  * Clarify copyright and grants of license.
  * Migrate to PEP 517 simple build system for Python distribution.
  * Remove dynamically-constructed non-standard metadata attributes.
- Switch to pagure source URL.

OBS-URL: https://build.opensuse.org/request/show/1197679
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-daemon?expand=0&rev=31
2024-08-30 11:32:44 +00:00
24e43bc12c - Upate to 3.0.2:
* Migrate to use the explicitly-maintained ‘packaging’ library.
  * Clarify copyright and grants of license.
  * Migrate to PEP 517 simple build system for Python distribution.
  * Remove dynamically-constructed non-standard metadata attributes.
- Switch to pagure source URL.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=44
2024-08-30 04:51:03 +00:00
3 changed files with 104 additions and 4 deletions

76
explicit-packaging.patch Normal file
View File

@@ -0,0 +1,76 @@
Index: python-daemon-3.0.1/pyproject.toml
===================================================================
--- python-daemon-3.0.1.orig/pyproject.toml
+++ python-daemon-3.0.1/pyproject.toml
@@ -10,7 +10,9 @@
# Minimum requirements for the build system.
requires = [
"setuptools >=62.4.0",
- "docutils"]
+ "packaging",
+ "docutils",
+ ]
# Path to the Python object to perform the build.
build-backend = "setuptools.build_meta"
Index: python-daemon-3.0.1/setup.py
===================================================================
--- python-daemon-3.0.1.orig/setup.py
+++ python-daemon-3.0.1/setup.py
@@ -60,10 +60,13 @@ setup_kwargs = dict(
zip_safe=False,
setup_requires=[
"docutils",
+ "setuptools",
+ "packaging",
],
install_requires=[
"setuptools >=62.4.0",
"lockfile >=0.10",
+ "packaging",
],
python_requires=">=3",
extras_require={
Index: python-daemon-3.0.1/test_version.py
===================================================================
--- python-daemon-3.0.1.orig/test_version.py
+++ python-daemon-3.0.1/test_version.py
@@ -20,10 +20,10 @@ import unittest.mock
import docutils
import docutils.nodes
import docutils.writers
+from packaging.version import InvalidVersion
import setuptools
import setuptools.command
import setuptools.dist
-from setuptools.extern.packaging.version import InvalidVersion
import testscenarios
import testtools
Index: python-daemon-3.0.1/version.py
===================================================================
--- python-daemon-3.0.1.orig/version.py
+++ python-daemon-3.0.1/version.py
@@ -31,12 +31,12 @@ import re
import sys
import textwrap
+import packaging.version
import setuptools
import setuptools.command.build
import setuptools.command.build_py
import setuptools.command.egg_info
import setuptools.dist
-import setuptools.extern.packaging.version
def ensure_class_bases_begin_with(namespace, class_name, base_class):
@@ -186,7 +186,7 @@ class ChangeLogEntry:
# A valid non-version value.
return None
- valid_version = setuptools.extern.packaging.version.Version(value)
+ valid_version = packaging.version.Version(value)
@classmethod
def validate_maintainer(cls, value):

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Sep 16 14:17:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Revert to 3.0.1. Version 3.0.2 was yanked from pypi because it
breaks setuptools
(https://pagure.io/python-daemon/issue/94, https://pypi.org/project/python-daemon/3.0.2/)
- Add patch explicit-packaging.patch to fix issue with current
setuptools: https://pagure.io/python-daemon/issue/73
-------------------------------------------------------------------
Fri Aug 30 04:49:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Upate to 3.0.2:
* Migrate to use the explicitly-maintained packaging library.
* Clarify copyright and grants of license.
* Migrate to PEP 517 simple build system for Python distribution.
* Remove dynamically-constructed non-standard metadata attributes.
- Switch to pagure source URL.
-------------------------------------------------------------------
Fri Dec 15 21:27:04 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-daemon
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,19 +22,24 @@ Version: 3.0.1
Release: 0
Summary: Library to implement a well-behaved Unix daemon process
License: Apache-2.0 AND GPL-3.0-only
Group: Development/Languages/Python
URL: https://pagure.io/python-daemon/
Source: https://files.pythonhosted.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
# Available since 3.0.2, that was yanked because of https://pagure.io/python-daemon/issue/94
# Source: https://releases.pagure.org/python-daemon/python_daemon-%{version}.tar.gz
# PATCH-FIX-UPSTREAM explicit-packaging.patch https://pagure.io/python-daemon/c/d7bac6e
Patch0: explicit-packaging.patch
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module importlib_resources}
BuildRequires: %{python_module lockfile >= 0.10}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testscenarios >= 0.4}
BuildRequires: %{python_module testtools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lockfile >= 0.10
Requires: python-packaging
Requires: python-setuptools >= 62.4.0
BuildArch: noarch
%python_subpackages
@@ -67,6 +72,6 @@ sed -i '/docutils/d' setup.py
%license LICENSE.ASF-2 LICENSE.GPL-3
%doc README ChangeLog doc/*
%{python_sitelib}/daemon
%{python_sitelib}/python_daemon-%{version}.dist-info
%{python_sitelib}/python_daemon-%{version}*-info
%changelog