forked from vyahello/flake8-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (44 loc) · 1.69 KB
/
setup.py
File metadata and controls
52 lines (44 loc) · 1.69 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
from typing import Sequence
from setuptools import find_packages, setup
from flake8_debug.meta import Meta
def __load_readme() -> str:
"""Returns project description."""
with open("README.md") as readme: # type: IO[str]
return readme.read()
def __load_requirements() -> Sequence[str]:
"""Returns requirements sequence."""
with open("requirements.txt") as requirements: # type: IO[str]
return tuple(map(str.strip, requirements.readlines()))
if __name__ == '__main__':
setup(
name=Meta.name,
version=Meta.version,
author=Meta.author,
author_email=Meta.email,
description=Meta.about,
long_description=__load_readme(),
long_description_content_type="text/markdown",
url=f'https://github.com/vyahello/{Meta.name}',
packages=find_packages(
exclude=('*.tests', '*.tests.*', "tests.*", "tests")
),
entry_points={
'flake8.extension': [
'DB = flake8_debug.plugin:NoDebug',
],
},
install_requires=__load_requirements(),
classifiers=[
'Framework :: Flake8',
'Environment :: Console',
'Intended Audience :: Developers',
f'License :: OSI Approved :: {Meta.license}',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
],
)