-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.7 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
"""Koles package installation setup."""
import os
from pkg_resources import parse_requirements
from setuptools import setup
DIR_PATH = os.path.abspath(os.path.dirname(__file__))
install_requires = ['flake8>=3.3.0']
with open(os.path.join(DIR_PATH, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
about = {}
with open(
os.path.join(DIR_PATH, 'flake8_koles', '__about__.py'), 'r', encoding='utf-8'
) as file:
exec(file.read(), about)
with open(os.path.join(DIR_PATH, 'requirements-dev.txt'), encoding='utf-8') as file:
requirements_dev = [str(req) for req in parse_requirements(file.read())]
setup(
name=about['__title__'],
description=about['__description__'],
long_description=long_description,
long_description_content_type='text/markdown',
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
license=about['__license__'],
keywords=about['__keywords__'],
download_url=about['__download_url__'],
packages=['flake8_koles'],
package_data={'flake8_koles': ['data/swear_list/*.dat']},
py_modules=['flake8_koles'],
python_requires=">=3.6",
install_requires=install_requires,
extras_require={'dev': requirements_dev},
entry_points={'flake8.extension': ['KOL = flake8_koles.checker:KolesChecker']},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)