diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:23:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:23:41 +0000 |
commit | 62558fff633027a6a474f74cb8676d12d10c279e (patch) | |
tree | 1c7adea9b60286493fb3d504ef081eab3a670c2f | |
parent | 48a14d5a246fa021c90b5fec586f1dc611a1cf20 (diff) |
automatic import of python-django-simple-deploy
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-simple-deploy.spec | 104 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 106 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-simple-deploy-0.5.15.tar.gz diff --git a/python-django-simple-deploy.spec b/python-django-simple-deploy.spec new file mode 100644 index 0000000..2e5818c --- /dev/null +++ b/python-django-simple-deploy.spec @@ -0,0 +1,104 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-simple-deploy +Version: 0.5.15 +Release: 1 +Summary: A management command that auto-configures a Django project for deployment. +License: BSD +URL: https://pypi.org/project/django-simple-deploy/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f2/95/186669ac30d7a1dad0eada87179fc9c6ce1f525382666ffe7c79547d9435/django-simple-deploy-0.5.15.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-toml + +%description +The full documentation for this project is at [Read the Docs](https://django-simple-deploy.readthedocs.io/en/latest/). +Some documentation has not been moved to Read the Docs yet. You may find what you're looking for in the `old_docs/` directory, but some of that information is out of date. +*Initial Django deployments made easy* +This app gives you a management command that configures your project for an initial deployment. It targets [Fly.io](https://fly.io), [Platform.sh](https://platform.sh), and [Heroku](https://heroku.com) at the moment, and can be expanded to target other platforms as well. +If you have a relatively simple Django project that runs locally, you can deploy your project in a few short steps. The only change you'll need to make to your project is to add this app to `INSTALLED_APPS`. + +The above command will deploy your project to Heroku. To deploy to another platform such as Platform.sh, just change the `--platform` argument: +``` +$ python manage.py simple_deploy --platform platform_sh +``` +All output is captured and written to a log file stored in `simple_deploy_logs/`, which is placed at the project's root directory. + +%package -n python3-django-simple-deploy +Summary: A management command that auto-configures a Django project for deployment. +Provides: python-django-simple-deploy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-simple-deploy +The full documentation for this project is at [Read the Docs](https://django-simple-deploy.readthedocs.io/en/latest/). +Some documentation has not been moved to Read the Docs yet. You may find what you're looking for in the `old_docs/` directory, but some of that information is out of date. +*Initial Django deployments made easy* +This app gives you a management command that configures your project for an initial deployment. It targets [Fly.io](https://fly.io), [Platform.sh](https://platform.sh), and [Heroku](https://heroku.com) at the moment, and can be expanded to target other platforms as well. +If you have a relatively simple Django project that runs locally, you can deploy your project in a few short steps. The only change you'll need to make to your project is to add this app to `INSTALLED_APPS`. + +The above command will deploy your project to Heroku. To deploy to another platform such as Platform.sh, just change the `--platform` argument: +``` +$ python manage.py simple_deploy --platform platform_sh +``` +All output is captured and written to a log file stored in `simple_deploy_logs/`, which is placed at the project's root directory. + +%package help +Summary: Development documents and examples for django-simple-deploy +Provides: python3-django-simple-deploy-doc +%description help +The full documentation for this project is at [Read the Docs](https://django-simple-deploy.readthedocs.io/en/latest/). +Some documentation has not been moved to Read the Docs yet. You may find what you're looking for in the `old_docs/` directory, but some of that information is out of date. +*Initial Django deployments made easy* +This app gives you a management command that configures your project for an initial deployment. It targets [Fly.io](https://fly.io), [Platform.sh](https://platform.sh), and [Heroku](https://heroku.com) at the moment, and can be expanded to target other platforms as well. +If you have a relatively simple Django project that runs locally, you can deploy your project in a few short steps. The only change you'll need to make to your project is to add this app to `INSTALLED_APPS`. + +The above command will deploy your project to Heroku. To deploy to another platform such as Platform.sh, just change the `--platform` argument: +``` +$ python manage.py simple_deploy --platform platform_sh +``` +All output is captured and written to a log file stored in `simple_deploy_logs/`, which is placed at the project's root directory. + +%prep +%autosetup -n django-simple-deploy-0.5.15 + +%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-simple-deploy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.15-1 +- Package Spec generated @@ -0,0 +1 @@ +cc597580f38860710802d95e4ff88f42 django-simple-deploy-0.5.15.tar.gz |