Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to pyproject.toml #56

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
python -m pip install -r requirements-test.txt
python -m pip install -e .
python -m pip install -e .[tests]
- name: "Run tests for ${{ matrix.python-version }}"
run: |
pip install pytest-cov
pip install coverage
pytest \
-qq \
--timeout=9 \
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prune tests
3 changes: 0 additions & 3 deletions aio_georss_client/__version__.py

This file was deleted.

2 changes: 0 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
comment: false
ignore:
- "**/__version__.py"
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
[build-system]
requires = [
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"

[project]
name = "aio_georss_client"
version = "0.13"
requires-python = ">= 3.9"
authors = [
{name = "Malte Franken", email = "coding@subspace.de"},
]
description = "An async GeoRSS client library."
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["homeassistant", "georss"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"aiohttp>=3.7.4,<4",
"haversine>=2.8.1",
"xmltodict>=0.13.0",
"python-dateutil>=2.9.0",
]

[project.optional-dependencies]
tests = [
"pytest-asyncio",
"pytest-timeout",
"pytest-xdist",
"pytest-cov",
"coverage",
"mock",
"aioresponses",
]

[project.urls]
Repository = "https://github.com/exxamalte/python-aio-georss-client"
Issues = "https://github.com/exxamalte/python-aio-georss-client/issues"
Changelog = "https://github.com/exxamalte/python-aio-georss-client/blob/main/CHANGELOG.md"

[tool.setuptools.packages.find]
include = ["aio_georss_client*"]

[tool.ruff.lint]
select = [
"A001", # Variable {name} is shadowing a Python builtin
Expand Down
6 changes: 0 additions & 6 deletions requirements-test.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

8 changes: 0 additions & 8 deletions tests/test_init.py

This file was deleted.