14
0
forked from pool/python-twine
Files
python-twine/python-twine.spec
Tomáš Chvátal 3334ef17e4 Accepting request 822402 from home:mcalabkova:branches:devel:languages:python
- update to 3.2.0
  * :feature:`666` Improve display of HTTP errors during upload
  * :feature:`649` Use red text when printing errors on the command line
  * :feature:`652` Print packages and signatures to be uploaded when using
    ``--verbose`` option
  * 🐛`655 major` Update URL to ``.pypirc`` specfication
  * :feature:`602` Require repository URL scheme to be ``http`` or ``https``
  * 🐛`612 major` Don't raise an exception when Python version can't be
    parsed from filename

OBS-URL: https://build.opensuse.org/request/show/822402
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=30
2020-07-23 13:18:08 +00:00

102 lines
3.4 KiB
RPMSpec

#
# spec file for package python-twine
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-twine
Version: 3.2.0
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
BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module jaraco.envs}
BuildRequires: %{python_module keyring >= 15.1}
BuildRequires: %{python_module munch}
BuildRequires: %{python_module pkginfo >= 1.4.2}
BuildRequires: %{python_module portend}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest}
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 setuptools >= 0.7.0}
BuildRequires: %{python_module setuptools_scm >= 1.15}
BuildRequires: %{python_module tqdm >= 4.14}
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
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(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
Twine is a utility for publishing Python packages on PyPI.
Currently it supports registering projects, uploading distributions, and
checking, if descriptions will render correctly.
%prep
%setup -q -n twine-%{version}
sed -i '1s/^#!.*//' twine/__main__.py
sed -i 's/--cov.*$//' pytest.ini
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/twine
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# do not run integration tests
rm tests/test_integration.py
# test_check_status_code_for_wrong_repo_url is online test
%pytest -k 'not test_check_status_code_for_wrong_repo_url'
%post
%python_install_alternative twine
%postun
%python_uninstall_alternative twine
%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
%changelog