forked from pool/python-twine
- Switch to github archive to have test fixtures
- Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
c5af6d116e
commit
752dfac0a1
@@ -24,8 +24,14 @@ Summary: Collection of utilities for interacting with PyPI
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pypa/twine
|
||||
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
||||
Source: https://github.com/pypa/twine/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
||||
BuildRequires: %{python_module pretend}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.17.0}
|
||||
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
|
||||
BuildRequires: %{python_module setuptools >= 0.7.0}
|
||||
BuildRequires: %{python_module tqdm >= 4.14}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-pkginfo >= 1.4.2
|
||||
Requires: python-requests >= 2.17.0
|
||||
@@ -56,6 +62,9 @@ sed -i '1s/^#!.*//' twine/__main__.py
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/twine
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
||||
|
||||
%post
|
||||
%python_install_alternative twine
|
||||
|
||||
|
Reference in New Issue
Block a user