Skip to content

Commit

Permalink
[build] fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lev committed Sep 1, 2024
1 parent fc8ea1d commit c991bfc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
pip install -r requirements.txt -r requirements-dev.txt
- name: Test with pytest
run: |
pytest
Expand Down
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ sphinx:
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- path: .
- requirements: docs/requirements.txt
- requirements: requirements.txt
14 changes: 2 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "pywa.__version__"}
readme = {file = "README.md", content-type = "text/markdown"}
dependencies = {file = "requirements.txt"}

[tool.setuptools.packages.find]
include = ["pywa*"]
Expand All @@ -13,12 +14,9 @@ exclude = ["tests*"]
[project]
name = "pywa"
description = "Python wrapper for the WhatsApp Cloud API"
dynamic = ["version", "readme"]
dynamic = ["version", "readme", "dependencies"]
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = [
"httpx>=0.27.0",
]
authors = [
{name = "David Lev", email = "[email protected]"},
]
Expand All @@ -45,14 +43,6 @@ classifiers = [
flask = ["flask[async]"]
fastapi = ["fastapi[standard]"]
cryptography = ["cryptography"]
dev = [
"httpx==0.27.2",
"pytest==8.3.2",
"pytest-asyncio==0.24.0",
"pytest-mock==3.14.0",
"ruff==0.6.3",
"pre-commit==3.8.0",
]

[project.urls]
"Documentation" = "https://pywa.readthedocs.io/"
Expand Down
6 changes: 6 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-r requirements.txt
pytest==8.3.2
pytest-asyncio==0.24.0
pytest-mock==3.14.0
ruff==0.6.3
pre-commit==3.8.0
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
httpx>=0.27.0

0 comments on commit c991bfc

Please sign in to comment.