Skip to content

Commit b89bcb1

Browse files
authored
Migrate to pyproject.toml (#58)
1 parent 64799d5 commit b89bcb1

File tree

9 files changed

+55
-61
lines changed

9 files changed

+55
-61
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ jobs:
2828
python -VV
2929
python -m site
3030
python -m pip install --upgrade pip setuptools wheel
31-
python -m pip install -r requirements.txt
32-
python -m pip install -r requirements-test.txt
31+
python -m pip install -e .
32+
python -m pip install -e .[tests]
3333
- name: "Run tests for ${{ matrix.python-version }}"
3434
run: |
35-
pip install pytest-cov
36-
pip install coverage
3735
pytest \
3836
-qq \
3937
--timeout=9 \

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prune tests

codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
comment: false
2-
ignore:
3-
- "**/__version__.py"

georss_client/__version__.py

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

pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "georss_client"
10+
version = "0.17"
11+
requires-python = ">= 3.9"
12+
authors = [
13+
{name = "Malte Franken", email = "coding@subspace.de"},
14+
]
15+
description = "A GeoRSS client library."
16+
readme = "README.md"
17+
license = {file = "LICENSE"}
18+
keywords = ["homeassistant", "georss"]
19+
classifiers = [
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"License :: OSI Approved :: Apache Software License",
25+
"Operating System :: OS Independent",
26+
"Development Status :: 5 - Production/Stable",
27+
]
28+
dependencies = [
29+
"haversine>=2.8.1",
30+
"xmltodict>=0.13.0",
31+
"requests>=2.31.0",
32+
"dateparser>=1.2.0",
33+
]
34+
35+
[project.optional-dependencies]
36+
tests = [
37+
"pytest",
38+
"pytest-timeout",
39+
"pytest-xdist",
40+
"pytest-cov",
41+
"coverage",
42+
"mock",
43+
]
44+
45+
[project.urls]
46+
Repository = "https://github.com/exxamalte/python-georss-client"
47+
Issues = "https://github.com/exxamalte/python-georss-client/issues"
48+
Changelog = "https://github.com/exxamalte/python-georss-client/blob/main/CHANGELOG.md"
49+
50+
[tool.setuptools.packages.find]
51+
include = ["georss_client*"]
52+
153
[tool.ruff.lint]
254
select = [
355
"A001", # Variable {name} is shadowing a Python builtin

requirements-test.txt

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

requirements.txt

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

setup.py

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

tests/test_init.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)