diff --git a/0001-remove-disable-socket-pytest-opt.patch b/0001-remove-disable-socket-pytest-opt.patch new file mode 100644 index 0000000..6b1f4a3 --- /dev/null +++ b/0001-remove-disable-socket-pytest-opt.patch @@ -0,0 +1,13 @@ +Only in twine-3.4.1: .coverage +Only in twine-3.4.1: .pytest_cache +diff -ur twine-3.4.1.orig/pytest.ini twine-3.4.1/pytest.ini +--- twine-3.4.1.orig/pytest.ini 2021-03-17 01:42:01.000000000 +0100 ++++ twine-3.4.1/pytest.ini 2021-07-11 19:52:39.020680128 +0200 +@@ -7,4 +7,3 @@ + + addopts = + --cov=twine --cov-context=test --cov-report= +- --disable-socket +Only in twine-3.4.1/tests: __pycache__ +Only in twine-3.4.1/twine/commands: __pycache__ +Only in twine-3.4.1/twine: __pycache__ diff --git a/python-twine.changes b/python-twine.changes index 807a705..8417d32 100644 --- a/python-twine.changes +++ b/python-twine.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Sun Jul 11 17:40:20 UTC 2021 - Michael Ströder + +- added 0001-remove-disable-socket-pytest-opt.patch +- update to 3.4.1 + * 3.4.1 (2021-03-16) + Bugfixes + - Fix a regression that was causing some namespace packages with dots in them fail to upload to PyPI. (#745) + * 3.4.0 (2021-03-15) + Features + - Prefer importlib.metadata for entry point handling. (#728) + - Rely on importlib_metadata 3.6 for nicer entry point processing. (#732) + - Eliminate dependency on setuptools/pkg_resources and replace with packaging and importlib_metadata. (#736) + * 3.3.0 (2020-12-23) + Features + - Print files to be uploaded using ``upload --verbose`` (#670) + - Print configuration file location when using ``upload --verbose`` (#675) + - Print source and values of credentials when using ``upload --verbose`` (#685) + - Add support for Python 3.9 (#708) + - Turn warnings into errors when using ``check --strict`` (#715) + Bugfixes + - Make password optional when using ``upload --client-cert`` (#678) + - Support more Nexus versions with ``upload --skip-existing`` (#693) + - Support Gitlab Enterprise with ``upload --skip-existing`` (#698) + - Show a better error message for malformed files (#714) + Improved Documentation + - Adopt PSF code of conduct (#680) + - Adopt towncrier for the changleog (#718) + ------------------------------------------------------------------- Thu Jul 23 12:22:51 UTC 2020 - Marketa Calabkova diff --git a/python-twine.spec b/python-twine.spec index 4844d28..7520ba8 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -1,7 +1,7 @@ # # spec file for package python-twine # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,12 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-twine -Version: 3.2.0 +Version: 3.4.1 Release: 0 Summary: Collection of utilities for interacting with PyPI License: Apache-2.0 URL: https://github.com/pypa/twine Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz +Patch1: 0001-remove-disable-socket-pytest-opt.patch BuildRequires: %{python_module colorama >= 0.4.3} BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module jaraco.envs} @@ -54,7 +55,7 @@ Requires: python-rfc3986 >= 1.4.0 Requires: python-setuptools >= 0.7.0 Requires: python-tqdm >= 4.14 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -65,6 +66,7 @@ checking, if descriptions will render correctly. %prep %setup -q -n twine-%{version} +%patch1 -p1 sed -i '1s/^#!.*//' twine/__main__.py sed -i 's/--cov.*$//' pytest.ini diff --git a/twine-3.2.0.tar.gz b/twine-3.2.0.tar.gz deleted file mode 100644 index cf8537c..0000000 --- a/twine-3.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34352fd52ec3b9d29837e6072d5a2a7c6fe4290e97bba46bb8d478b5c598f7ab -size 148834 diff --git a/twine-3.4.1.tar.gz b/twine-3.4.1.tar.gz new file mode 100644 index 0000000..2c18ecf --- /dev/null +++ b/twine-3.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b +size 215191