Notification time stamped 2023-07-31 21:27:57 UTC
From eef42b12a6048f17028963d9836b19d187576f10 Mon Sep 17 00:00:00 2001
From: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Dec 10 2021 18:10:16 +0000
Subject: Initial Fedora package
Signed-off-by: Michel Alexandre Salim <salimma(a)fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..29eba4c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-pdb-0.6.2.tar.gz
diff --git a/python-django-pdb.spec b/python-django-pdb.spec
new file mode 100644
index 0000000..0bea9bb
--- /dev/null
+++ b/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
diff --git a/sources b/sources
new file mode 100644
index 0000000..a24935c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (django-pdb-0.6.2.tar.gz) =
273a426c0b3adea6a599791f67686d43eb226ac5557fbbe80225d4cda8e638b5e513dede8c5cc164e6901a4e73258fed6eedebe4ff4328f53cd77d968cfa3a95
https://src.fedoraproject.org/rpms/python-django-pdb/c/eef42b12a6048f1702...