Skip to content

Commit 93bc20e

Browse files
issue #1: adding poetry, fixing pipeline
1 parent aa8915f commit 93bc20e

5 files changed

Lines changed: 306 additions & 6 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.5, 3.6, 3.7, 3.8]
15+
python-version: [3.7, 3.8]
1616

1717
steps:
1818
- uses: actions/checkout@v2
@@ -23,15 +23,15 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
26+
pip install poetry
27+
poetry install
2728
- name: Lint with flake8
2829
run: |
2930
pip install flake8
3031
# stop the build if there are Python syntax errors or undefined names
3132
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3233
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3334
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34-
- name: Test with pytest
35+
- name: Unit test with pytest
3536
run: |
36-
pip install pytest
37-
pytest
37+
poetry run pytest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,6 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
# Idea
132+
.idea/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Pedrow
3+
Copyright (c) 2020 Pedro Campos
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

poetry.lock

Lines changed: 275 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[tool.poetry]
2+
name = "polybool"
3+
version = "0.1.0"
4+
description = "Fast boolean operations for polygons, based on the Martinez \"plane sweep\" algorithm"
5+
authors = ["Pedro Campos <pedrofreitascampos@gmail.com>"]
6+
license = "MIT"
7+
repository = "https://github.com/pedrofreitascampos/polybool"
8+
homepage = "https://github.com/pedrofreitascampos/polybool"
9+
keywords = ['polygon-clipping', 'polygon-intersection', 'polygon-clipping-algorithm', 'polygon-union',
10+
'geometric-computing', 'geometry', 'bool-operations', 'polybool']
11+
12+
[tool.poetry.dependencies]
13+
python = "^3.7"
14+
15+
[tool.poetry.dev-dependencies]
16+
pytest = "^5.4.1"
17+
pytest-cov = "^2.8.1"
18+
19+
[build-system]
20+
requires = ["poetry>=0.12"]
21+
build-backend = "poetry.masonry.api"
22+

0 commit comments

Comments
 (0)