Skip to content

Commit d1fdfe1

Browse files
committed
meta: Migrate setup.py to pyproject.toml
1 parent 23d92f6 commit d1fdfe1

2 files changed

Lines changed: 72 additions & 74 deletions

File tree

pyproject.toml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
[project]
2+
name = "xbox-webapi"
3+
version = "2.0.11"
4+
description = "A library to authenticate with Windows Live/Xbox Live and use their API"
5+
authors = [
6+
{name = "OpenXbox"},
7+
]
8+
dependencies = [
9+
"appdirs",
10+
"ecdsa",
11+
"httpx",
12+
"ms_cv",
13+
"pydantic",
14+
]
15+
requires-python = ">=3.8"
16+
readme = "README.md"
17+
license = {text = "GPL"}
18+
keywords = ["xbox one live api"]
19+
classifiers = [
20+
"Development Status :: 4 - Beta",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: MIT License",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Topic :: Software Development :: Libraries :: Python Modules",
31+
]
32+
33+
[project.urls]
34+
Homepage = "https://github.com/OpenXbox/xbox-webapi-python"
35+
36+
[project.optional-dependencies]
37+
dev = [
38+
"bump2version",
39+
"coverage",
40+
"flake8",
41+
"pip",
42+
"pytest",
43+
"pytest-asyncio",
44+
"pytest-cov",
45+
"pytest-runner",
46+
"respx",
47+
"tox",
48+
"twine",
49+
"watchdog",
50+
"wheel",
51+
]
52+
docs = [
53+
"Sphinx",
54+
"sphinx-mdinclude",
55+
"sphinx_rtd_theme",
56+
]
57+
58+
[project.scripts]
59+
xbox-authenticate = "xbox.webapi.scripts.authenticate:main"
60+
xbox-change-gt = "xbox.webapi.scripts.change_gamertag:main"
61+
xbox-friends = "xbox.webapi.scripts.friends:main"
62+
xbox-searchlive = "xbox.webapi.scripts.search:main"
63+
xbox-xal = "xbox.webapi.scripts.xal:main"
64+
165
[tool.black]
266
target-version = ["py37", "py38", "py39", "py310", "py311"]
367
exclude = 'generated'
68+
69+
[tool.setuptools.packages.find]
70+
where = ["."]
71+
include = ["xbox.*"]
72+
73+
[build-system]
74+
requires = ["setuptools>=61", "wheel"]
75+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)