From 8a39496a115415f4b48faaf3390aa759651732e8 Mon Sep 17 00:00:00 2001 From: Pawel Kierski Date: Thu, 18 Sep 2025 16:10:57 +0200 Subject: [PATCH] Add missing pyproject.toml file --- pyproject.toml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 18 ++----------- 2 files changed, 71 insertions(+), 16 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b70d4a2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,69 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "galaxy.plugin.api" +version = "0.71" +description = "GOG Galaxy Integrations Python API" +authors = [ + {name = "Galaxy team", email = "galaxy@gog.com"} +] +readme = "README.md" +license-files = ["LICENSE"] +requires-python = "~=3.13.0" +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.13", + "Topic :: Software Development :: Libraries :: Python Modules", +] +dependencies = [ + "aiohttp>=3.12.15", + "certifi>=2025.8.3", + "psutil>=5.6.6; sys_platform == 'darwin'" +] + +[project.optional-dependencies] +dev = [ + "pytest==8.4.1", + "pytest-asyncio==1.1.0", + "pytest-mock==3.14.1", + "pytest-mypy==1.0.1", + "pytest-flakes==4.0.5", + "types-certifi==2021.10.8.3", + "setuptools==80.9.0", +] + +[tool.setuptools] +package-dir = {"" = "src"} + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_classes = ["Test*"] +python_functions = ["test_*"] +addopts = [ + "--strict-markers", + "--strict-config", + "--verbose", +] + +[tool.mypy] +python_version = "3.13" +warn_return_any = true +warn_unused_configs = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +check_untyped_defs = true +disallow_untyped_decorators = true +no_implicit_optional = true +warn_redundant_casts = true +warn_unused_ignores = true +warn_no_return = true +warn_unreachable = true +strict_equality = true diff --git a/setup.py b/setup.py index 9e1e775..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,3 @@ -from setuptools import setup, find_packages +from setuptools import setup -setup( - name="galaxy.plugin.api", - version="0.70", - description="GOG Galaxy Integrations Python API", - author='Galaxy team', - author_email='galaxy@gog.com', - packages=find_packages("src"), - package_dir={'': 'src'}, - python_requires="~=3.13.0", # This package working with Python 3.13.x embedded in GOG Galaxy 2.0 - install_requires=[ - "aiohttp>=3.12.15", - "certifi>=2025.8.3", - "psutil>=5.6.6; sys_platform == 'darwin'" - ] -) +setup()