-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
72 lines (66 loc) · 2.37 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
60
61
62
63
64
65
66
67
68
69
70
71
72
import re
from setuptools import setup, find_packages
# take the version
with open("indexdigest/__init__.py", "r") as fh:
# e.g. VERSION = '1.5.0'
last_line = fh.readlines()[-1]
VERSION = re.search(r'[\d.]+', last_line).group(0)
# @see https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py
with open("README.md", "r") as fh:
long_description = fh.read()
# @see https://github.com/pypa/sampleproject/blob/master/setup.py
setup(
name='indexdigest',
version=VERSION,
author='Maciej Brencz',
author_email='maciej.brencz@gmail.com',
license='MIT',
description='Analyses your database queries and schema and suggests indices and schema improvements',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/macbre/index-digest',
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Database',
# Pick your license as you wish
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
packages=find_packages(),
extras_require={
'dev': [
'coverage==5.5',
'pylint==2.7.2',
'pytest==6.2.2',
'twine==3.4.1',
]
},
install_requires=[
'docopt==0.6.2',
'PyYAML==5.4.1',
'mysqlclient==2.0.3',
'sql_metadata==1.11.0',
'termcolor==1.1.0',
'yamlordereddictloader==0.4.0'
],
entry_points={
'console_scripts': [
'add_linter=indexdigest.cli.add_linter:main', # creates a new linter from a template
'index_digest=indexdigest.cli.script:main',
],
}
)