diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 23:51:57 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 23:51:57 +0000 |
commit | ae525983fa8ec109f76c8e7f8b2678d1b362e236 (patch) | |
tree | 2a41b41767c89bee6296fdcc2849233c743f15c7 | |
parent | fdb81ef8e3af032fe750cfce0ae0eadcf1ff514c (diff) |
automatic import of python-django-flags
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-flags.spec | 259 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 261 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-flags-5.0.12.tar.gz diff --git a/python-django-flags.spec b/python-django-flags.spec new file mode 100644 index 0000000..38fc417 --- /dev/null +++ b/python-django-flags.spec @@ -0,0 +1,259 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-flags +Version: 5.0.12 +Release: 1 +Summary: Feature flags for Django projects +License: CC0 +URL: https://github.com/cfpb/django-flags +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/e7/a6adf8c98e9e73640be82b00c99ec68c0b977ab3d0dc7506746866e57b3d/django-flags-5.0.12.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-mkdocs +Requires: python3-mkdocs-rtd-dropdown +Requires: python3-pymdown-extensions +Requires: python3-coverage +Requires: python3-django-debug-toolbar +Requires: python3-jinja2 + +%description +# Django-Flags + +[](https://github.com/cfpb/django-flags/actions) +[](https://ethicalsource.dev/principles/) + +Feature flags allow you to toggle functionality in both Django code and the Django templates based on configurable conditions. Flags can be useful for staging feature deployments, for A/B testing, or for any time you need an on/off switch for blocks of code. The toggle can be by date, user, URL value, or a number of [other conditions](https://cfpb.github.io/django-flags/conditions/), editable in the admin or in definable in settings. + +- [Dependencies](#dependencies) +- [Installation](#installation) +- [Documentation](#documentation) +- [Getting help](#getting-help) +- [Getting involved](#getting-involved) +- [Licensing](#licensing) +- [Credits and references](#credits-and-references) + +## Dependencies + +- Python 3.6+ +- Django 2.2-4.0 + +## Installation + +1. Install Django-Flags: + +```shell +pip install django-flags +``` + +2. Add `flags` as an installed app in your Django `settings.py`: + + ```python + INSTALLED_APPS = ( + ... + 'flags', + ... + ) +``` + +## Documentation + +https://cfpb.github.io/django-flags is the full documentation for Django-Flags, and includes how to get started, general usage, and an API reference. + +## Getting help + +Please add issues to the [issue tracker](https://github.com/cfpb/django-flags/issues). + +## Getting involved + +General instructions on _how_ to contribute can be found in [CONTRIBUTING](CONTRIBUTING.md). + +## Licensing +1. [TERMS](TERMS.md) +2. [LICENSE](LICENSE) +3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/) + +## Credits and references + +Django-Flags was forked from [Wagtail-Flags](https://github.com/cfpb/wagtail-flags), which was itself forked from [cfgov-refresh](https://github.com/cfpb/cfgov-refresh). + + + + +%package -n python3-django-flags +Summary: Feature flags for Django projects +Provides: python-django-flags +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-flags +# Django-Flags + +[](https://github.com/cfpb/django-flags/actions) +[](https://ethicalsource.dev/principles/) + +Feature flags allow you to toggle functionality in both Django code and the Django templates based on configurable conditions. Flags can be useful for staging feature deployments, for A/B testing, or for any time you need an on/off switch for blocks of code. The toggle can be by date, user, URL value, or a number of [other conditions](https://cfpb.github.io/django-flags/conditions/), editable in the admin or in definable in settings. + +- [Dependencies](#dependencies) +- [Installation](#installation) +- [Documentation](#documentation) +- [Getting help](#getting-help) +- [Getting involved](#getting-involved) +- [Licensing](#licensing) +- [Credits and references](#credits-and-references) + +## Dependencies + +- Python 3.6+ +- Django 2.2-4.0 + +## Installation + +1. Install Django-Flags: + +```shell +pip install django-flags +``` + +2. Add `flags` as an installed app in your Django `settings.py`: + + ```python + INSTALLED_APPS = ( + ... + 'flags', + ... + ) +``` + +## Documentation + +https://cfpb.github.io/django-flags is the full documentation for Django-Flags, and includes how to get started, general usage, and an API reference. + +## Getting help + +Please add issues to the [issue tracker](https://github.com/cfpb/django-flags/issues). + +## Getting involved + +General instructions on _how_ to contribute can be found in [CONTRIBUTING](CONTRIBUTING.md). + +## Licensing +1. [TERMS](TERMS.md) +2. [LICENSE](LICENSE) +3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/) + +## Credits and references + +Django-Flags was forked from [Wagtail-Flags](https://github.com/cfpb/wagtail-flags), which was itself forked from [cfgov-refresh](https://github.com/cfpb/cfgov-refresh). + + + + +%package help +Summary: Development documents and examples for django-flags +Provides: python3-django-flags-doc +%description help +# Django-Flags + +[](https://github.com/cfpb/django-flags/actions) +[](https://ethicalsource.dev/principles/) + +Feature flags allow you to toggle functionality in both Django code and the Django templates based on configurable conditions. Flags can be useful for staging feature deployments, for A/B testing, or for any time you need an on/off switch for blocks of code. The toggle can be by date, user, URL value, or a number of [other conditions](https://cfpb.github.io/django-flags/conditions/), editable in the admin or in definable in settings. + +- [Dependencies](#dependencies) +- [Installation](#installation) +- [Documentation](#documentation) +- [Getting help](#getting-help) +- [Getting involved](#getting-involved) +- [Licensing](#licensing) +- [Credits and references](#credits-and-references) + +## Dependencies + +- Python 3.6+ +- Django 2.2-4.0 + +## Installation + +1. Install Django-Flags: + +```shell +pip install django-flags +``` + +2. Add `flags` as an installed app in your Django `settings.py`: + + ```python + INSTALLED_APPS = ( + ... + 'flags', + ... + ) +``` + +## Documentation + +https://cfpb.github.io/django-flags is the full documentation for Django-Flags, and includes how to get started, general usage, and an API reference. + +## Getting help + +Please add issues to the [issue tracker](https://github.com/cfpb/django-flags/issues). + +## Getting involved + +General instructions on _how_ to contribute can be found in [CONTRIBUTING](CONTRIBUTING.md). + +## Licensing +1. [TERMS](TERMS.md) +2. [LICENSE](LICENSE) +3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/) + +## Credits and references + +Django-Flags was forked from [Wagtail-Flags](https://github.com/cfpb/wagtail-flags), which was itself forked from [cfgov-refresh](https://github.com/cfpb/cfgov-refresh). + + + + +%prep +%autosetup -n django-flags-5.0.12 + +%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-flags -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0.12-1 +- Package Spec generated @@ -0,0 +1 @@ +a89d19f6c4bb91aaef18206030b30c12 django-flags-5.0.12.tar.gz |