diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-09 12:42:58 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-09 12:42:58 -0800 |
| commit | e0a77f51c3d940befc4a7607f909036dbe4ccd57 (patch) | |
| tree | 6b74831d60ee2f252698e226841b9ecc49b6f9df /python | |
| parent | c07cf928d4e255b407234302e94ada290b29afac (diff) | |
| download | specs-e0a77f51c3d940befc4a7607f909036dbe4ccd57.tar.gz specs-e0a77f51c3d940befc4a7607f909036dbe4ccd57.tar.xz specs-e0a77f51c3d940befc4a7607f909036dbe4ccd57.zip | |
+ django-pdb
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-django-pdb.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python/python-django-pdb.spec b/python/python-django-pdb.spec new file mode 100644 index 0000000..0bea9bb --- /dev/null +++ b/python/python-django-pdb.spec @@ -0,0 +1,72 @@ +# upstream test project is not in PyPI +# GitHub does not have the latest release tagged +# ... and importing fails because it expects some +# settings set +%bcond_with tests + +%global srcname django-pdb + +Name: python-%{srcname} +Version: 0.6.2 +Release: %autorelease +Summary: Easier pdb debugging for Django +License: Public Domain +URL: https://github.com/tomchristie/django-pdb +# PyPI tarball doesn't contain some requirements files +Source0: %{pypi_source %{srcname}} + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +%if %{with tests} +# Test dependencies: +BuildRequires: python3dist(django) +%endif + +%global _description %{expand: +Adding pdb.set_trace() to your source files every time you want to break into +pdb sucks. + +Don’t do that. + +Do this.} + +%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 + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files django_pdb + + +%if %{with tests} +%check +%pyproject_check_import +%endif + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%doc README.rst + + +%changelog +%autochangelog |
