mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
Most of the meta data is moved except entry points
This commit is contained in:
parent
027ed1c9cc
commit
9c935ace74
3 changed files with 64 additions and 77 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -13,3 +13,5 @@
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
docs/build/html/*
|
docs/build/html/*
|
||||||
|
venv/
|
||||||
|
.vscode/
|
||||||
|
|
|
||||||
71
setup.cfg
71
setup.cfg
|
|
@ -2,21 +2,74 @@
|
||||||
universal = 1
|
universal = 1
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
|
name = flake8
|
||||||
|
version = attr: src.flake8.__version__
|
||||||
|
license = MIT
|
||||||
license_file = LICENSE
|
license_file = LICENSE
|
||||||
# We document the reasoning for using ranges here:
|
description = the modular source code checker: pep8 pyflakes and co
|
||||||
# http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
|
long_description = file: README.rst
|
||||||
# And in which releases we will update those ranges here:
|
author = Tarek Ziade
|
||||||
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
|
author_email = tarek@ziade.org
|
||||||
requires-dist =
|
maintainer = Ian Stapleton Cordasco
|
||||||
enum34; python_version<"3.4"
|
maintainer_email = graffatcolmingov@gmail.com
|
||||||
typing; python_version<"3.5"
|
url = https://gitlab.com/pycqa/flake8
|
||||||
configparser; python_version<"3.2"
|
# # We document the reasoning for using ranges here:
|
||||||
functools32; python_version<"3.2"
|
# # http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
|
||||||
|
# # And in which releases we will update those ranges here:
|
||||||
|
# # http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
|
||||||
|
# requires-dist =
|
||||||
|
# enum34; python_version<"3.4"
|
||||||
|
# typing; python_version<"3.5"
|
||||||
|
# configparser; python_version<"3.2"
|
||||||
|
# functools32; python_version<"3.2"
|
||||||
|
# entrypoints >= 0.3.0, < 0.4.0
|
||||||
|
# pyflakes >= 2.1.0, < 2.2.0
|
||||||
|
# pycodestyle >= 2.5.0, < 2.6.0
|
||||||
|
# mccabe >= 0.6.0, < 0.7.0
|
||||||
|
|
||||||
|
classifiers =
|
||||||
|
Development Status :: 5 - Production/Stable
|
||||||
|
Environment :: Console
|
||||||
|
Framework :: Flake8
|
||||||
|
Intended Audience :: Developers
|
||||||
|
License :: OSI Approved :: MIT License
|
||||||
|
Programming Language :: Python
|
||||||
|
Programming Language :: Python :: 2
|
||||||
|
Programming Language :: Python :: 2.7
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
Programming Language :: Python :: 3.4
|
||||||
|
Programming Language :: Python :: 3.5
|
||||||
|
Programming Language :: Python :: 3.6
|
||||||
|
Programming Language :: Python :: 3.7
|
||||||
|
Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Topic :: Software Development :: Quality Assurance
|
||||||
|
|
||||||
|
[options]
|
||||||
|
package_dir=
|
||||||
|
=src
|
||||||
|
packages = find:
|
||||||
|
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
|
||||||
|
|
||||||
|
# # We document the reasoning for using ranges here:
|
||||||
|
# # http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
|
||||||
|
# # And in which releases we will update those ranges here:
|
||||||
|
# # http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
|
||||||
|
|
||||||
|
install_requires =
|
||||||
entrypoints >= 0.3.0, < 0.4.0
|
entrypoints >= 0.3.0, < 0.4.0
|
||||||
pyflakes >= 2.1.0, < 2.2.0
|
pyflakes >= 2.1.0, < 2.2.0
|
||||||
pycodestyle >= 2.5.0, < 2.6.0
|
pycodestyle >= 2.5.0, < 2.6.0
|
||||||
mccabe >= 0.6.0, < 0.7.0
|
mccabe >= 0.6.0, < 0.7.0
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
where=src
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
enum34=enum34; python_version<"3.4"
|
||||||
|
typing=typing; python_version<"3.5"
|
||||||
|
configparser=configparser; python_version<"3.2"
|
||||||
|
functools32=functools32; python_version<"3.2"
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
disallow_any_generics = true
|
disallow_any_generics = true
|
||||||
|
|
|
||||||
68
setup.py
68
setup.py
|
|
@ -12,25 +12,6 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) # noqa
|
||||||
import flake8
|
import flake8
|
||||||
|
|
||||||
|
|
||||||
# NOTE(sigmavirus24): When updating these requirements, update them in
|
|
||||||
# setup.cfg as well.
|
|
||||||
requires = [
|
|
||||||
# We document the reasoning for using ranges here:
|
|
||||||
# http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
|
|
||||||
# And in which releases we will update those ranges here:
|
|
||||||
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
|
|
||||||
"entrypoints >= 0.3.0, < 0.4.0",
|
|
||||||
"pyflakes >= 2.1.0, < 2.2.0",
|
|
||||||
"pycodestyle >= 2.5.0, < 2.6.0",
|
|
||||||
"mccabe >= 0.6.0, < 0.7.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
extras_require = {
|
|
||||||
":python_version<'3.4'": ['enum34'],
|
|
||||||
":python_version<'3.5'": ['typing'],
|
|
||||||
":python_version<'3.2'": ['configparser', 'functools32'],
|
|
||||||
}
|
|
||||||
|
|
||||||
if int(setuptools.__version__.split('.')[0]) < 18:
|
if int(setuptools.__version__.split('.')[0]) < 18:
|
||||||
extras_require = {}
|
extras_require = {}
|
||||||
if sys.version_info < (3, 4):
|
if sys.version_info < (3, 4):
|
||||||
|
|
@ -38,44 +19,12 @@ if int(setuptools.__version__.split('.')[0]) < 18:
|
||||||
if sys.version_info < (3, 2):
|
if sys.version_info < (3, 2):
|
||||||
requires.append('configparser')
|
requires.append('configparser')
|
||||||
|
|
||||||
|
|
||||||
def get_long_description():
|
|
||||||
"""Generate a long description from the README file."""
|
|
||||||
descr = []
|
|
||||||
for fname in ('README.rst',):
|
|
||||||
with io.open(fname, encoding='utf-8') as f:
|
|
||||||
descr.append(f.read())
|
|
||||||
return '\n\n'.join(descr)
|
|
||||||
|
|
||||||
|
|
||||||
PEP8 = 'pycodestyle'
|
PEP8 = 'pycodestyle'
|
||||||
_FORMAT = '{0}.{1} = {0}:{1}'
|
_FORMAT = '{0}.{1} = {0}:{1}'
|
||||||
PEP8_PLUGIN = functools.partial(_FORMAT.format, PEP8)
|
PEP8_PLUGIN = functools.partial(_FORMAT.format, PEP8)
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="flake8",
|
|
||||||
license="MIT",
|
|
||||||
version=flake8.__version__,
|
|
||||||
description="the modular source code checker: pep8, pyflakes and co",
|
|
||||||
long_description=get_long_description(),
|
|
||||||
author="Tarek Ziade",
|
|
||||||
author_email="tarek@ziade.org",
|
|
||||||
maintainer="Ian Stapleton Cordasco",
|
|
||||||
maintainer_email="graffatcolmingov@gmail.com",
|
|
||||||
url="https://gitlab.com/pycqa/flake8",
|
|
||||||
package_dir={"": "src"},
|
|
||||||
packages=[
|
|
||||||
"flake8",
|
|
||||||
"flake8.api",
|
|
||||||
"flake8.formatting",
|
|
||||||
"flake8.main",
|
|
||||||
"flake8.options",
|
|
||||||
"flake8.plugins",
|
|
||||||
],
|
|
||||||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
|
||||||
install_requires=requires,
|
|
||||||
extras_require=extras_require,
|
|
||||||
entry_points={
|
entry_points={
|
||||||
'distutils.commands': [
|
'distutils.commands': [
|
||||||
'flake8 = flake8.main.setuptools_command:Flake8'
|
'flake8 = flake8.main.setuptools_command:Flake8'
|
||||||
|
|
@ -130,21 +79,4 @@ setuptools.setup(
|
||||||
'quiet-nothing = flake8.formatting.default:Nothing',
|
'quiet-nothing = flake8.formatting.default:Nothing',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
classifiers=[
|
|
||||||
"Development Status :: 5 - Production/Stable",
|
|
||||||
"Environment :: Console",
|
|
||||||
"Framework :: Flake8",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
"Programming Language :: Python",
|
|
||||||
"Programming Language :: Python :: 2",
|
|
||||||
"Programming Language :: Python :: 2.7",
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"Programming Language :: Python :: 3.4",
|
|
||||||
"Programming Language :: Python :: 3.5",
|
|
||||||
"Programming Language :: Python :: 3.6",
|
|
||||||
"Programming Language :: Python :: 3.7",
|
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
||||||
"Topic :: Software Development :: Quality Assurance",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue