Skip to content

Commit 100881a

Browse files
committed
pyproject.toml
jobs
1 parent 11e6a7b commit 100881a

File tree

3 files changed

+16
-69
lines changed

3 files changed

+16
-69
lines changed

.github/workflows/create_release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
on:
22
workflow_dispatch:
33
inputs:
4-
version:
4+
version-minor:
55
type: string
6-
description: Version to create tag on
6+
description: Minor version to create tag on (eg. x.x)
7+
8+
version-bugfix:
9+
type: string
10+
description: Minor version to create tag on (eg. 2.x)
11+
default: ""
712

813
name: Create Release
914

@@ -19,7 +24,7 @@ jobs:
1924
uses: mathieudutour/[email protected]
2025
with:
2126
github_token: ${{ secrets.TOKEN_GH }}
22-
custom_tag : ${{github.event.inputs.version}}
27+
custom_tag : ${{github.event.inputs.version-minor}}.${{github.event.inputs.version-bugfix}}
2328
- name: Create Release
2429
id: create_release
2530
uses: actions/create-release@latest
@@ -28,6 +33,6 @@ jobs:
2833
with:
2934
tag_name: ${{ steps.tag_version.outputs.new_tag }}
3035
release_name: ${{ steps.tag_version.outputs.new_tag }}
31-
body: "Changelog: https://daf.davidhozic.com/en/v${{github.event.inputs.version}}/changelog.html"
36+
body: "Changelog: https://daf.davidhozic.com/en/v${{github.event.inputs.version-minor}}.x/changelog.html"
3237
draft: false
3338
prerelease: false

.github/workflows/python-publish.yml

Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,8 @@ on:
99
jobs:
1010
# Build job
1111
build:
12-
runs-on: ${{matrix.os[0]}}
13-
strategy:
14-
matrix:
15-
os:
16-
- [ubuntu-latest, manylinux_x86_64]
17-
- [macos-12, macosx_x86_64]
18-
- [windows-2019, win_amd64]
19-
python: ["cp38", "cp39", "cp310"]
20-
12+
runs-on: ubuntu-latest
2113
steps:
22-
- name: Change file endings.
23-
run: |
24-
git config --global core.autocrlf false
25-
git config --global core.eol lf
26-
2714
- name: Checkout code
2815
uses: actions/checkout@v2
2916

@@ -35,56 +22,13 @@ jobs:
3522
- name: Install dependencies
3623
run: |
3724
python -m pip install --upgrade pip
38-
pip install build cibuildwheel==2.13.1
39-
40-
- name: Build wheels
41-
run: |
42-
python -m cibuildwheel --output-dir dist
43-
env:
44-
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.os[1] }}
4525
46-
- name: Build sdist and universal wheel
47-
if: ${{matrix.python == 'cp38' && matrix.os[0] == 'ubuntu-latest'}}
26+
- name: Build
4827
run: |
49-
python setup-universal.py
5028
python -m build
5129
52-
- name: Cache dist
53-
uses: actions/cache@v3
30+
- name: Publish package
31+
uses: pypa/gh-action-pypi-publish@f5622bde02b04381239da3573277701ceca8f6a0
5432
with:
55-
path: dist/
56-
key: ${{matrix.python}}-${{matrix.os[0]}}-${{hashFiles('**/daf/__init__.py')}}
57-
enableCrossOsArchive: true
58-
59-
# Publish job
60-
publish:
61-
runs-on: ubuntu-latest
62-
needs: build
63-
strategy:
64-
matrix: # Same as in build job
65-
os:
66-
- [ubuntu-latest, manylinux_x86_64]
67-
- [macos-12, macosx_x86_64]
68-
- [windows-2019, win_amd64]
69-
python: ["cp38", "cp39", "cp310"]
70-
steps:
71-
- name: Change file endings.
72-
run: |
73-
git config --global core.autocrlf false
74-
git config --global core.eol lf
75-
76-
- name: Checkout code
77-
uses: actions/checkout@v2
78-
79-
- name: Restore dist
80-
uses: actions/cache/restore@v3
81-
with:
82-
path: dist/
83-
key: ${{matrix.python}}-${{matrix.os[0]}}-${{hashFiles('**/daf/__init__.py')}}
84-
enableCrossOsArchive: true
85-
86-
- name: Publish package
87-
uses: pypa/gh-action-pypi-publish@f5622bde02b04381239da3573277701ceca8f6a0
88-
with:
89-
user: __token__
90-
password: ${{ secrets.PYPI_API_TOKEN }}
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ requires = [
33
"setuptools>=62.6,<66",
44
"setuptools-scm>=6.2,<8",
55
"wheel",
6-
"nuitka",
7-
"toml"
86
]
97

10-
build-backend = "nuitka.distutils.Build"
8+
build-backend = "setuptools.build_meta"
119

1210

1311
[project]

0 commit comments

Comments
 (0)