diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 15:11:06 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 15:11:06 -0800 |
commit | e17fd4d100d7199400a4775ad7aabaaecc29a3b2 (patch) | |
tree | 5dd623fc471579ac95f6ecdfa3970c6e9d59610a | |
parent | ef9753a84d19a17d2bef0fe5e822d59619ae3754 (diff) | |
download | specs-e17fd4d100d7199400a4775ad7aabaaecc29a3b2.tar.gz specs-e17fd4d100d7199400a4775ad7aabaaecc29a3b2.tar.xz specs-e17fd4d100d7199400a4775ad7aabaaecc29a3b2.zip |
+ django-picklefield
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | python/python-django-picklefield.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python/python-django-picklefield.spec b/python/python-django-picklefield.spec new file mode 100644 index 0000000..85ac02e --- /dev/null +++ b/python/python-django-picklefield.spec @@ -0,0 +1,74 @@ +%global srcname django-picklefield +%global modname picklefield + +%global forgeurl https://github.com/koed00/django-q + +Name: python-%{srcname} +Version: 3.0.1 +Release: %autorelease +Summary: A multiprocessing distributed task queue for Django +License: MIT +URL: http://github.com/gintas/django-picklefield +# PyPI tarball has no tests +# Source0: %%{pypi_source %%{srcname}} +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +# Test dependencies: +# for some reason these are not picked up automatically +BuildRequires: python3dist(django) + +%global _description %{expand: +django-picklefield provides an implementation of a pickled object field. Such +fields can contain any picklable objects. + +The implementation is taken and adopted from Django snippet \#1694 by Taavi +Taijala, which is in turn based on Django snippet \#513 by Oliver Beattie.} + +%description %{_description} + + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: %{summary} + +%description -n python%{python3_pkgversion}-%{srcname} %{_description} + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -t + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{modname} + + +%check +# tox.ini runs coverage tests we don't need and +# need to be patched for py310 +# +# the two tests in PickledObjectFieldCheckTests failed +# and django test / unittest's -k doesn't do negations +%python3 -m django test -v2 --settings=tests.settings \ + -k PickledObjectFieldTests \ + -k PickledObjectFieldDeconstructTests + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.rst + + +%changelog +%autochangelog |