diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:08:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:08:29 +0000 |
| commit | d51de4e523622995cebc6164d7927bac40c0564f (patch) | |
| tree | 001bb2564b81fde8c5957c823921df6036466885 /python-django-test-without-migrations.spec | |
| parent | 4b599d706d9aa6afa6f83c50582e43a07f11b145 (diff) | |
automatic import of python-django-test-without-migrations
Diffstat (limited to 'python-django-test-without-migrations.spec')
| -rw-r--r-- | python-django-test-without-migrations.spec | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/python-django-test-without-migrations.spec b/python-django-test-without-migrations.spec new file mode 100644 index 0000000..febed14 --- /dev/null +++ b/python-django-test-without-migrations.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-test-without-migrations +Version: 0.6 +Release: 1 +Summary: Disable migrations when running your Django tests. +License: MIT +URL: http://github.com/henriquebastos/django-test-without-migrations/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/b7/7c9f3dee1288dc5e5ff6f18c6425a51ad6c5e38a51d423a25972e97311b3/django-test-without-migrations-0.6.tar.gz +BuildArch: noarch + + +%description +*Test Without Migrations* is a `manage.py test` command extension. +The new Django 1.7 and 1.8 migration backend demands that you create a migration every time you change a model. +This can be inconvenient when you're just trying to explore your models code. +In older Django versions, with `South` we could use the `SOUTH_TEST_MIGRATIONS` settings to tell Django to simply create all model tables without running migrations. +This app adds this capability to Django by extending the `manage.py test` command with a `--nomigrations` option. + +%package -n python3-django-test-without-migrations +Summary: Disable migrations when running your Django tests. +Provides: python-django-test-without-migrations +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-test-without-migrations +*Test Without Migrations* is a `manage.py test` command extension. +The new Django 1.7 and 1.8 migration backend demands that you create a migration every time you change a model. +This can be inconvenient when you're just trying to explore your models code. +In older Django versions, with `South` we could use the `SOUTH_TEST_MIGRATIONS` settings to tell Django to simply create all model tables without running migrations. +This app adds this capability to Django by extending the `manage.py test` command with a `--nomigrations` option. + +%package help +Summary: Development documents and examples for django-test-without-migrations +Provides: python3-django-test-without-migrations-doc +%description help +*Test Without Migrations* is a `manage.py test` command extension. +The new Django 1.7 and 1.8 migration backend demands that you create a migration every time you change a model. +This can be inconvenient when you're just trying to explore your models code. +In older Django versions, with `South` we could use the `SOUTH_TEST_MIGRATIONS` settings to tell Django to simply create all model tables without running migrations. +This app adds this capability to Django by extending the `manage.py test` command with a `--nomigrations` option. + +%prep +%autosetup -n django-test-without-migrations-0.6 + +%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-test-without-migrations -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6-1 +- Package Spec generated |
