-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (52 loc) · 1.78 KB
/
setup.py
File metadata and controls
58 lines (52 loc) · 1.78 KB
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
import os
from setuptools import setup, find_packages
PROJECT_ROOT = os.path.dirname(__file__)
with open(os.path.join(PROJECT_ROOT, 'flake8_sql', 'linter.py')) as file_:
version_line = [line for line in file_ if line.startswith('__version__')][0]
__version__ = version_line.split('=')[1].strip().strip("'").strip('"')
with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_:
long_description = file_.read()
setup(
name='flake8-SQL',
version=__version__,
description='Flake8 plugin that checks SQL code against opinionated style rules',
long_description=long_description,
url='https://github.com/pgjones/flake8-sql',
author='P G Jones',
author_email='philip.graham.jones@googlemail.com',
keywords=[
'flake8',
'plugin',
'sql',
],
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Framework :: Flake8',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
],
packages=find_packages(exclude=["tests", "tests.*"]),
py_modules=['flake8_sql'],
install_requires=[
'flake8',
'setuptools',
'sqlparse',
],
entry_points={
'flake8.extension': [
'Q4 = flake8_sql:Linter',
],
},
zip_safe=False,
)