public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dropbox] f43: Remove dependency on deprecated pytest-runner
@ 2026-07-10 14:08 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-10 14:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-dropbox
Branch : f43
Commit : 25d73ecc9e1be2bebb4f108cb8c932bfd40c71dc
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-01-22T14:18:07+00:00
Stats : +51/-16 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-dropbox/c/25d73ecc9e1be2bebb4f108cb8c932bfd40c71dc?branch=f43
Log:
Remove dependency on deprecated pytest-runner
---
diff --git a/dropbox-12.0.2-no-pytest-runner.patch b/dropbox-12.0.2-no-pytest-runner.patch
new file mode 100644
index 0000000..9b3ae5b
--- /dev/null
+++ b/dropbox-12.0.2-no-pytest-runner.patch
@@ -0,0 +1,42 @@
+diff -Naur dropbox-12.0.2-original/setup.cfg dropbox-12.0.2/setup.cfg
+--- dropbox-12.0.2-original/setup.cfg 2024-06-03 17:45:26.000000000 +0100
++++ dropbox-12.0.2/setup.cfg 2026-01-22 14:17:16.419433749 +0000
+@@ -1,6 +1,3 @@
+-[aliases]
+-test = pytest
+-
+ [metadata]
+ description_file = README.rst
+
+diff -Naur dropbox-12.0.2-original/setup.py dropbox-12.0.2/setup.py
+--- dropbox-12.0.2-original/setup.py 2024-06-03 17:45:16.000000000 +0100
++++ dropbox-12.0.2/setup.py 2026-01-22 14:17:35.466709052 +0000
+@@ -30,19 +30,6 @@
+ 'stone>=2,<3.3.3',
+ ]
+
+-setup_requires = [
+- # Pin pytest-runner to 5.2.0, since 5.3.0 uses `find_namespaces` directive, not supported in
+- # Python 2.7
+- 'pytest-runner==5.2.0',
+-]
+-
+-# WARNING: This imposes limitations on test/requirements.txt such that the
+-# full Pip syntax is not supported. See also
+-# <http://stackoverflow.com/questions/14399534/>.
+-test_reqs = []
+-with open('test/requirements.txt') as f:
+- test_reqs += f.read().splitlines()
+-
+ with codecs.open('README.rst', encoding='utf-8') as f:
+ README = f.read()
+
+@@ -50,8 +37,6 @@
+ name='dropbox',
+ version=version,
+ install_requires=install_reqs,
+- setup_requires=setup_requires,
+- tests_require=test_reqs,
+ packages=['dropbox'],
+ zip_safe=False,
+ author_email='dev-platform@dropbox.com',
diff --git a/python-dropbox.spec b/python-dropbox.spec
index d18e5fc..850d0b2 100644
--- a/python-dropbox.spec
+++ b/python-dropbox.spec
@@ -1,13 +1,16 @@
%global pypi_name dropbox
Name: python-%{pypi_name}
Version: 12.0.2
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Official Dropbox REST API Client
License: MIT
URL: https://www.dropbox.com/developers/core/sdks
Source0: %pypi_source
-Patch0: unpin-pytest-runner.patch
+# Remove pytest-runner / setup.py test support
+# https://github.com/dropbox/dropbox-sdk-python/pull/523
+# Without changes to requirements.txt, which is not in the PyPI sdist
+Patch: dropbox-12.0.2-no-pytest-runner.patch
BuildArch: noarch
@@ -29,9 +32,7 @@ Requires: python3-urllib3
A Python library for Dropbox's HTTP-based Core and Datastore APIs.
%prep
-%setup -q -n %{pypi_name}-%{version}
-
-%patch -P 0 -p0
+%autosetup -n %{pypi_name}-%{version} -p1
%generate_buildrequires
%pyproject_buildrequires
@@ -49,6 +50,9 @@ A Python library for Dropbox's HTTP-based Core and Datastore APIs.
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
%changelog
+* Thu Jan 22 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 12.0.2-11
+- Remove dependency on deprecated pytest-runner
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
diff --git a/unpin-pytest-runner.patch b/unpin-pytest-runner.patch
deleted file mode 100644
index 842cb86..0000000
--- a/unpin-pytest-runner.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py~ 2024-06-03 11:45:16.000000000 -0500
-+++ setup.py 2024-06-03 13:56:43.456082914 -0500
-@@ -33,7 +33,7 @@
- setup_requires = [
- # Pin pytest-runner to 5.2.0, since 5.3.0 uses `find_namespaces` directive, not supported in
- # Python 2.7
-- 'pytest-runner==5.2.0',
-+# 'pytest-runner==5.2.0',
- ]
-
- # WARNING: This imposes limitations on test/requirements.txt such that the
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-10 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-10 14:08 [rpms/python-dropbox] f43: Remove dependency on deprecated pytest-runner Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox