Skip to content

Commit

Permalink
Merge pull request #88 from pupil-labs/ga-build
Browse files Browse the repository at this point in the history
1.0 Release Candidate 1
  • Loading branch information
papr authored Jan 19, 2023
2 parents 430d2e6 + 045a3b9 commit 9e8ea60
Show file tree
Hide file tree
Showing 47 changed files with 1,817 additions and 487 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
omit =
# leading `*/` for pytest-dev/pytest-cov#456
*/.tox/*
*/pep517-build-env-*

[report]
show_missing = True
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
insert_final_newline = true
end_of_line = lf

[*.py]
indent_style = space
max_line_length = 88

[*.{yml,yaml}]
indent_style = space
indent_size = 2

[*.rst]
indent_style = space
16 changes: 16 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[flake8]
max-line-length = 88

max-complexity = 18

extend-ignore =
# Black creates whitespace before colon
E203
W503
F541

extend-select = B,C,E,F,W,T4,B9
exclude =
.venv
.pyenv
__pycache__
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: tests

on:
pull_request:
push:
tags:
- "**"
workflow_dispatch:

jobs:
build_wheels:
name: "Build ${{ matrix.CIBW_BUILD }} wheels on ${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
CIBW_BUILD: ["*"]
exclude:
- os: ubuntu-latest
CIBW_BUILD: "*"
include:
- os: ubuntu-latest
CIBW_BUILD: "*manylinux*"
# Disable musllinux
# - os: ubuntu-latest
# CIBW_BUILD: "*musllinux*"
continue-on-error: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build ${{ matrix.CIBW_BUILD }} wheels on ${{ matrix.os }}
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.CIBW_BUILD }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: distribution
path: ./wheelhouse/*.whl

release:
needs: [build_wheels]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: distribution
path: dist/
- name: Setup Python
uses: actions/setup-python@v4
- name: Install tox
run: |
python -m pip install tox
- name: Release
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 9e8ea60

Please sign in to comment.