-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
74 lines (68 loc) · 2.41 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
73
74
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='[email protected]',
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.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
packages=find_packages(),
python_requires='>=3.8',
extras_require={
'dev': [
'coverage==7.6.1',
'coveralls==4.0.1',
'pylint==3.2.7',
'pytest==8.3.3',
'pytest-cov==5.0.0',
'twine==5.1.1',
]
},
install_requires=[
'docopt==0.6.2',
'PyYAML==6.0.2',
'mysqlclient==2.2.6',
'sql_metadata==2.15.0',
'termcolor==2.4.0',
'yamlordereddictloader==0.4.2'
],
entry_points={
'console_scripts': [
'add_linter=indexdigest.cli.add_linter:main', # creates a new linter from a template
'index_digest=indexdigest.cli.script:main',
],
}
)