- Update to 4.0.2:

- Remove deprecated function to fix twine check with pkginfo
    1.9.0.
  - Improve logging when keyring fails.
  - Reconfgure root logger to show all log messages.
  - Drop support for Python 3.6.
  - Use Rich instead of tqdm for upload progress bar.
  - Remove Twine’s dependencies from the User-Agent header when
    uploading.
  - Improve detection of disabled BLAKE2 hashing due to FIPS
    mode.
  - Restore warning for missing long_description.
  - Add --verbose logging for querying keyring credentials.
  - Log all upload responses with --verbose.
  - Show more helpful error message for invalid metadata.
  - Require a recent version of urllib3.
  - Add support for core metadata version 2.2, defined in PEP
    643.
  - Add support for Python 3.10.
  - Show more helpful messages for invalid passwords.
  - Allow the --skip-existing option to work with GCP Artifact
    Registry.
  - Add a helpful error message when an upload fails due to
    missing a trailing slash in the URL.
  - Generalize --verbose suggestion when an upload fails.
  - Improve error messages
  - Do not include md5_digest or blake2_256_digest if FIPS mode
    is enabled on the host. This removes those fields from the
    metadata before sending the metadata to the repository.
- Add license_files.patch to make pip happy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=35
This commit is contained in:
Matej Cepl 2023-05-05 14:27:24 +00:00 committed by Git OBS Bridge
parent b07db5d08d
commit 9afc433559
6 changed files with 73 additions and 28 deletions

View File

@ -1,13 +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 @@
---
pytest.ini | 1 -
1 file changed, 1 deletion(-)
--- a/pytest.ini
+++ b/pytest.ini
@@ -6,4 +6,3 @@ filterwarnings=
ignore:the imp module is deprecated::setuptools
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__

13
license_files.patch Normal file
View File

@ -0,0 +1,13 @@
---
setup.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
[metadata]
-license_file = LICENSE
+license_files = LICENSE
name = twine
author = Donald Stufft and individual contributors
author_email = donald@stufft.io

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Fri May 5 13:44:23 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Update to 4.0.2:
- Remove deprecated function to fix twine check with pkginfo
1.9.0.
- Improve logging when keyring fails.
- Reconfgure root logger to show all log messages.
- Drop support for Python 3.6.
- Use Rich instead of tqdm for upload progress bar.
- Remove Twines dependencies from the User-Agent header when
uploading.
- Improve detection of disabled BLAKE2 hashing due to FIPS
mode.
- Restore warning for missing long_description.
- Add --verbose logging for querying keyring credentials.
- Log all upload responses with --verbose.
- Show more helpful error message for invalid metadata.
- Require a recent version of urllib3.
- Add support for core metadata version 2.2, defined in PEP
643.
- Add support for Python 3.10.
- Show more helpful messages for invalid passwords.
- Allow the --skip-existing option to work with GCP Artifact
Registry.
- Add a helpful error message when an upload fails due to
missing a trailing slash in the URL.
- Generalize --verbose suggestion when an upload fails.
- Improve error messages
- Do not include md5_digest or blake2_256_digest if FIPS mode
is enabled on the host. This removes those fields from the
metadata before sending the metadata to the repository.
- Add license_files.patch to make pip happy.
-------------------------------------------------------------------
Fri Apr 21 12:38:02 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,22 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-twine
Version: 3.4.1
Version: 4.0.2
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}
Patch0: 0001-remove-disable-socket-pytest-opt.patch
# PATCH-FIX-UPSTREAM license_files.patch bsc#[0-9]+ mcepl@suse.com
# license_file -> license_files
Patch1: license_files.patch
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module jaraco.envs}
BuildRequires: %{python_module keyring >= 15.1}
BuildRequires: %{python_module munch}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pkginfo >= 1.4.2}
BuildRequires: %{python_module portend}
BuildRequires: %{python_module pretend}
@ -40,12 +42,12 @@ BuildRequires: %{python_module readme_renderer >= 21.0}
BuildRequires: %{python_module requests >= 2.20}
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
BuildRequires: %{python_module rfc3986 >= 1.4.0}
BuildRequires: %{python_module rich}
BuildRequires: %{python_module setuptools >= 0.7.0}
BuildRequires: %{python_module setuptools_scm >= 1.15}
BuildRequires: %{python_module tqdm >= 4.14}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-colorama >= 0.4.3
Requires: python-importlib-metadata
Requires: python-keyring >= 15.1
Requires: python-pkginfo >= 1.4.2
@ -53,10 +55,10 @@ Requires: python-readme_renderer >= 21.0
Requires: python-requests >= 2.20
Requires: python-requests-toolbelt >= 0.8.0
Requires: python-rfc3986 >= 1.4.0
Requires: python-setuptools >= 0.7.0
Requires: python-tqdm >= 4.14
Requires: python-rich
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
@ -66,17 +68,15 @@ Currently it supports registering projects, uploading distributions, and
checking, if descriptions will render correctly.
%prep
%setup -q -n twine-%{version}
%patch1 -p1
%autosetup -p1 -n twine-%{version}
sed -i '1s/^#!.*//' twine/__main__.py
sed -i 's/--cov.*$//' pytest.ini
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/twine
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@ -95,10 +95,8 @@ rm tests/test_integration.py
%files %{python_files}
%doc AUTHORS README.rst
%license LICENSE
%dir %{python_sitelib}/twine
%dir %{python_sitelib}/twine-%{version}-py*.egg-info
%{python_sitelib}/twine/*
%{python_sitelib}/twine-%{version}-py*.egg-info/*
%python_alternative %{_bindir}/twine
%{python_sitelib}/twine
%{python_sitelib}/twine-%{version}*-info
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b
size 215191

BIN
twine-4.0.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.