diff --git a/1.11.0.tar.gz b/1.11.0.tar.gz new file mode 100644 index 0000000..5d0787c --- /dev/null +++ b/1.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdff00d235b964a9679fc0c127228eb83fb82b59552efb130cd878ace39f3473 +size 55301 diff --git a/python-twine.changes b/python-twine.changes index 988e38a..7142f51 100644 --- a/python-twine.changes +++ b/python-twine.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 21 09:23:53 UTC 2018 - tchvatal@suse.com + +- Switch to github archive to have test fixtures +- Enable tests + ------------------------------------------------------------------- Sat May 19 09:44:51 UTC 2018 - hpj@urpla.net diff --git a/python-twine.spec b/python-twine.spec index 2a14a2e..97a96af 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -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 diff --git a/twine-1.11.0.tar.gz b/twine-1.11.0.tar.gz deleted file mode 100644 index 9f3eaab..0000000 --- a/twine-1.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fd9a4d9ff0bcacf41fdc40c8cb0cfaef1f1859457c9653fd1b92237cc4e9f25 -size 44683