diff --git a/.github/workflows/ci-release-docs.yml b/.github/workflows/ci-release-docs.yml index cc70d703..4b7dd427 100644 --- a/.github/workflows/ci-release-docs.yml +++ b/.github/workflows/ci-release-docs.yml @@ -20,7 +20,7 @@ jobs: pip install -r requirements.txt pip install -r docs/requirements.txt - name: Sphinx Api Docs - run: sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.1" -e -a -o _staging . tests setup.py + run: sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.1" -e -a -o _staging . tests pyproject.toml - name: Spinx build run: sphinx-build -b html _staging _build - name: Upload docs diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..f5f8b79f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +# Copyright (c) 2025 Apple Inc. Licensed under MIT License. + +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "app-store-server-library" +version = "1.9.0" +description = "The App Store Server Library" +readme = {file = "README.md", content-type = "text/markdown"} +license = {text = "MIT"} +requires-python = ">=3.7, <4" +classifiers = [ + "License :: OSI Approved :: MIT License" +] +dependencies = [ + "attrs>=21.3.0", + "PyJWT>=2.6.0,<3", + "requests>=2.28.0,<3", + "cryptography>=40.0.0", + "pyOpenSSL>=23.1.1", + "asn1==2.8.0", + "cattrs>=23.1.2", +] + +[project.optional-dependencies] +async = ["httpx"] + +[tool.setuptools] +packages = {find = {exclude = ["tests"]}} + +[tool.setuptools.package-data] +appstoreserverlibrary = ["py.typed"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 31ba801c..00000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2023 Apple Inc. Licensed under MIT License. - -import pathlib - -from setuptools import find_packages, setup - -here = pathlib.Path(__file__).parent.resolve() -long_description = (here / "README.md").read_text(encoding="utf-8") - -setup( - name="app-store-server-library", - version="1.9.0", - description="The App Store Server Library", - long_description=long_description, - long_description_content_type="text/markdown", - packages=find_packages(exclude=["tests"]), - python_requires=">=3.7, <4", - install_requires=["attrs >= 21.3.0", 'PyJWT >= 2.6.0, < 3', 'requests >= 2.28.0, < 3', 'cryptography >= 40.0.0', 'pyOpenSSL >= 23.1.1', 'asn1==2.8.0', 'cattrs >= 23.1.2'], - extras_require={ - "async": ["httpx"], - }, - package_data={"appstoreserverlibrary": ["py.typed"]}, - license="MIT", - classifiers=["License :: OSI Approved :: MIT License"], -)