-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
59 lines (51 loc) · 1.73 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import io
import os
from setuptools import setup
__dir__ = os.path.dirname(__file__)
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
readme = read('README.rst')
history = read('CHANGES.rst').replace('.. :changelog:', '')
setup(
name='flake8-commas',
author="Trevor Creech",
author_email="trevor@trevorcreech.com",
maintainer="Peter Law",
maintainer_email="PeterJCLaw@gmail.com",
version='4.0.0',
install_requires=['flake8>=5'],
python_requires='>=3.8',
url='https://github.com/PyCQA/flake8-commas/',
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
description='Flake8 lint for trailing commas.',
packages=['flake8_commas'],
test_suite='test',
include_package_data=True,
entry_points={
'flake8.extension': [
'C81 = flake8_commas:CommaChecker',
],
},
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
'Framework :: Flake8',
],
)