2014-02-04 13:41:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-twine
|
|
|
|
#
|
2020-02-25 12:25:21 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-02-04 13:41:22 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-09 14:57:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-04 13:41:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-06 13:32:17 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-26 12:28:03 +01:00
|
|
|
%define skip_python2 1
|
2014-02-04 13:41:22 +01:00
|
|
|
Name: python-twine
|
2020-03-26 12:28:03 +01:00
|
|
|
Version: 3.1.1
|
2014-02-04 13:41:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Collection of utilities for interacting with PyPI
|
|
|
|
License: Apache-2.0
|
2018-05-17 10:26:45 +02:00
|
|
|
URL: https://github.com/pypa/twine
|
2019-02-09 19:02:42 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
2020-04-05 09:40:16 +02:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
2020-03-26 12:28:03 +01:00
|
|
|
BuildRequires: %{python_module jaraco.envs}
|
2020-04-05 09:40:16 +02:00
|
|
|
BuildRequires: %{python_module keyring >= 15.1}
|
2020-03-26 12:28:03 +01:00
|
|
|
BuildRequires: %{python_module munch}
|
2018-05-21 11:26:10 +02:00
|
|
|
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
2020-03-26 12:28:03 +01:00
|
|
|
BuildRequires: %{python_module portend}
|
2018-05-21 11:26:10 +02:00
|
|
|
BuildRequires: %{python_module pretend}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-09-10 11:45:40 +02:00
|
|
|
BuildRequires: %{python_module readme_renderer >= 21.0}
|
2020-04-05 09:40:16 +02:00
|
|
|
BuildRequires: %{python_module requests >= 2.20}
|
2018-05-21 11:26:10 +02:00
|
|
|
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
|
2017-07-06 13:32:17 +02:00
|
|
|
BuildRequires: %{python_module setuptools >= 0.7.0}
|
2020-03-26 12:28:03 +01:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15}
|
2018-05-21 11:26:10 +02:00
|
|
|
BuildRequires: %{python_module tqdm >= 4.14}
|
2019-02-09 14:57:31 +01:00
|
|
|
BuildRequires: fdupes
|
2017-07-06 13:32:17 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-05 09:40:16 +02:00
|
|
|
Requires: python-importlib-metadata
|
|
|
|
Requires: python-keyring >= 15.1
|
2018-05-20 15:49:47 +02:00
|
|
|
Requires: python-pkginfo >= 1.4.2
|
2019-09-10 11:45:40 +02:00
|
|
|
Requires: python-readme_renderer >= 21.0
|
2020-04-05 09:40:16 +02:00
|
|
|
Requires: python-requests >= 2.20
|
2017-07-06 13:32:17 +02:00
|
|
|
Requires: python-requests-toolbelt >= 0.8.0
|
2018-05-20 15:49:47 +02:00
|
|
|
Requires: python-setuptools >= 0.7.0
|
|
|
|
Requires: python-tqdm >= 4.14
|
2018-05-17 10:26:45 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_subpackages
|
2014-02-04 13:41:22 +01:00
|
|
|
|
|
|
|
%description
|
2019-02-09 19:02:42 +01:00
|
|
|
Twine is a utility for publishing Python packages on PyPI.
|
2014-02-04 13:41:22 +01:00
|
|
|
|
2019-03-02 12:11:11 +01:00
|
|
|
Currently it supports registering projects, uploading distributions, and
|
2019-02-09 19:02:42 +01:00
|
|
|
checking, if descriptions will render correctly.
|
2014-02-04 13:41:22 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n twine-%{version}
|
2019-02-09 21:21:16 +01:00
|
|
|
|
2017-07-06 13:32:17 +02:00
|
|
|
sed -i '1s/^#!.*//' twine/__main__.py
|
2014-02-04 13:41:22 +01:00
|
|
|
|
|
|
|
%build
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_build
|
2014-02-04 13:41:22 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/twine
|
2019-02-09 14:57:31 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-09-25 14:04:16 +02:00
|
|
|
|
2018-05-21 11:26:10 +02:00
|
|
|
%check
|
2020-03-26 12:28:03 +01:00
|
|
|
# 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'
|
2018-05-21 11:26:10 +02:00
|
|
|
|
2015-09-25 14:04:16 +02:00
|
|
|
%post
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_install_alternative twine
|
|
|
|
|
2015-09-25 14:04:16 +02:00
|
|
|
%postun
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_uninstall_alternative twine
|
2014-02-04 13:41:22 +01:00
|
|
|
|
2017-07-06 13:32:17 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS README.rst
|
|
|
|
%license LICENSE
|
2019-03-02 12:11:11 +01:00
|
|
|
%dir %{python_sitelib}/twine
|
|
|
|
%dir %{python_sitelib}/twine-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/twine/*
|
|
|
|
%{python_sitelib}/twine-%{version}-py*.egg-info/*
|
2017-07-06 13:32:17 +02:00
|
|
|
%python_alternative %{_bindir}/twine
|
2014-02-04 13:41:22 +01:00
|
|
|
|
|
|
|
%changelog
|