summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 05:25:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 05:25:46 +0000
commit3e85bc355459f2fb691a2397aa7ba48a102c9d0e (patch)
tree2de646f93241163470909eb717f4febacd23e535
parent46ac2b87b325a8baca62c3884077e462d872a9c9 (diff)
automatic import of python-django-rest-witchcraftopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-rest-witchcraft.spec88
-rw-r--r--sources1
3 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f2192c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-rest-witchcraft-0.12.1.tar.gz
diff --git a/python-django-rest-witchcraft.spec b/python-django-rest-witchcraft.spec
new file mode 100644
index 0000000..9a8f139
--- /dev/null
+++ b/python-django-rest-witchcraft.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-rest-witchcraft
+Version: 0.12.1
+Release: 1
+Summary: Django REST Framework and SQLAlchemy integration
+License: MIT
+URL: https://github.com/shosca/django-rest-witchcraft
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8b/91/32173bf57c60b41ad223a1dffd722e51e4001aa73c9cacad9d3bac925aad/django-rest-witchcraft-0.12.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-djangorestframework
+Requires: python3-six
+Requires: python3-django-sorcery
+Requires: python3-django-rest-enumfield
+
+%description
+|Build Status| |Read The Docs| |PyPI version| |Coveralls Status| |Black|
+**Django REST Framework integration with SQLAlchemy**
+django-rest-witchcraft is an extension for Django REST Framework that adds support for SQLAlchemy. It aims to provide
+a similar development experience to building REST api's with Django REST Framework with Django ORM, except with
+SQLAlchemy.
+
+%package -n python3-django-rest-witchcraft
+Summary: Django REST Framework and SQLAlchemy integration
+Provides: python-django-rest-witchcraft
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-rest-witchcraft
+|Build Status| |Read The Docs| |PyPI version| |Coveralls Status| |Black|
+**Django REST Framework integration with SQLAlchemy**
+django-rest-witchcraft is an extension for Django REST Framework that adds support for SQLAlchemy. It aims to provide
+a similar development experience to building REST api's with Django REST Framework with Django ORM, except with
+SQLAlchemy.
+
+%package help
+Summary: Development documents and examples for django-rest-witchcraft
+Provides: python3-django-rest-witchcraft-doc
+%description help
+|Build Status| |Read The Docs| |PyPI version| |Coveralls Status| |Black|
+**Django REST Framework integration with SQLAlchemy**
+django-rest-witchcraft is an extension for Django REST Framework that adds support for SQLAlchemy. It aims to provide
+a similar development experience to building REST api's with Django REST Framework with Django ORM, except with
+SQLAlchemy.
+
+%prep
+%autosetup -n django-rest-witchcraft-0.12.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-django-rest-witchcraft -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.12.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..89fd008
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7551cc2fde979230f2ff65e50d2cd629 django-rest-witchcraft-0.12.1.tar.gz