|
1 | 1 | # Copyright (C) 2016-2021 Łukasz Langa |
2 | 2 |
|
3 | | -import ast |
4 | | -import os |
5 | | -import re |
6 | | -import sys |
7 | | - |
8 | 3 | from setuptools import setup |
9 | 4 |
|
10 | | -assert sys.version_info >= (3, 6, 0), "bugbear requires Python 3.6+" |
11 | | - |
12 | | - |
13 | | -current_dir = os.path.abspath(os.path.dirname(__file__)) |
14 | | -with open(os.path.join(current_dir, "README.rst"), encoding="utf8") as ld_file: |
15 | | - long_description = ld_file.read() |
16 | | - |
17 | | - |
18 | | -_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)") |
19 | | - |
20 | | - |
21 | | -with open(os.path.join(current_dir, "bugbear.py"), "r") as f: |
22 | | - version = _version_re.search(f.read()).group("version") |
23 | | - version = str(ast.literal_eval(version)) |
24 | | - |
25 | | - |
26 | | -setup( |
27 | | - name="flake8-bugbear", |
28 | | - version=version, |
29 | | - description=( |
30 | | - "A plugin for flake8 finding likely bugs and design problems " |
31 | | - "in your program. Contains warnings that don't belong in " |
32 | | - "pyflakes and pycodestyle." |
33 | | - ), |
34 | | - long_description=long_description, |
35 | | - keywords="flake8 bugbear bugs pyflakes pylint linter qa", |
36 | | - author="Łukasz Langa", |
37 | | - author_email="lukasz@langa.pl", |
38 | | - url="https://github.com/PyCQA/flake8-bugbear", |
39 | | - license="MIT", |
40 | | - py_modules=["bugbear"], |
41 | | - zip_safe=False, |
42 | | - python_requires=">=3.6", |
43 | | - install_requires=["flake8 >= 3.0.0", "attrs>=19.2.0"], |
44 | | - test_suite="tests.test_bugbear", |
45 | | - classifiers=[ |
46 | | - "Development Status :: 5 - Production/Stable", |
47 | | - "Environment :: Console", |
48 | | - "Framework :: Flake8", |
49 | | - "Intended Audience :: Developers", |
50 | | - "License :: OSI Approved :: MIT License", |
51 | | - "Operating System :: OS Independent", |
52 | | - "Programming Language :: Python", |
53 | | - "Programming Language :: Python :: 3", |
54 | | - "Programming Language :: Python :: 3.6", |
55 | | - "Programming Language :: Python :: 3.7", |
56 | | - "Programming Language :: Python :: 3.8", |
57 | | - "Programming Language :: Python :: 3.9", |
58 | | - "Programming Language :: Python :: 3 :: Only", |
59 | | - "Topic :: Software Development :: Libraries :: Python Modules", |
60 | | - "Topic :: Software Development :: Quality Assurance", |
61 | | - ], |
62 | | - entry_points={"flake8.extension": ["B = bugbear:BugBearChecker"]}, |
63 | | - extras_require={ |
64 | | - "dev": ["coverage", "hypothesis", "hypothesmith>=0.2", "pre-commit"] |
65 | | - }, |
66 | | - project_urls={"Change Log": "https://github.com/PyCQA/flake8-bugbear#change-log"}, |
67 | | -) |
| 5 | +setup() |
0 commit comments