Skip to content

Commit 4235396

Browse files
committed
Convert setup.py to pyproject.toml
1 parent 60bfa3a commit 4235396

8 files changed

Lines changed: 40 additions & 77 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
name: CI
2-
1+
name: Tests
32
on:
43
pull_request:
54
branches:
65
- main
7-
86
jobs:
97
tests:
10-
118
runs-on: ${{ matrix.os }}
129
strategy:
1310
max-parallel: 4
1411
matrix:
1512
os: [ubuntu-latest, windows-latest]
16-
python-version: ["3.8", "3.9", "3.10", "3.11"]
17-
13+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1814
steps:
1915
- uses: actions/checkout@v4
2016
- name: Set up Python ${{ matrix.python-version }}
@@ -23,10 +19,10 @@ jobs:
2319
python-version: ${{ matrix.python-version }}
2420
- name: Install dependencies
2521
run: |
26-
pip install flake8
22+
python3 -m pip install flake8
2723
- name: Unit tests
2824
run: |
29-
python setup.py test
25+
python3 -m unittest -v
3026
- name: PEP8
3127
run: |
3228
flake8 --max-line-length 120

.github/workflows/publish.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,10 @@ jobs:
1515
python-version: '3.x'
1616
- name: Install pypa/build
1717
run: >-
18-
python -m
19-
pip install
20-
build
21-
--user
18+
python -m pip install build --user
2219
- name: Build a binary wheel and a source tarball
2320
run: >-
24-
python -m
25-
build
26-
--sdist
27-
--wheel
28-
--outdir dist/
29-
.
21+
python -m build --sdist --wheel --outdir dist/ .
3022
- name: Publish to PyPI
3123
uses: pypa/gh-action-pypi-publish@release/v1
3224
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.tox
1+
.venv
22
*.pyc
33
*.egg-info
44
*.eggs

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[project]
2+
name = "kanboard"
3+
version = "1.1.5"
4+
description = "Client library for Kanboard"
5+
readme = "README.rst"
6+
requires-python = ">=3.7"
7+
license = {file = "LICENSE"}
8+
keywords = ["kanboard", "api", "client"]
9+
authors = [
10+
{ name = "Frédéric Guillot", email = "fred@kanboard.net" }
11+
]
12+
classifiers = [
13+
"Intended Audience :: Developers",
14+
"Intended Audience :: Information Technology",
15+
"License :: OSI Approved :: MIT License",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3 :: Only",
24+
]
25+
26+
[project.urls]
27+
"Homepage" = "https://github.com/kanboard/python-api-client"
28+
"Bug Reports" = "https://github.com/kanboard/python-api-client/issues"
29+
"Source" = "https://github.com/kanboard/python-api-client"
30+
31+
[build-system]
32+
requires = ["setuptools>=61.0"]
33+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

tests/__init__.py

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)