summaryrefslogtreecommitdiff
path: root/python-django-simple-deploy.spec
blob: 4588df906649896328375f6e8e0e5f66a2264054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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`.
![Simplest example of how to use django-simple-deploy](https://raw.githubusercontent.com/ehmatthes/django-simple-deploy/main/assets/simplest_example.png)
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`.
![Simplest example of how to use django-simple-deploy](https://raw.githubusercontent.com/ehmatthes/django-simple-deploy/main/assets/simplest_example.png)
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`.
![Simplest example of how to use django-simple-deploy](https://raw.githubusercontent.com/ehmatthes/django-simple-deploy/main/assets/simplest_example.png)
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
* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.15-1
- Package Spec generated