From fc70c990c21719722fd58c43d6832e918d02f652 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Oct 03 2021 18:02:40 +0000 Subject: feat: update to 0.3.27 --- diff --git a/.gitignore b/.gitignore index ae971c8..76f2346 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /xnat-0.3.24.tar.gz /xnat-0.3.25.tar.gz /xnat-0.3.26.tar.gz +/xnat-0.3.27.tar.gz diff --git a/python-xnat.spec b/python-xnat.spec index 8a81f8e..1eb658e 100644 --- a/python-xnat.spec +++ b/python-xnat.spec @@ -2,9 +2,7 @@ # All tests pass %bcond_with tests -%global pypi_name xnat - -%global commit e608f2aac4493403836a693eb3f425a0129a2ebb +%global commit dcc3e8a85cd537a12723717636c12b1878569e24 %global desc %{expand: \ A new XNAT client that exposes XNAT objects/functions as python objects/functions. @@ -13,59 +11,56 @@ like native Python code. This reduces the need for the user to know the details of the REST API. Low level functionality can still be accessed via the connection object which has get, head, put, post, delete methods for more directly calling the REST API.} -Name: python-%{pypi_name} -Version: 0.3.26 -Release: 2%{?dist} +Name: python-xnat +Version: 0.3.27 +Release: %autorelease Summary: A new XNAT client that exposes XNAT objects/functions as python objects/functions. License: ASL 2.0 -URL: %{pypi_url} -Source0: https://gitlab.com/radiology/infrastructure/xnatpy/-/archive/%{version}/%{pypi_name}-%{version}.tar.gz +URL: https://gitlab.com/radiology/infrastructure/xnatpy/ +Source0: %{url}/-/archive/%{version}/xnat-%{version}.tar.gz BuildArch: noarch %description %{desc} -%package -n python3-%{pypi_name} +%package -n python3-xnat Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-isodate -BuildRequires: python3-requests -BuildRequires: python3-utils -BuildRequires: python3-progressbar2 -BuildRequires: python3-pytest -BuildRequires: python3-sphinx_rtd_theme -BuildRequires: python3-six - -%py_provides python3-%{pypi_name} - -%description -n python3-%{pypi_name} + +%description -n python3-xnat %{desc} %prep %autosetup -n xnatpy-%{version}-%{commit} -rm -rf %{pypi_name}.egg-info + +# Remove version locks etc. +sed -i -e 's/pytest==.*/pytest/' -e 's/pytest-cov==.*/pytest-cov/' -e '/tox/ d' test_requirements.txt + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests: -r requirements.txt test_requirements.txt} %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files xnat %check %if %{with tests} %{pytest} %endif -%files -n python3-%{pypi_name} -%license LICENSE +%files -n python3-xnat -f %{pyproject_files} %doc README.rst %{_bindir}/xnat_cp_project -%{python3_sitelib}/xnat/ -%{python3_sitelib}/xnat*.egg-info +%{_bindir}/xnat_data_integrity-check +%{_bindir}/xnat_import_experiment_dir %changelog +%autochangelog + * Fri Jul 23 2021 Fedora Release Engineering - 0.3.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 8621c44..bf7c9a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xnat-0.3.26.tar.gz) = 3f64b3c5c16d00b518ffc170212e78a3eeb9638358808ab04bec9f3a3561392b5a60e900270868f4cb3de5e37adfa68d19fefd337f81d560d313817b553c117d +SHA512 (xnat-0.3.27.tar.gz) = 3fc3485b1170777e9584063e709d43cd63321ae9657593edcd93c0c159464c16ad61159d08893ff25c8d2affd4db9fb139b46586373d488a0063dd136e708397