-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (46 loc) · 1.74 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
from typing import Optional
from setuptools import find_packages, setup
package_name = 'flake8_pytest_fixtures_style'
def get_version() -> Optional[str]:
with open('flake8_pytest_fixtures_style/__init__.py', 'r') as f:
lines = f.readlines()
for line in lines:
if line.startswith('__version__'):
return line.split('=')[-1].strip().strip("'")
return None
def get_long_description() -> str:
with open('README.md') as f:
return f.read()
setup(
name=package_name,
description='A flake8 extension that checks pytest fixtures',
classifiers=[
'Environment :: Console',
'Environment :: Plugins',
'Framework :: Flake8',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Testing :: Unit',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
long_description=get_long_description(),
long_description_content_type='text/markdown',
packages=find_packages(),
python_requires='>=3.8',
include_package_data=True,
keywords='flake8',
version=get_version(),
author='Alexey Sidorov',
author_email='[email protected]',
install_requires=['flake8>=3,<5', 'flake8-plugin-utils==1.3.2', 'flake8-pytest-style==1.6.0'],
entry_points={'flake8.extension': ['PF = flake8_pytest_fixtures_style.plugin:Plugin']},
url='https://github.com/sidorov-as/flake8-pytest-fixtures-style',
license='MIT',
py_modules=[package_name],
zip_safe=False,
)