Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkielan committed Nov 17, 2024
1 parent a2d9e13 commit 0422948
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,4 +44,5 @@ jobs:
- name: Install
run: |
python setup.py install
python -m build
pip install .
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0422948

Please sign in to comment.