Skip to content

Commit de2227e

Browse files
committed
chore: change packaging to setuptools
Change packaging to setuptools in order to support pip install from github Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent bafb213 commit de2227e

2 files changed

Lines changed: 28 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
[project]
2-
name = "uhubctl"
3-
version = "0.1.2"
4-
authors = [
5-
{ name="Nicolai Buchwitz", email="nb@tipi-net.de" },
6-
]
7-
description = "A basic Python wrapper for uhubctl"
8-
readme = "README.md"
9-
license = { file="LICENSE" }
10-
requires-python = ">=3.5"
11-
classifiers = [
12-
"Programming Language :: Python :: 3",
13-
"License :: OSI Approved :: MIT License",
14-
"Operating System :: OS Independent",
15-
]
1+
[tool.black]
2+
line-length = 120
3+
include = '\.pyi?$'
164

17-
[project.urls]
18-
"Homepage" = "https://github.com/nbuchwitz/python3-uhubctl"
19-
"Bug Tracker" = "https://github.com/nbuchwitz/python3-uhubctl/issues"
5+
[build-system]
6+
requires = ["setuptools<64", "wheel"]

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from setuptools import setup
2+
3+
setup(
4+
name="uhubctl",
5+
version="0.1.2",
6+
author="Nicolai Buchwitz",
7+
author_email="nb@tipi-net.de",
8+
description="A basic Python wrapper for uhubctl",
9+
long_description=open("README.md").read(),
10+
long_description_content_type="text/markdown",
11+
license="MIT",
12+
url="https://github.com/nbuchwitz/python3-uhubctl",
13+
packages=["uhubctl"],
14+
python_requires=">=3.5",
15+
classifiers=[
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
],
20+
project_urls={
21+
"Bug Tracker": "https://github.com/nbuchwitz/python3-uhubctl/issues"
22+
},
23+
)

0 commit comments

Comments
 (0)