forked from Zac-HD/shed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (40 loc) · 1.35 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
from pathlib import Path
import setuptools
with open("src/shed/__init__.py") as o:
for line in o:
if line.startswith("__version__ = "):
_, __version__, _ = line.split('"')
setuptools.setup(
name="shed",
version=__version__,
author="Zac Hatfield-Dodds",
author_email="[email protected]",
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
package_data={"": ["py.typed"]},
url="https://github.com/Zac-HD/shed",
project_urls={
"Source": "https://github.com/Zac-HD/shed/",
"Changelog": "https://github.com/Zac-HD/shed/blob/master/CHANGELOG.md",
"Funding": "https://github.com/sponsors/Zac-HD",
},
license="AGPL-3.0",
description="`shed` canonicalises Python code.",
install_requires=[
"autoflake >= 1.4",
"black >= 23.1.0",
"com2ann >= 0.3.0 ; python_version >= '3.8'",
"isort >= 5.10.1",
"libcst >= 0.4.7",
"pyupgrade >= 3.0.0",
],
python_requires=">=3.7",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3 :: Only",
],
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["shed=shed._cli:cli"]},
)