-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (57 loc) · 1.67 KB
/
setup.py
File metadata and controls
66 lines (57 loc) · 1.67 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
65
66
import setuptools
import re
with open("requirements.txt") as f:
requirements = f.read().splitlines()
readme = ''
with open('README.rst') as f:
readme = f.read()
version = ''
with open('osu/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
readme = ''
with open('README.rst') as f:
readme = f.read()
project_urls = {
"Bug Tracker": "https://github.com/Sheepposu/osu.py/issues",
"osu.py documentation": "https://osupy.readthedocs.io/",
"osu!api v2 documentation": "https://osu.ppy.sh/docs/index.html",
"Code examples": "https://github.com/Sheepposu/osu.py/tree/main/examples"
}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Intended Audience :: Developers"
]
extra_require = {
"async": ["aiohttp>=3.9.2,<4"],
"replay": ["osrparse>=7.0.1,<8"],
"notifications": ["websockets>=13.1,<14"],
"tests": [
"pytest>=8.3.3,<9",
"pytest-asyncio>=0.24.0,<1",
"pytest-dependency>=0.6.0,<1"
]
}
packages = [
'osu',
'osu.asyncio',
'osu.objects',
]
setuptools.setup(
name="osu.py",
version=version,
packages=packages,
author="Sheppsu",
description="API Wrapper for osu!api v2 written in Python.",
long_description=readme,
long_description_content_type="text/x-rst",
install_requires=requirements,
extras_require=extra_require,
project_urls=project_urls,
classifiers=classifiers,
python_requires=">=3.8.0",
license="MIT",
url="https://github.com/Sheppsu/osu.py",
)