diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 15:53:37 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 15:53:37 -0800 |
commit | 97c9e70ad7237e07d3fe210c4d349f370710156e (patch) | |
tree | b93e8919e761286179bfb09e77036b803af42ed4 | |
parent | e17fd4d100d7199400a4775ad7aabaaecc29a3b2 (diff) | |
download | specs-97c9e70ad7237e07d3fe210c4d349f370710156e.tar.gz specs-97c9e70ad7237e07d3fe210c4d349f370710156e.tar.xz specs-97c9e70ad7237e07d3fe210c4d349f370710156e.zip |
+ django-q
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | python/python-django-q.spec | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/python/python-django-q.spec b/python/python-django-q.spec new file mode 100644 index 0000000..f2401b5 --- /dev/null +++ b/python/python-django-q.spec @@ -0,0 +1,86 @@ +# "can't find tests module" +%bcond_with tests + +%global srcname django-q +%global modname django_q + +%global forgeurl https://github.com/koed00/django-q + +Name: python-%{srcname} +Version: 1.3.9 +Release: %autorelease +Summary: A multiprocessing distributed task queue for Django +License: MIT +URL: https://django-q.readthedocs.org/ +# pyproject.toml from GH doesn't seem to work +Source0: %{pypi_source %{srcname}} +# Source0: %%{forgeurl}/archive/v%%{version}/%%{srcname}-%%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +%if %{with tests} +# Test dependencies: +# BuildRequires: python3dist(django-redis) +%endif + +%global _description %{expand: +A multiprocessing distributed task queue for Django + +Features: +- Multiprocessing worker pool +- Asynchronous tasks +- Scheduled, cron and repeated tasks +- Signed and compressed packages +- Failure and success database or cache +- Result hooks, groups and chains +- Django Admin integration +- PaaS compatible with multiple instances +- Multi cluster monitor +- Redis, Disque, IronMQ, SQS, MongoDB or ORM +- Rollbar and Sentry support} + +%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 +# project's pyproject.toml caused our script to choke +# seems fine when using PyPI +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +# these installs UNKNOWN-0.0.0.dist-info +# when using GH tarball +%pyproject_install +%pyproject_save_files %{modname} + + +%if %{with tests} +%check +%python3 -m django test -v2 --settings=django_q.tests.settings +%endif + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc CHANGELOG.md README.rst + + +%changelog +%autochangelog |