Skip to content

Commit 69c241b

Browse files
authored
migrate pyproject.toml (#344)
* migrate pyproject.toml * migrate pyproject.toml
1 parent 3586601 commit 69c241b

3 files changed

Lines changed: 82 additions & 76 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install poetry
27-
poetry install --with test
27+
poetry install --extras test
2828
- name: Lint with flake8
2929
run: |
3030
pip install flake8

poetry.lock

Lines changed: 45 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,53 @@
1-
[tool.poetry]
1+
[project]
22
name = "barcode-server"
33
version = "2.5.0"
44
description = "A simple daemon to expose USB Barcode Scanner data to other services using Websockets, Webhooks or MQTT."
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
license = { text = "AGPL-3.0-or-later" }
8+
authors = [ { name = "Markus Ressel", email = "mail@markusressel.de" } ]
59

6-
license = "AGPL-3.0-or-later"
7-
8-
authors = [
9-
"Markus Ressel <mail@markusressel.de>",
10-
]
11-
12-
readme = 'README.md'
13-
14-
repository = "https://github.com/markusressel/barcode-server"
15-
homepage = "https://github.com/markusressel/barcode-server"
16-
17-
keywords = ['barcode', 'asyncio', 'qrcode', 'http', 'mqtt', 'server', 'websocket', 'websocket']
18-
10+
keywords = ["barcode", "asyncio", "qrcode", "http", "mqtt", "server", "websocket"]
1911
classifiers = [
2012
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
2113
"Programming Language :: Python :: 3 :: Only",
22-
'Programming Language :: Python :: 3',
23-
'Programming Language :: Python :: 3.7',
24-
'Programming Language :: Python :: 3.8',
25-
'Programming Language :: Python :: 3.9',
26-
"Development Status :: 5 - Production/Stable"
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.7",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Development Status :: 5 - Production/Stable",
2719
]
2820

29-
[build-system]
30-
requires = ["poetry-core>=1.0.0"]
31-
build-backend = "poetry.core.masonry.api"
21+
urls = { "Repository" = "https://github.com/markusressel/barcode-server", "Homepage" = "https://github.com/markusressel/barcode-server" }
22+
23+
# PEP 621-style dependency list (strings using PEP 508 specs)
24+
dependencies = [
25+
"container-app-conf >=5.0.0",
26+
"evdev",
27+
"orjson",
28+
"aiohttp",
29+
"aiomqtt",
30+
"prometheus-client",
31+
"prometheus_async",
32+
"click",
33+
"ruamel-yaml-clib ==0.2.15",
34+
]
3235

33-
[tool.poetry.dependencies]
34-
python = "^3.13" # Compatible python versions must be declared here
36+
[project.optional-dependencies]
37+
test = [
38+
"pytest",
39+
"pytest-aiohttp",
40+
"pytest-mock"
41+
]
3542

36-
container-app-conf = ">=5.0.0"
37-
evdev = "*"
38-
orjson = "*"
39-
aiohttp = "*"
40-
aiomqtt = "*"
41-
prometheus-client = "*"
42-
prometheus_async = "*"
43-
click = "*"
44-
ruamel-yaml-clib = "0.2.15"
43+
[project.scripts]
44+
barcode-server = "barcode_server.cli:cli"
4545

46-
[tool.poetry.group.test.dependencies]
47-
pytest = "*"
48-
pytest-aiohttp = "*"
49-
pytest-mock = "*"
46+
[build-system]
47+
requires = ["poetry-core>=1.0.0"]
48+
build-backend = "poetry.core.masonry.api"
5049

5150
[tool.pytest.ini_options]
5251
testpaths = [
5352
"tests",
5453
]
55-
56-
[tool.poetry.scripts]
57-
barcode-server = 'barcode_server.cli:cli'

0 commit comments

Comments
 (0)