summaryrefslogtreecommitdiff
path: root/python-flake8-fixme.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-flake8-fixme.spec')
-rw-r--r--python-flake8-fixme.spec285
1 files changed, 285 insertions, 0 deletions
diff --git a/python-flake8-fixme.spec b/python-flake8-fixme.spec
new file mode 100644
index 0000000..79cad30
--- /dev/null
+++ b/python-flake8-fixme.spec
@@ -0,0 +1,285 @@
+%global _empty_manifest_terminate_build 0
+Name: python-flake8-fixme
+Version: 1.1.1
+Release: 1
+Summary: Check for FIXME, TODO and other temporary developer notes. Plugin for flake8.
+License: Apache-2.0
+URL: https://github.com/tommilligan/flake8-fixme
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/58/96/51adbf26b1cc4c2f3a434fa06972a6bc9b3d96f6a4c04dfe9a604b5ce10e/flake8-fixme-1.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# flake8-fixme
+
+[![PyPI](https://img.shields.io/pypi/v/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![PyPI](https://img.shields.io/pypi/pyversions/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![codecov](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master/graph/badge.svg)](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master)
+[![CircleCI branch](https://img.shields.io/circleci/project/github/tommilligan/flake8-fixme/master.svg)](https://circleci.com/gh/tommilligan/flake8-fixme)
+
+Check for FIXME, TODO and other temporary developer notes.
+
+This module provides a plugin for `flake8`, the Python code checker.
+
+> This module was inspired by [flake8-todo](https://github.com/schlamar/flake8-todo)
+
+## Installation
+
+Install with pip:
+
+```bash
+pip install flake8-fixme
+```
+
+The plugin officially supports Python `>= 3.6` and `flake8 >= 3.7`.
+You may find other Python 3 versions work as well.
+
+## Usage
+
+The plugin finds temporary comments you may not want to commit:
+
+```python
+def my_function():
+ # FIXME actual implementation here!
+ pass
+```
+
+```log
+./my_file.py:2:7: T100 Fixme found (FIXME)
+```
+
+Each word has a seperate warning so you can adjust your workflow. We like to allow committing `TODO`s, but deny committing `FIXME`s.
+
+## Changelog
+
+### 1.0.2
+
+#### Enhancements
+
+- development pipeline now runs integration tests with flake8, for
+ - locally built package (all builds)
+ - package downloaded from pypi (after version release)
+
+### 1.0.1
+
+#### Bugfixes
+
+- fixed pypi packaging not picking up source files
+- fixed setup.py not loading markdown readme correctly
+
+### 1.0.0
+
+#### Breaking changes
+
+Upgrading to `flake8-fixme` from `flake8-todo` has the following breaking changes:
+
+- error codes have been changed as follows:
+ - `T100`: line contains `FIXME`
+ - `T101`: line contains `TODO`
+ - `T102`: line contains `XXX`
+- a line containing multiple words will raise an error for each word
+- drop support for Python `2.7`
+
+
+
+
+%package -n python3-flake8-fixme
+Summary: Check for FIXME, TODO and other temporary developer notes. Plugin for flake8.
+Provides: python-flake8-fixme
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-flake8-fixme
+# flake8-fixme
+
+[![PyPI](https://img.shields.io/pypi/v/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![PyPI](https://img.shields.io/pypi/pyversions/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![codecov](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master/graph/badge.svg)](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master)
+[![CircleCI branch](https://img.shields.io/circleci/project/github/tommilligan/flake8-fixme/master.svg)](https://circleci.com/gh/tommilligan/flake8-fixme)
+
+Check for FIXME, TODO and other temporary developer notes.
+
+This module provides a plugin for `flake8`, the Python code checker.
+
+> This module was inspired by [flake8-todo](https://github.com/schlamar/flake8-todo)
+
+## Installation
+
+Install with pip:
+
+```bash
+pip install flake8-fixme
+```
+
+The plugin officially supports Python `>= 3.6` and `flake8 >= 3.7`.
+You may find other Python 3 versions work as well.
+
+## Usage
+
+The plugin finds temporary comments you may not want to commit:
+
+```python
+def my_function():
+ # FIXME actual implementation here!
+ pass
+```
+
+```log
+./my_file.py:2:7: T100 Fixme found (FIXME)
+```
+
+Each word has a seperate warning so you can adjust your workflow. We like to allow committing `TODO`s, but deny committing `FIXME`s.
+
+## Changelog
+
+### 1.0.2
+
+#### Enhancements
+
+- development pipeline now runs integration tests with flake8, for
+ - locally built package (all builds)
+ - package downloaded from pypi (after version release)
+
+### 1.0.1
+
+#### Bugfixes
+
+- fixed pypi packaging not picking up source files
+- fixed setup.py not loading markdown readme correctly
+
+### 1.0.0
+
+#### Breaking changes
+
+Upgrading to `flake8-fixme` from `flake8-todo` has the following breaking changes:
+
+- error codes have been changed as follows:
+ - `T100`: line contains `FIXME`
+ - `T101`: line contains `TODO`
+ - `T102`: line contains `XXX`
+- a line containing multiple words will raise an error for each word
+- drop support for Python `2.7`
+
+
+
+
+%package help
+Summary: Development documents and examples for flake8-fixme
+Provides: python3-flake8-fixme-doc
+%description help
+# flake8-fixme
+
+[![PyPI](https://img.shields.io/pypi/v/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![PyPI](https://img.shields.io/pypi/pyversions/flake8-fixme.svg)](https://pypi.python.org/pypi/flake8-fixme)
+[![codecov](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master/graph/badge.svg)](https://codecov.io/gh/tommilligan/flake8-fixme/branch/master)
+[![CircleCI branch](https://img.shields.io/circleci/project/github/tommilligan/flake8-fixme/master.svg)](https://circleci.com/gh/tommilligan/flake8-fixme)
+
+Check for FIXME, TODO and other temporary developer notes.
+
+This module provides a plugin for `flake8`, the Python code checker.
+
+> This module was inspired by [flake8-todo](https://github.com/schlamar/flake8-todo)
+
+## Installation
+
+Install with pip:
+
+```bash
+pip install flake8-fixme
+```
+
+The plugin officially supports Python `>= 3.6` and `flake8 >= 3.7`.
+You may find other Python 3 versions work as well.
+
+## Usage
+
+The plugin finds temporary comments you may not want to commit:
+
+```python
+def my_function():
+ # FIXME actual implementation here!
+ pass
+```
+
+```log
+./my_file.py:2:7: T100 Fixme found (FIXME)
+```
+
+Each word has a seperate warning so you can adjust your workflow. We like to allow committing `TODO`s, but deny committing `FIXME`s.
+
+## Changelog
+
+### 1.0.2
+
+#### Enhancements
+
+- development pipeline now runs integration tests with flake8, for
+ - locally built package (all builds)
+ - package downloaded from pypi (after version release)
+
+### 1.0.1
+
+#### Bugfixes
+
+- fixed pypi packaging not picking up source files
+- fixed setup.py not loading markdown readme correctly
+
+### 1.0.0
+
+#### Breaking changes
+
+Upgrading to `flake8-fixme` from `flake8-todo` has the following breaking changes:
+
+- error codes have been changed as follows:
+ - `T100`: line contains `FIXME`
+ - `T101`: line contains `TODO`
+ - `T102`: line contains `XXX`
+- a line containing multiple words will raise an error for each word
+- drop support for Python `2.7`
+
+
+
+
+%prep
+%autosetup -n flake8-fixme-1.1.1
+
+%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-flake8-fixme -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1
+- Package Spec generated