From e92b7d953ec7cdd4e359a1ed49332ef7e88eb4fe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 08:09:45 +0000 Subject: automatic import of python-django-migrations-formatter --- .gitignore | 1 + python-django-migrations-formatter.spec | 260 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 262 insertions(+) create mode 100644 python-django-migrations-formatter.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3591d7d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/django-migrations-formatter-1.0.0.tar.gz diff --git a/python-django-migrations-formatter.spec b/python-django-migrations-formatter.spec new file mode 100644 index 0000000..b84ba61 --- /dev/null +++ b/python-django-migrations-formatter.spec @@ -0,0 +1,260 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-migrations-formatter +Version: 1.0.0 +Release: 1 +Summary: A Django library to automatically format your migrations. +License: BSD +URL: https://github.com/MarkusH/django-migrations-formatter +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/b3/5deb5808160102632aa6b4d193088932eeecf2ac82126a146bbdb813106e/django-migrations-formatter-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-black +Requires: python3-pre-commit +Requires: python3-isort +Requires: python3-coverage[toml] +Requires: python3-Django + +%description +# django-migrations-formatter + +[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/MarkusH/django-migrations-formatter/Test%20&%20Deploy/main?style=for-the-badge)](https://github.com/MarkusH/django-migrations-formatter/actions?query=branch%3Amain+event%3Apush) +[![Codecov branch](https://img.shields.io/codecov/c/gh/MarkusH/django-migrations-formatter/main?style=for-the-badge)](https://app.codecov.io/gh/MarkusH/django-migrations-formatter/branch/main) +[![Version](https://img.shields.io/pypi/v/django-migrations-formatter?label=Version&style=for-the-badge)](https://pypi.org/project/django-migrations-formatter/) +![License](https://img.shields.io/pypi/l/django-migrations-formatter?style=for-the-badge) +![Python Versions](https://img.shields.io/pypi/pyversions/django-migrations-formatter?label=Python&style=for-the-badge) +![Django Versions](https://img.shields.io/pypi/djversions/django-migrations-formatter?color=%230C4B33&label=Django&style=for-the-badge) + +This Django library will format Django migrations using +[black](https://pypi.org/project/black/) and [isort](https://pypi.org/project/isort/). + +## Installation + +Start by installing `django-migrations-formatter` from PyPI: + +```console +(env)$ python -m pip install django-migrations-formatter +``` + +You will also need to make sure to have `black` and/or `isort` installed. +Without them, this library doesn't provide any value. For ease of use, you can +install either of them by including them as "extras" during the installation. + +```console +(env)$ python -m pip install "django-migrations-formatter[black,isort]" +``` + +Then you need to add `django_migrations_formatter.apps.MigrationsFormatter` to +your `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ..., + 'django_migrations_formatter.apps.MigrationsFormatter', +] +``` + +## Contributing + +The project uses [black](https://pypi.org/project/black/) and +[isort](https://pypi.org/project/isort/) for formatting its code. +[flake8](https://pypi.org/project/flake8/) is used for linting. All these are +combined into [pre-commit](https://pre-commit.com/) to run before each commit +and push. To set it up: + +```console +(env)$ python -m pip install '.[black,dev,isort,test]' +(env)$ pre-commit install -t pre-commit -t pre-push --install-hooks +``` + +To run the unit tests: + +```console +(env)$ django-admin test --pythonpath . -v 2 --settings=tests.settings +``` + +If you spot an problem, please [open an issue](https://github.com/MarkusH/django-migrations-formatter/issues/new) +on GitHub. + + + + +%package -n python3-django-migrations-formatter +Summary: A Django library to automatically format your migrations. +Provides: python-django-migrations-formatter +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-migrations-formatter +# django-migrations-formatter + +[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/MarkusH/django-migrations-formatter/Test%20&%20Deploy/main?style=for-the-badge)](https://github.com/MarkusH/django-migrations-formatter/actions?query=branch%3Amain+event%3Apush) +[![Codecov branch](https://img.shields.io/codecov/c/gh/MarkusH/django-migrations-formatter/main?style=for-the-badge)](https://app.codecov.io/gh/MarkusH/django-migrations-formatter/branch/main) +[![Version](https://img.shields.io/pypi/v/django-migrations-formatter?label=Version&style=for-the-badge)](https://pypi.org/project/django-migrations-formatter/) +![License](https://img.shields.io/pypi/l/django-migrations-formatter?style=for-the-badge) +![Python Versions](https://img.shields.io/pypi/pyversions/django-migrations-formatter?label=Python&style=for-the-badge) +![Django Versions](https://img.shields.io/pypi/djversions/django-migrations-formatter?color=%230C4B33&label=Django&style=for-the-badge) + +This Django library will format Django migrations using +[black](https://pypi.org/project/black/) and [isort](https://pypi.org/project/isort/). + +## Installation + +Start by installing `django-migrations-formatter` from PyPI: + +```console +(env)$ python -m pip install django-migrations-formatter +``` + +You will also need to make sure to have `black` and/or `isort` installed. +Without them, this library doesn't provide any value. For ease of use, you can +install either of them by including them as "extras" during the installation. + +```console +(env)$ python -m pip install "django-migrations-formatter[black,isort]" +``` + +Then you need to add `django_migrations_formatter.apps.MigrationsFormatter` to +your `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ..., + 'django_migrations_formatter.apps.MigrationsFormatter', +] +``` + +## Contributing + +The project uses [black](https://pypi.org/project/black/) and +[isort](https://pypi.org/project/isort/) for formatting its code. +[flake8](https://pypi.org/project/flake8/) is used for linting. All these are +combined into [pre-commit](https://pre-commit.com/) to run before each commit +and push. To set it up: + +```console +(env)$ python -m pip install '.[black,dev,isort,test]' +(env)$ pre-commit install -t pre-commit -t pre-push --install-hooks +``` + +To run the unit tests: + +```console +(env)$ django-admin test --pythonpath . -v 2 --settings=tests.settings +``` + +If you spot an problem, please [open an issue](https://github.com/MarkusH/django-migrations-formatter/issues/new) +on GitHub. + + + + +%package help +Summary: Development documents and examples for django-migrations-formatter +Provides: python3-django-migrations-formatter-doc +%description help +# django-migrations-formatter + +[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/MarkusH/django-migrations-formatter/Test%20&%20Deploy/main?style=for-the-badge)](https://github.com/MarkusH/django-migrations-formatter/actions?query=branch%3Amain+event%3Apush) +[![Codecov branch](https://img.shields.io/codecov/c/gh/MarkusH/django-migrations-formatter/main?style=for-the-badge)](https://app.codecov.io/gh/MarkusH/django-migrations-formatter/branch/main) +[![Version](https://img.shields.io/pypi/v/django-migrations-formatter?label=Version&style=for-the-badge)](https://pypi.org/project/django-migrations-formatter/) +![License](https://img.shields.io/pypi/l/django-migrations-formatter?style=for-the-badge) +![Python Versions](https://img.shields.io/pypi/pyversions/django-migrations-formatter?label=Python&style=for-the-badge) +![Django Versions](https://img.shields.io/pypi/djversions/django-migrations-formatter?color=%230C4B33&label=Django&style=for-the-badge) + +This Django library will format Django migrations using +[black](https://pypi.org/project/black/) and [isort](https://pypi.org/project/isort/). + +## Installation + +Start by installing `django-migrations-formatter` from PyPI: + +```console +(env)$ python -m pip install django-migrations-formatter +``` + +You will also need to make sure to have `black` and/or `isort` installed. +Without them, this library doesn't provide any value. For ease of use, you can +install either of them by including them as "extras" during the installation. + +```console +(env)$ python -m pip install "django-migrations-formatter[black,isort]" +``` + +Then you need to add `django_migrations_formatter.apps.MigrationsFormatter` to +your `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ..., + 'django_migrations_formatter.apps.MigrationsFormatter', +] +``` + +## Contributing + +The project uses [black](https://pypi.org/project/black/) and +[isort](https://pypi.org/project/isort/) for formatting its code. +[flake8](https://pypi.org/project/flake8/) is used for linting. All these are +combined into [pre-commit](https://pre-commit.com/) to run before each commit +and push. To set it up: + +```console +(env)$ python -m pip install '.[black,dev,isort,test]' +(env)$ pre-commit install -t pre-commit -t pre-push --install-hooks +``` + +To run the unit tests: + +```console +(env)$ django-admin test --pythonpath . -v 2 --settings=tests.settings +``` + +If you spot an problem, please [open an issue](https://github.com/MarkusH/django-migrations-formatter/issues/new) +on GitHub. + + + + +%prep +%autosetup -n django-migrations-formatter-1.0.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-migrations-formatter -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot - 1.0.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..dc1ee6d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +5ef7e25ed8b9f1a422d7619e0e84ee9b django-migrations-formatter-1.0.0.tar.gz -- cgit v1.2.3