diff --git a/python-pytest-django.spec b/python-pytest-django.spec index 801583f..0cdac46 100644 --- a/python-pytest-django.spec +++ b/python-pytest-django.spec @@ -1,7 +1,7 @@ %global pypi_name pytest-django Name: python-%{pypi_name} -Version: 3.7.0 +Version: 3.8.0 Release: 2%{?dist} Summary: A Django plugin for pytest @@ -42,12 +42,11 @@ Documentation for %{name}. %prep %autosetup -n %{pypi_name}-%{version} -# Remove bundled egg-info rm -rf %{pypi_name}.egg-info +sed -i -e '/NAME/s|/|/var/tmp/|' pytest_django_test/settings_sqlite{,_file}.py %build %py3_build -# Generate HTML docs PYTHONPATH=${PWD} sphinx-build-3 docs html # Remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} @@ -55,10 +54,12 @@ rm -rf html/.{doctrees,buildinfo} %install %py3_install -# Tests require a Django project that is set up. This doesn't seems to be possible -# on the build system -#%check -#PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v +%check +export PYTHONPATH="%{buildroot}%{python3_sitelib}:$PWD" +for settings in sqlite sqlite_file; do + export DJANGO_SETTINGS_MODULE=pytest_django_test.settings_${settings} + %python3 -m pytest -v tests +done %files -n python3-%{pypi_name} %license LICENSE @@ -71,6 +72,13 @@ rm -rf html/.{doctrees,buildinfo} %license LICENSE %changelog +* Sat Feb 01 2020 Fabian Affolter - 3.8.0-2 +- Bump release + +* Fri Jan 31 2020 Igor Raits - 3.8.0-1 +- Enable tests +- Update to 3.8.0 + * Tue Jan 07 2020 Fabian Affolter - 3.7.0-2 - Use var for source URL - Better use of wildcards (rhbz#1786920) diff --git a/sources b/sources index b7bf8b7..ff0255d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-django-3.7.0.tar.gz) = ea3eb738ae234157ea1da2dc7bc2dea10136a3b062f5eb6b8a1777dd618f476a48cce6cfe8450834d50f6cf924d070cc212510efb18cf1c69e287502cbd6ffcf +SHA512 (pytest-django-3.8.0.tar.gz) = 3ce45b08f913c3e20b679c7f7a07818ffab7088fd90757794e1807db2025d655c195304da3ca3905c8ddb58fc9708000dc492f4114df8f4e7bfdb1285ebd997a