diff --git a/pyproject.toml b/pyproject.toml index 3dedbdb..d0b2763 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,75 @@ +[project] +name = "xbox-webapi" +version = "2.0.11" +description = "A library to authenticate with Windows Live/Xbox Live and use their API" +authors = [ + {name = "OpenXbox"}, +] +dependencies = [ + "appdirs", + "ecdsa", + "httpx", + "ms_cv", + "pydantic", +] +requires-python = ">=3.8" +readme = "README.md" +license = {text = "GPL"} +keywords = ["xbox one live api"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Topic :: Software Development :: Libraries :: Python Modules", +] + +[project.urls] +Homepage = "https://github.com/OpenXbox/xbox-webapi-python" + +[project.optional-dependencies] +dev = [ + "bump2version", + "coverage", + "flake8", + "pip", + "pytest", + "pytest-asyncio", + "pytest-cov", + "pytest-runner", + "respx", + "tox", + "twine", + "watchdog", + "wheel", +] +docs = [ + "Sphinx", + "sphinx-mdinclude", + "sphinx_rtd_theme", +] + +[project.scripts] +xbox-authenticate = "xbox.webapi.scripts.authenticate:main" +xbox-change-gt = "xbox.webapi.scripts.change_gamertag:main" +xbox-friends = "xbox.webapi.scripts.friends:main" +xbox-searchlive = "xbox.webapi.scripts.search:main" +xbox-xal = "xbox.webapi.scripts.xal:main" + [tool.black] target-version = ["py37", "py38", "py39", "py310", "py311"] exclude = 'generated' + +[tool.setuptools.packages.find] +where = ["."] +include = ["xbox.*"] + +[build-system] +requires = ["setuptools>=61", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py deleted file mode 100644 index 582b6e9..0000000 --- a/setup.py +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env python - -from setuptools import find_packages, setup - -PACKAGES = [f"xbox.{p}" for p in find_packages(where="xbox")] - -setup( - name="xbox-webapi", - version="2.0.11", - author="OpenXbox", - description="A library to authenticate with Windows Live/Xbox Live and use their API", - long_description=open("README.md").read() + "\n\n" + open("CHANGELOG.md").read(), - long_description_content_type="text/markdown", - license="GPL", - keywords="xbox one live api", - url="https://github.com/OpenXbox/xbox-webapi-python", - packages=PACKAGES, - namespace_packages=["xbox"], - zip_safe=False, - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Topic :: Software Development :: Libraries :: Python Modules", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ], - test_suite="tests", - install_requires=[ - "httpx", - "appdirs", - "ms_cv", - "pydantic", - "ecdsa", - ], - setup_requires=["pytest-runner"], - tests_require=["pytest", "pytest-cov", "pytest-asyncio", "respx"], - extras_require={ - "dev": [ - "pip", - "bump2version", - "wheel", - "watchdog", - "flake8", - "tox", - "coverage", - # PyPi - "twine", - # Tests - "pytest", - "pytest-cov", - "pytest-asyncio", - "pytest-runner", - ], - "docs": [ - "Sphinx", - "sphinx_rtd_theme", - "sphinx-mdinclude", - ], - }, - entry_points={ - "console_scripts": [ - "xbox-authenticate=xbox.webapi.scripts.authenticate:main", - "xbox-xal=xbox.webapi.scripts.xal:main", - "xbox-searchlive=xbox.webapi.scripts.search:main", - "xbox-change-gt=xbox.webapi.scripts.change_gamertag:main", - "xbox-friends=xbox.webapi.scripts.friends:main", - ] - }, -)