-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
40 lines (33 loc) · 1.22 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
#!/usr/bin/env python3
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from pathlib import Path
from setuptools import setup
def get_long_desc() -> str:
repo_base = Path(__file__).parent
info_file = repo_base / "README.md"
with info_file.open("r", encoding="utf8") as ifp:
long_desc = ifp.read()
return long_desc
setup(
name="speedtest_wrapper",
version="24.7.29",
description="Wrap the speedtest cli and exports stats for prometheus",
long_description=get_long_desc(),
long_description_content_type="text/markdown",
py_modules=["speedtest_wrapper"],
url="http://github.com/cooperlees/speedtest",
author="Cooper Lees",
author_email="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.12",
entry_points={"console_scripts": ["speedtest-wrapper = speedtest_wrapper:main"]},
install_requires=["prometheus_client"],
)