-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (58 loc) · 2.03 KB
/
setup.py
File metadata and controls
64 lines (58 loc) · 2.03 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
55
56
57
58
59
60
61
62
63
64
from setuptools import setup, find_packages
import pathlib
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text(encoding="utf-8")
def get_version():
version_file = HERE / "pyward" / "__init__.py"
for line in version_file.read_text().splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Version not found")
setup(
name="pyward-cli",
version=get_version(),
description="A CLI linter for Python that flags optimization and security issues",
long_description=README,
long_description_content_type="text/markdown",
author="Karan Vasudevamurthy",
author_email="karanlvm123@gmail.com",
url="https://github.com/karanlvm/pyward-cli",
project_urls={
"Source": "https://github.com/karanlvm/pyward-cli",
"Documentation": "https://github.com/karanlvm/pyward-cli#readme",
"Issue Tracker": "https://github.com/karanlvm/pyward-cli/issues",
},
license="MIT",
keywords="python lint cli security optimization",
packages=find_packages(), python_requires=">=3.7",
include_package_data=True,
install_requires=[
"colorama>=0.4.6",
"pandas>=2.3.0,<3.0.0",
],
tests_require=[
"pytest>=8.0.0",
],
entry_points={
"console_scripts": [
"pyward=pyward.cli:main",
],
},
classifiers=[
# Who your project is for
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Quality Assurance",
# Supported Python versions
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
# License
"License :: OSI Approved :: MIT License",
# Operating systems
"Operating System :: OS Independent",
],
)