Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add packaging with poetry #40

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions setup.cfg → .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[pycodestyle]
max-line-length = 160

[flake8]
max-line-length = 160
# E203: flake8 and black disagree on array slices see https://github.com/psf/black/issues/1859
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Package Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Package building
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', 'pypy3.9']

steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install poetry
run: pip install poetry
- name: Run build
run: poetry build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: dist
if-no-files-found: error
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/python/black.git
rev: 22.3.0
rev: 22.10.0
hooks:
- id: black
name: black (python3)
Expand All @@ -14,3 +14,7 @@ repos:
name: isort (python3)
language_version: python3
args: ["--check", "--profile=black"]
- repo: https://github.com/pycqa/flake8
rev: '5.0.4'
hooks:
- id: flake8
Loading