-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
50 lines (44 loc) · 1.54 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
import re
from os import path
from setuptools import setup
def get_abs_path(pathname):
return path.join(path.dirname(__file__), pathname)
with open(get_abs_path("src/flake8_requirements/checker.py")) as f:
version = re.match(r'.*__version__ = "(.*?)"', f.read(), re.S).group(1)
with open(get_abs_path("README.rst")) as f:
long_description = f.read()
setup(
name="flake8-requirements",
version=version,
author="Arkadiusz Bokowy",
author_email="[email protected]",
url="https://github.com/Arkq/flake8-requirements",
description="Package requirements checker, plugin for flake8",
long_description=long_description,
license="MIT",
package_dir={'': "src"},
packages=["flake8_requirements"],
install_requires=[
"flake8 >= 4.0.0",
"setuptools >= 10.0.0",
"tomli>=1.2.1; python_version < '3.11'",
],
extras_require={"pyproject": ["Flake8-pyproject"]},
setup_requires=["pytest-runner"],
tests_require=["mock", "pytest"],
entry_points={
'flake8.extension': [
'I90 = flake8_requirements:Flake8Checker',
],
},
classifiers=[
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
],
)