-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for Python 2 and flake8 2.x
Enough time has passed for us to safely drop support for old versions of Python 2 (and 3.6) and flake8.
- Loading branch information
Showing
4 changed files
with
58 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
[metadata] | ||
name = flake8-author | ||
version = attr: flake8_author.__version__ | ||
author = Jon Parise | ||
author_email = jon@indelible.org | ||
description = Flake8 __author__ checker | ||
long_description = file: README.rst, LICENSE, CHANGES.rst | ||
license = MIT | ||
url = https://github.com/jparise/flake8-author | ||
project_urls = | ||
Source Code = https://github.com/jparise/flake8-author | ||
Issue Tracker = https://github.com/jparise/flake8-author/issues | ||
keywords = flake8 __author__ | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Framework :: Flake8 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Software Development :: Quality Assurance | ||
|
||
[options] | ||
py_modules = flake8_author | ||
python_requires = >= 3.7 | ||
zip_safe = True | ||
|
||
[options.entry_points] | ||
flake8.extension = | ||
A40 = flake8_author:Checker | ||
|
||
[flake8] | ||
exclude=.eggs/,.git/,.venv/,build/,dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,10 @@ | ||
#!/usr/bin/env python | ||
|
||
import re | ||
|
||
from setuptools import setup | ||
|
||
|
||
def get_version(filename): | ||
f = open(filename).read() | ||
return re.search("__version__ = ['\"]([^'\"]+)['\"]", f).group(1) | ||
|
||
|
||
version = get_version('flake8_author.py') | ||
description = open('README.rst').read() + "\n\n" + open('CHANGES.rst').read() | ||
|
||
setup( | ||
name='flake8-author', | ||
version=version, | ||
description='Flake8 __author__ checker', | ||
long_description=description, | ||
author='Jon Parise', | ||
author_email='jon@indelible.org', | ||
keywords='flake8 __author__', | ||
url='https://github.com/jparise/flake8-author', | ||
download_url='https://github.com/jparise/flake8-author/tarball/' + version, | ||
license='MIT', | ||
py_modules=['flake8_author'], | ||
entry_points={ | ||
'flake8.extension': ['A40 = flake8_author:Checker'], | ||
}, | ||
install_requires=['flake8'], | ||
name="flake8-author", | ||
install_requires=["flake8>=3.0.0"], | ||
tests_require=['flake8>=3.0.0'], | ||
test_suite='tests', | ||
zip_safe=True, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Framework :: Flake8', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Software Development :: Quality Assurance' | ||
], | ||
test_suite="tests", | ||
) |