diff --git a/.gitignore b/.gitignore index 7f0c374..ae971c8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /xnat-0.3.22.tar.gz /xnat-0.3.24.tar.gz /xnat-0.3.25.tar.gz +/xnat-0.3.26.tar.gz diff --git a/python-xnat.spec b/python-xnat.spec index 9b2ec23..1d7b6fa 100644 --- a/python-xnat.spec +++ b/python-xnat.spec @@ -1,7 +1,11 @@ +# Require network, so run locally in mock with --with=tests --enable-network +# All tests pass %bcond_with tests %global pypi_name xnat +%global commit e608f2aac4493403836a693eb3f425a0129a2ebb + %global desc %{expand: \ A new XNAT client that exposes XNAT objects/functions as python objects/functions. The aim is to abstract as much of the REST API away as possible and make xnatpy feel @@ -10,12 +14,12 @@ of the REST API. Low level functionality can still be accessed via the connectio which has get, head, put, post, delete methods for more directly calling the REST API.} Name: python-%{pypi_name} -Version: 0.3.25 -Release: 3%{?dist} +Version: 0.3.26 +Release: 1%{?dist} Summary: A new XNAT client that exposes XNAT objects/functions as python objects/functions. License: ASL 2.0 -URL: http://pypi.python.org/pypi/%{pypi_name}/%{version} -Source0: https://pypi.python.org/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +URL: %{pypi_url} +Source0: https://gitlab.com/radiology/infrastructure/xnatpy/-/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description @@ -30,6 +34,7 @@ BuildRequires: python3-isodate BuildRequires: python3-requests BuildRequires: python3-utils BuildRequires: python3-progressbar2 +BuildRequires: python3-pytest BuildRequires: python3-sphinx_rtd_theme BuildRequires: python3-six @@ -39,7 +44,7 @@ BuildRequires: python3-six %{desc} %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n xnatpy-%{version}-%{commit} rm -rf %{pypi_name}.egg-info %build @@ -50,9 +55,9 @@ rm -rf %{pypi_name}.egg-info %check %if %{with tests} -%{__python3} setup.py test +%{pytest} %endif - + %files -n python3-%{pypi_name} %license LICENSE %doc README.rst @@ -61,6 +66,9 @@ rm -rf %{pypi_name}.egg-info %{python3_sitelib}/xnat*.egg-info %changelog +* Tue Jul 06 2021 Ankur Sinha - 0.3.26-1 +- Update to latest release + * Fri Jun 04 2021 Python Maint - 0.3.25-3 - Rebuilt for Python 3.10 diff --git a/sources b/sources index 7ff0fb4..8621c44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xnat-0.3.25.tar.gz) = a320f94f06181e8f83f85d4551b7ffb3839d5bbf5e7fab17c6f93fbc9563d9c3d86b0fcfb77aa5ed85050208713e1f40d5a68c9df6df7356a0a90183db292dbd +SHA512 (xnat-0.3.26.tar.gz) = 3f64b3c5c16d00b518ffc170212e78a3eeb9638358808ab04bec9f3a3561392b5a60e900270868f4cb3de5e37adfa68d19fefd337f81d560d313817b553c117d