Skip to content

Commit

Permalink
chore: Normalize pyproject.toml and ci.yml with other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 10, 2024
1 parent 7d24a5d commit 70c4a6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ jobs:
TEST_RABBIT_URL: amqp://127.0.0.1:${{ job.services.rabbitmq.ports[5672] }}
shell: bash
run: |
coverage run --append --source=yapw -m pytest
coverage run --source=yapw --append -m pytest
pip install orjson
coverage run --append --source=yapw -m pytest
coverage run --source=yapw --append -m pytest
pip uninstall -y orjson
- if: matrix.python-version != '3.10'
name: Test
env:
TEST_RABBIT_URL: amqp://127.0.0.1:${{ job.services.rabbitmq.ports[5672] }}
shell: bash
run: |
coverage run --append --source=yapw -m pytest -W error -W ignore::ResourceWarning
coverage run --source=yapw --append -m pytest -W error -W ignore::ResourceWarning
pip install orjson
coverage run --append --source=yapw -m pytest -W error -W ignore::ResourceWarning
coverage run --source=yapw --append -m pytest -W error -W ignore::ResourceWarning
pip uninstall -y orjson
- uses: coverallsapp/github-action@v2
services:
Expand Down
18 changes: 4 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ build-backend = "setuptools.build_meta"
name = "yapw"
version = "0.1.4"
authors = [{name = "Open Contracting Partnership", email = "[email protected]"}]
license = {text = "BSD"}
description = "A Pika wrapper with error handling, signal handling and good defaults."
readme = "README.rst"
license = {text = "BSD"}
urls = {Homepage = "https://github.com/open-contracting/yapw"}
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
Expand All @@ -16,35 +18,23 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
urls = {Homepage = "https://github.com/open-contracting/yapw"}
requires-python = ">=3.10"
dependencies = [
"pika>=1.2.0",
"typing-extensions;python_version<'3.8'",
]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.optional-dependencies]
perf = ["orjson"]
test = [
"coveralls",
"coverage",
"pytest",
"pytest-cov",
]
types = [
"mypy",
"types-orjson",
"types-pika",
]
docs = [
"furo",
"sphinx",
"sphinx-autobuild",
"sphinx-design",
]

[tool.setuptools.packages.find]
exclude = [
Expand Down

0 comments on commit 70c4a6a

Please sign in to comment.