Skip to content

Commit

Permalink
Build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavidberger committed Jun 17, 2022
1 parent b8bdeaa commit 6b2be10
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This is a basic workflow to help you get started with Actions

name: Build Wheels

on:
push:
create:
tags: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04 ]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'

- name: Get Dependencies
run: pip install twine build

- name: Build wheel
run: |
python -m build
git status
- uses: actions/upload-artifact@v2
name: Upload
with:
path: ${{runner.workspace}}/cnkalman/dist/*.whl

- name: Upload with twine
run: |
python -m pip install twine
python -m twine upload dist/*.whl --skip-existing
continue-on-error: true
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ build
venv
.eggs/
dist/

**/*.egg-info/
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ requires = [
build-backend = "setuptools.build_meta"

[tool.setuptools-git-versioning]
enabled = true
enabled = true
dev_template = "{tag}.{ccount}"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers =

[options]
package_dir =
= src
= .
packages = find:
python_requires = >=3.6
install_requires =
Expand Down

0 comments on commit 6b2be10

Please sign in to comment.