summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-08 15:35:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-08 15:35:42 +0000
commitbc134674bfdc2ace6e4f2672c98f95467ffce37a (patch)
treee1b7e9d828e302f2b464166e8bd2b56a2a306cad
parent6e29721adf39ed3e5a818823390e92e571ba4de9 (diff)
automatic import of python-setup-cfg-fmtopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-setup-cfg-fmt.spec75
-rw-r--r--sources2
3 files changed, 17 insertions, 61 deletions
diff --git a/.gitignore b/.gitignore
index 5271055..ae45ee1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/setup_cfg_fmt-2.2.0.tar.gz
+/setup_cfg_fmt-2.3.0.tar.gz
diff --git a/python-setup-cfg-fmt.spec b/python-setup-cfg-fmt.spec
index 0921eea..07812b3 100644
--- a/python-setup-cfg-fmt.spec
+++ b/python-setup-cfg-fmt.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-setup-cfg-fmt
-Version: 2.2.0
+Version: 2.3.0
Release: 1
Summary: apply a consistent format to `setup.cfg` files
License: MIT
URL: https://github.com/asottile/setup-cfg-fmt
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/eb/c51ed9c80c59b90a6b2666aaaddd3111b21e1efa1b1ac4397d86d6a3b881/setup_cfg_fmt-2.2.0.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/80/48/71c607ab047895f76a200ddf6c2ecd1ecb4231aed3a127821c34b45748b3/setup_cfg_fmt-2.3.0.tar.gz
BuildArch: noarch
Requires: python3-identify[license]
@@ -21,7 +21,7 @@ See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v2.2.0
+ rev: v2.3.0
hooks:
- id: setup-cfg-fmt
```
@@ -29,11 +29,6 @@ Sample `.pre-commit-config.yaml`:
Consult the help for the latest usage:
```console
$ setup-cfg-fmt --help
-usage: setup-cfg-fmt [-h] [filenames [filenames ...]]
-positional arguments:
- filenames
-optional arguments:
- -h, --help show this help message and exit
```
## what does it do?
### sets a consistent ordering for attributes
@@ -101,14 +96,7 @@ A few sources are searched for guessing `python_requires`:
- the existing `python_requires` setting itself
- `envlist` in `tox.ini` if present
- python version `classifiers` that are already set
-- the `--min-py3-version` argument (currently defaulting to `3.7`)
-If the minimum version is detected as python2, the `--min-py3-version`
-argument will be used to exclude python3.x versions (see below).
-```diff
- [options]
- py_modules = pre_commit
-+python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-```
+- the `--min-py-version` argument (currently defaulting to `3.7`)
### adds python version classifiers
classifiers are generated based on:
- the `python_requires` setting
@@ -118,8 +106,6 @@ classifiers are generated based on:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
-+ Programming Language :: Python :: 2.7
+ Programming Language :: Python :: 3
+ Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
@@ -132,7 +118,6 @@ without `--include-version-classifiers` only the major version will be included:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
+ Programming Language :: Python :: 3
```
### sorts classifiers
@@ -174,7 +159,7 @@ See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v2.2.0
+ rev: v2.3.0
hooks:
- id: setup-cfg-fmt
```
@@ -182,11 +167,6 @@ Sample `.pre-commit-config.yaml`:
Consult the help for the latest usage:
```console
$ setup-cfg-fmt --help
-usage: setup-cfg-fmt [-h] [filenames [filenames ...]]
-positional arguments:
- filenames
-optional arguments:
- -h, --help show this help message and exit
```
## what does it do?
### sets a consistent ordering for attributes
@@ -254,14 +234,7 @@ A few sources are searched for guessing `python_requires`:
- the existing `python_requires` setting itself
- `envlist` in `tox.ini` if present
- python version `classifiers` that are already set
-- the `--min-py3-version` argument (currently defaulting to `3.7`)
-If the minimum version is detected as python2, the `--min-py3-version`
-argument will be used to exclude python3.x versions (see below).
-```diff
- [options]
- py_modules = pre_commit
-+python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-```
+- the `--min-py-version` argument (currently defaulting to `3.7`)
### adds python version classifiers
classifiers are generated based on:
- the `python_requires` setting
@@ -271,8 +244,6 @@ classifiers are generated based on:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
-+ Programming Language :: Python :: 2.7
+ Programming Language :: Python :: 3
+ Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
@@ -285,7 +256,6 @@ without `--include-version-classifiers` only the major version will be included:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
+ Programming Language :: Python :: 3
```
### sorts classifiers
@@ -324,7 +294,7 @@ See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions
Sample `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v2.2.0
+ rev: v2.3.0
hooks:
- id: setup-cfg-fmt
```
@@ -332,11 +302,6 @@ Sample `.pre-commit-config.yaml`:
Consult the help for the latest usage:
```console
$ setup-cfg-fmt --help
-usage: setup-cfg-fmt [-h] [filenames [filenames ...]]
-positional arguments:
- filenames
-optional arguments:
- -h, --help show this help message and exit
```
## what does it do?
### sets a consistent ordering for attributes
@@ -404,14 +369,7 @@ A few sources are searched for guessing `python_requires`:
- the existing `python_requires` setting itself
- `envlist` in `tox.ini` if present
- python version `classifiers` that are already set
-- the `--min-py3-version` argument (currently defaulting to `3.7`)
-If the minimum version is detected as python2, the `--min-py3-version`
-argument will be used to exclude python3.x versions (see below).
-```diff
- [options]
- py_modules = pre_commit
-+python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-```
+- the `--min-py-version` argument (currently defaulting to `3.7`)
### adds python version classifiers
classifiers are generated based on:
- the `python_requires` setting
@@ -421,8 +379,6 @@ classifiers are generated based on:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
-+ Programming Language :: Python :: 2.7
+ Programming Language :: Python :: 3
+ Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
@@ -435,7 +391,6 @@ without `--include-version-classifiers` only the major version will be included:
name = pkg
version = 1.0
+classifiers =
-+ Programming Language :: Python :: 2
+ Programming Language :: Python :: 3
```
### sorts classifiers
@@ -461,7 +416,7 @@ without `--include-version-classifiers` only the major version will be included:
[setup-py-upgrade]: https://github.com/asottile/setup-py-upgrade
%prep
-%autosetup -n setup-cfg-fmt-2.2.0
+%autosetup -n setup_cfg_fmt-2.3.0
%build
%py3_build
@@ -475,20 +430,20 @@ 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
+ 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
+ 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
+ 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
+ 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
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -501,5 +456,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.0-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
- Package Spec generated
diff --git a/sources b/sources
index 814050e..a103fc4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c19d4f07f37cd355c1a1e9bdc1d0a4cd setup_cfg_fmt-2.2.0.tar.gz
+76976139c8a9125c4a9c000d44dabad1 setup_cfg_fmt-2.3.0.tar.gz