diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03a2237..1c679c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: - name: Install python dependencies run: | python -m pip install --upgrade pip - pip install flake8 pylint pytest setuptools sphinx sphinx-rtd-theme wget interruptingcow + pip install build flake8 pylint pytest setuptools sphinx sphinx-rtd-theme wget interruptingcow if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Pylint @@ -44,4 +44,5 @@ jobs: - name: Install run: | - python setup.py install + python -m build + pip install . diff --git a/CHANGELOG.md b/CHANGELOG.md index 5445078..0d6b1ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - switch from python 3.8 to 3.11 - switch from python 3.11 to 3.12 - fix codecov token +- migrate from setup.py to pyproject.toml ### Added - pylint and flake8 configuration files diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..33e37d0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +# +# file pyproject.toml +# +# SPDX-FileCopyrightText: (c) 2024 Michal Kielan +# +# SPDX-License-Identifier: GPL-3.0-only +# + +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "simpleadb" +version = "0.4.0" +description = "Python wrapper for adb protocol." +readme = "README.rst" +authors = [{ name = "Michal Kielan", email = "michalkielan@protonmail.com" }] +license = { text = "GPL-3.0-only" } +requires-python = ">3.0.0" + +[project.urls] +"Homepage" = "https://github.com/michalkielan/simple-adb" + +[tool.pytest.ini_options] +testpaths = ["tests"] + +[tool.setuptools.packages.find] +exclude = ["tests", "docs"]