%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 [![Build Status](https://github.com/cfpb/django-flags/workflows/test/badge.svg)](https://github.com/cfpb/django-flags/actions) [![Ethical open source](https://img.shields.io/badge/ethical-open-%23bb8c3c?labelColor=393162)](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 [![Build Status](https://github.com/cfpb/django-flags/workflows/test/badge.svg)](https://github.com/cfpb/django-flags/actions) [![Ethical open source](https://img.shields.io/badge/ethical-open-%23bb8c3c?labelColor=393162)](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 [![Build Status](https://github.com/cfpb/django-flags/workflows/test/badge.svg)](https://github.com/cfpb/django-flags/actions) [![Ethical open source](https://img.shields.io/badge/ethical-open-%23bb8c3c?labelColor=393162)](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 - 5.0.12-1 - Package Spec generated