forked from pool/python-twine
- 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user