Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37565193
en ru br
ALT Linux repos
S:3.14.0-alt1

Group :: Development/Python3
RPM: python3-module-djangorestframework

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name djangorestframework

%def_with docs
%def_with check

Name: python3-module-%pypi_name
Version: 3.14.0
Release: alt1
Summary: Web APIs for Django, made easy
License: BSD
Group: Development/Python3
Url: https://pypi.org/project/djangorestframework

# Source-git: https://github.com/encode/django-rest-framework.git

Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildArch: noarch

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)

%if_with docs
BuildRequires: python3-module-mkdocs >= 1.0.4-alt2
BuildRequires: python3(tornado)
BuildRequires: python3(livereload)
%endif

%if_with check
# install_requires=
BuildRequires: python3(pytz)
BuildRequires: python3-module-django

BuildRequires: python3(pytest_django)
BuildRequires: python3-module-django-tests
BuildRequires: python3-module-django-dbbackend-sqlite3
%endif

# we have several versions of Django

# so, we cannot rely on auto-requires
%filter_from_requires /^python3(django\(\..*\)\?)/d
%description
Django REST framework is a powerful and flexible toolkit for building
Web APIs.

%if_with docs
%package docs
Summary: Documentation for %pypi_name
Group: Development/Documentation

%description docs
Django REST framework is a powerful and flexible toolkit for building
Web APIs.

This package contains documentation for %pypi_name.
%endif

%prep
%setup
%autopatch -p1

%build
%pyproject_build

%if_with docs
mkdocs build
%endif

%install
%pyproject_install

%check
%tox_check_pyproject

%files
%doc README.md
%python3_sitelibdir/rest_framework/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%if_with docs
%files docs
%doc site/*
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin