-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (46 loc) · 1.78 KB
/
setup.py
File metadata and controls
54 lines (46 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
from pathlib import Path
from typing import Sequence
from setuptools import find_packages, setup
def __load_readme() -> str:
"""Returns project description."""
with Path("README.md").open(encoding='utf-8') as readme:
return readme.read()
def __load_requirements() -> Sequence[str]:
"""Returns requirements sequence."""
with Path("requirements.txt").open(encoding='utf-8') as requirements:
return tuple(map(str.strip, requirements.readlines()))
if __name__ == '__main__':
from flake8_debug.meta import Meta
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.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
],
)