Skip to content

Commit

Permalink
Merge pull request #232 from lazka/poetry
Browse files Browse the repository at this point in the history
Add poetry support
  • Loading branch information
lazka authored Apr 28, 2021
2 parents d9418ce + 1c34b9e commit 307b015
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

poetry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y libcairo2-dev
python -m pip install --user poetry
poetry install
- name: Run tests
run: |
poetry run python setup.py test
ubuntu:
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ releases
stamp-h
stamp-h1
stamp-h.in
poetry.lock
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
[tool.poetry]
name = "pycairo"
version = "1.20.1"
description = "Python interface for cairo"
authors = ["Christoph Reiter"]

[tool.poetry.dependencies]
python = "^3.6"

[tool.poetry.dev-dependencies]
pytest = "^6.0.0"
hypothesis = "^6.0.0"
mypy = {version = "^0.812", markers = "platform_python_implementation != 'PyPy'"}
flake8 = "^3.9.1"
Sphinx = "^3.5.4"
sphinx-rtd-theme = "^0.5.2"
coverage = "^5.5"

[build-system]
requires = ["setuptools", "wheel"]

0 comments on commit 307b015

Please sign in to comment.