Skip to content

Commit

Permalink
Merge pull request #6 from mpol1t/update-pyproject
Browse files Browse the repository at this point in the history
Update pyproject.toml. Update github actions. Separate prod/dev depen…
  • Loading branch information
mpol1t authored Mar 28, 2024
2 parents 8ca9ef9 + 8a61303 commit 9caceee
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-asyncio mock
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
- name: Test with pytest
run: pytest --cov kafkoroutine/ --cov-report xml
- name: Upload coverage reports to Codecov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.16
uses: JRubics/poetry-publish@v2
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kafkoroutine"
version = "0.1.2"
version = "0.1.3"
description = "Asynchronous wrappers for kafka-python, integrating Kafka with Python's asyncio."
authors = ["Michal Polit <[email protected]>"]
readme = "README.md"
Expand All @@ -14,11 +14,15 @@ python = "^3.11"
kafka-python = "^2.0.2"

[tool.poetry.dev-dependencies]
coverage = "^7.4.4"
iniconfig = "^2.0.0"
mock = "^5.1.0"
packaging = "^24.0"
pluggy = "^1.4.0"
pytest = "^8.1.1"
pytest-asyncio = "^0.23.6"
mock = "^5.1.0"
coverage = "^7.2.7"
pytest-cov = "^5.0.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
8 changes: 8 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage==7.4.4
iniconfig==2.0.0
mock==5.1.0
packaging==24.0
pluggy==1.4.0
pytest==8.1.1
pytest-asyncio==0.23.6
pytest-cov==5.0.0

0 comments on commit 9caceee

Please sign in to comment.