-
Notifications
You must be signed in to change notification settings - Fork 156
/
setup.py
59 lines (51 loc) · 1.99 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
55
56
57
58
59
#! /usr/bin/env python
import pathlib
import re
import setuptools
def find_version(*parts):
here = pathlib.Path(__file__).parent
version_file = here.joinpath(*parts).read_text()
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]$", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open("README.md") as f1, open("CHANGELOG.md") as f2:
long_description = f1.read() + "\n\n" + f2.read()
with open("requirements.txt") as f:
install_requires = f.read().splitlines()
setuptools.setup(
name="vulture",
version=find_version("vulture", "version.py"),
description="Find dead code",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="dead-code-removal",
author="Jendrik Seipp",
author_email="[email protected]",
url="https://github.com/jendrikseipp/vulture",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Quality Assurance",
],
install_requires=install_requires,
entry_points={"console_scripts": ["vulture = vulture.core:main"]},
python_requires=">=3.8",
packages=setuptools.find_packages(exclude=["tests"]),
package_data={"vulture": ["whitelists/*.py"]},
)