diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-letsencrypt.spec | 332 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 334 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-letsencrypt-4.1.0.tar.gz diff --git a/python-django-letsencrypt.spec b/python-django-letsencrypt.spec new file mode 100644 index 0000000..c94a1e7 --- /dev/null +++ b/python-django-letsencrypt.spec @@ -0,0 +1,332 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-letsencrypt +Version: 4.1.0 +Release: 1 +Summary: A simple Django app to handle Let's Encrypt ACME challenges. +License: Apache License, Version 2.0 +URL: https://github.com/urda/django-letsencrypt +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/32/f70a136076ef790ef79ee6dbf01cf209ac2ec44f77f280d1275742033444/django-letsencrypt-4.1.0.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-pytz + +%description +# Let's Encrypt App for Django + +`django-letsencrypt` will allow you to add, remove, and update any +[ACME challenge](https://github.com/ietf-wg-acme/acme/) objects you may +need through your Django admin interface. Simply add the `ACME challenge` +and `response` for your app to serve up the necessary information for +[Let's Encrypt](https://letsencrypt.org/how-it-works/) validation. + +This project strives to make installation, configuration, and usage a snap! +From high levels of code coverage, multiple compatible python versions, multiple +versions of Django supported, even multiple databases too! + +And of course all wrapped up and published to +[PyPI](https://pypi.org/project/django-letsencrypt/) for standard installation! + +# Supported Configurations + +`django-letsencrypt` is tested across a number of configurations, here's what's +supported so far: + +- Python Versions Supported: + - `3.10` (Django `4.0` and `3.2` only) + - `3.8` + - `3.7` (Django `3.2` and `2.2` only) +- Django Versions Supported: + - `4.0` minimum version `4.0` + - `3.2` minimum version `3.2.10` + - `2.2` minimum version `2.2.25` +- Databases Supported: + - `mysql` + - `postgres` + - `sqlite` + +# Recent Build Status Badges + +- [](https://github.com/urda/django-letsencrypt/actions/workflows/linting.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-22.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-32.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-40.yaml) +- [](https://codecov.io/gh/urda/django-letsencrypt) + +# Installation & Configuration + +1. `pip install django-letsencrypt` + +2. Add `letsencrypt` to your `INSTALLED_APPS` + +```python +INSTALLED_APPS = [ + ... , + 'letsencrypt', + ... , +] +``` + +3. Include the `letsencrypt` in your project's `urls.py`, + or where applicable (usually your root `urls.py`). + +```python +re_path(r'^\.well-known/', include('letsencrypt.urls')) +``` + +4. Run `manage.py migrate` to create the required table for the + `letsencrypt` model + +5. Create your `ACME Challenge` objects in your Django admin interface + +6. Test your `ACME Challenge` objects and their responses by visiting + them: + +``` +{Django Site}/.well-known/acme-challenge/challenge_text +``` + +7. Enjoy your easy to manage `ACME Challenges` inside your Django project! + +# Example Project + +If you would like a demo of how to use this application simply clone this project's +`git` repository from [GitHub](https://github.com/urda/django-letsencrypt), +take a moment to read the `README.md` file within the +[`example_project`](https://github.com/urda/django-letsencrypt/tree/master/example_project) +directory, and follow the directions. That will spin up a small sample django +application already configured for you to try out. + + + + +%package -n python3-django-letsencrypt +Summary: A simple Django app to handle Let's Encrypt ACME challenges. +Provides: python-django-letsencrypt +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-letsencrypt +# Let's Encrypt App for Django + +`django-letsencrypt` will allow you to add, remove, and update any +[ACME challenge](https://github.com/ietf-wg-acme/acme/) objects you may +need through your Django admin interface. Simply add the `ACME challenge` +and `response` for your app to serve up the necessary information for +[Let's Encrypt](https://letsencrypt.org/how-it-works/) validation. + +This project strives to make installation, configuration, and usage a snap! +From high levels of code coverage, multiple compatible python versions, multiple +versions of Django supported, even multiple databases too! + +And of course all wrapped up and published to +[PyPI](https://pypi.org/project/django-letsencrypt/) for standard installation! + +# Supported Configurations + +`django-letsencrypt` is tested across a number of configurations, here's what's +supported so far: + +- Python Versions Supported: + - `3.10` (Django `4.0` and `3.2` only) + - `3.8` + - `3.7` (Django `3.2` and `2.2` only) +- Django Versions Supported: + - `4.0` minimum version `4.0` + - `3.2` minimum version `3.2.10` + - `2.2` minimum version `2.2.25` +- Databases Supported: + - `mysql` + - `postgres` + - `sqlite` + +# Recent Build Status Badges + +- [](https://github.com/urda/django-letsencrypt/actions/workflows/linting.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-22.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-32.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-40.yaml) +- [](https://codecov.io/gh/urda/django-letsencrypt) + +# Installation & Configuration + +1. `pip install django-letsencrypt` + +2. Add `letsencrypt` to your `INSTALLED_APPS` + +```python +INSTALLED_APPS = [ + ... , + 'letsencrypt', + ... , +] +``` + +3. Include the `letsencrypt` in your project's `urls.py`, + or where applicable (usually your root `urls.py`). + +```python +re_path(r'^\.well-known/', include('letsencrypt.urls')) +``` + +4. Run `manage.py migrate` to create the required table for the + `letsencrypt` model + +5. Create your `ACME Challenge` objects in your Django admin interface + +6. Test your `ACME Challenge` objects and their responses by visiting + them: + +``` +{Django Site}/.well-known/acme-challenge/challenge_text +``` + +7. Enjoy your easy to manage `ACME Challenges` inside your Django project! + +# Example Project + +If you would like a demo of how to use this application simply clone this project's +`git` repository from [GitHub](https://github.com/urda/django-letsencrypt), +take a moment to read the `README.md` file within the +[`example_project`](https://github.com/urda/django-letsencrypt/tree/master/example_project) +directory, and follow the directions. That will spin up a small sample django +application already configured for you to try out. + + + + +%package help +Summary: Development documents and examples for django-letsencrypt +Provides: python3-django-letsencrypt-doc +%description help +# Let's Encrypt App for Django + +`django-letsencrypt` will allow you to add, remove, and update any +[ACME challenge](https://github.com/ietf-wg-acme/acme/) objects you may +need through your Django admin interface. Simply add the `ACME challenge` +and `response` for your app to serve up the necessary information for +[Let's Encrypt](https://letsencrypt.org/how-it-works/) validation. + +This project strives to make installation, configuration, and usage a snap! +From high levels of code coverage, multiple compatible python versions, multiple +versions of Django supported, even multiple databases too! + +And of course all wrapped up and published to +[PyPI](https://pypi.org/project/django-letsencrypt/) for standard installation! + +# Supported Configurations + +`django-letsencrypt` is tested across a number of configurations, here's what's +supported so far: + +- Python Versions Supported: + - `3.10` (Django `4.0` and `3.2` only) + - `3.8` + - `3.7` (Django `3.2` and `2.2` only) +- Django Versions Supported: + - `4.0` minimum version `4.0` + - `3.2` minimum version `3.2.10` + - `2.2` minimum version `2.2.25` +- Databases Supported: + - `mysql` + - `postgres` + - `sqlite` + +# Recent Build Status Badges + +- [](https://github.com/urda/django-letsencrypt/actions/workflows/linting.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-22.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-32.yaml) +- [](https://github.com/urda/django-letsencrypt/actions/workflows/testing-40.yaml) +- [](https://codecov.io/gh/urda/django-letsencrypt) + +# Installation & Configuration + +1. `pip install django-letsencrypt` + +2. Add `letsencrypt` to your `INSTALLED_APPS` + +```python +INSTALLED_APPS = [ + ... , + 'letsencrypt', + ... , +] +``` + +3. Include the `letsencrypt` in your project's `urls.py`, + or where applicable (usually your root `urls.py`). + +```python +re_path(r'^\.well-known/', include('letsencrypt.urls')) +``` + +4. Run `manage.py migrate` to create the required table for the + `letsencrypt` model + +5. Create your `ACME Challenge` objects in your Django admin interface + +6. Test your `ACME Challenge` objects and their responses by visiting + them: + +``` +{Django Site}/.well-known/acme-challenge/challenge_text +``` + +7. Enjoy your easy to manage `ACME Challenges` inside your Django project! + +# Example Project + +If you would like a demo of how to use this application simply clone this project's +`git` repository from [GitHub](https://github.com/urda/django-letsencrypt), +take a moment to read the `README.md` file within the +[`example_project`](https://github.com/urda/django-letsencrypt/tree/master/example_project) +directory, and follow the directions. That will spin up a small sample django +application already configured for you to try out. + + + + +%prep +%autosetup -n django-letsencrypt-4.1.0 + +%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-letsencrypt -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +e862126da1a5ff88ac251d48ff4306dc django-letsencrypt-4.1.0.tar.gz |
