Skip to content

Commit b4fcc96

Browse files
committed
convert to pyproject.toml
1 parent 07ad125 commit b4fcc96

14 files changed

+450
-413
lines changed

.github/workflows/cibuildwheel.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build all Wheels
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_wheels:
10+
name: Build wheels on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [ubuntu-20.04, windows-2019, macos-11]
16+
include:
17+
- os: ubuntu-20.04
18+
cibw_archs: "aarch64"
19+
20+
steps:
21+
22+
# Set up emulation for arm on linux
23+
- name: Set up QEMU
24+
if: matrix.cibw_archs == 'aarch64'
25+
uses: docker/setup-qemu-action@v2
26+
with:
27+
platforms: arm64
28+
- uses: actions/checkout@v3
29+
30+
- name: Build wheels
31+
uses: pypa/cibuildwheel@v2.11.3
32+
33+
- uses: actions/upload-artifact@v3
34+
with:
35+
path: ./wheelhouse/*.whl
36+
37+
build_sdist:
38+
name: Build source distribution
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
43+
- name: Build sdist
44+
run: pipx run build --sdist
45+
46+
- uses: actions/upload-artifact@v3
47+
with:
48+
path: dist/*.tar.gz
49+
50+
upload_pypi:
51+
needs: [build_wheels, build_sdist]
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/download-artifact@v3
55+
with:
56+
# unpacks default artifact into dist/
57+
name: artifact
58+
path: dist
59+
60+
- uses: pypa/gh-action-pypi-publish@v1.5.0
61+
with:
62+
user: __token__
63+
password: ${{ secrets.PYPI_PASSWORD }}
64+
65+

.github/workflows/codeql_future.yml

+54-55
Original file line numberDiff line numberDiff line change
@@ -9,68 +9,67 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL - Future"
12+
# name: "CodeQL - Future"
1313

14-
on:
15-
push:
16-
branches: [ "future" ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "master" ]
20-
schedule:
21-
- cron: '25 23 * * 4'
14+
# on:
15+
# push:
16+
# branches: [ "future" ]
17+
# pull_request:
18+
# # The branches below must be a subset of the branches above
19+
# branches: [ "master" ]
20+
# schedule:
21+
# - cron: '25 23 * * 4'
2222

23-
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
23+
# jobs:
24+
# analyze:
25+
# name: Analyze
26+
# runs-on: ubuntu-latest
27+
# permissions:
28+
# actions: read
29+
# contents: read
30+
# security-events: write
3131

32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'cpp', 'python' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
32+
# strategy:
33+
# fail-fast: false
34+
# matrix:
35+
# language: [ 'cpp', 'python' ]
36+
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
42-
with:
43-
ref: future
39+
# steps:
40+
# - name: Checkout repository
41+
# uses: actions/checkout@v3
42+
# with:
43+
# ref: future
4444

45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
48-
with:
49-
languages: ${{ matrix.language }}
50-
# If you wish to specify custom queries, you can do so here or in a config file.
51-
# By default, queries listed here will override any specified in a config file.
52-
# Prefix the list here with "+" to use these queries and those in the config file.
53-
54-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55-
# queries: security-extended,security-and-quality
45+
# # Initializes the CodeQL tools for scanning.
46+
# - name: Initialize CodeQL
47+
# uses: github/codeql-action/init@v2
48+
# with:
49+
# languages: ${{ matrix.language }}
50+
# # If you wish to specify custom queries, you can do so here or in a config file.
51+
# # By default, queries listed here will override any specified in a config file.
52+
# # Prefix the list here with "+" to use these queries and those in the config file.
5653

57-
58-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59-
# If this step fails, then you should remove it and run the build manually (see below)
60-
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v2
54+
# # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55+
# # queries: security-extended,security-and-quality
6256

63-
# ℹ️ Command-line programs to run using the OS shell.
64-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
57+
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
58+
# # If this step fails, then you should remove it and run the build manually (see below)
59+
# - name: Autobuild
60+
# uses: github/codeql-action/autobuild@v2
6561

66-
# If the Autobuild fails above, remove it and uncomment the following three lines.
67-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
62+
# # ℹ️ Command-line programs to run using the OS shell.
63+
# # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6864

69-
# - run: |
70-
# echo "Run, Build Application using script"
71-
# ./location_of_script_within_repo/buildscript.sh
65+
# # If the Autobuild fails above, remove it and uncomment the following three lines.
66+
# # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7267

73-
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v2
75-
with:
76-
category: "/language:${{matrix.language}}"
68+
# # - run: |
69+
# # echo "Run, Build Application using script"
70+
# # ./location_of_script_within_repo/buildscript.sh
71+
72+
# - name: Perform CodeQL Analysis
73+
# uses: github/codeql-action/analyze@v2
74+
# with:
75+
# category: "/language:${{matrix.language}}"

.github/workflows/python-publish.yml

-37
This file was deleted.

.github/workflows/python_publish_linux.yml

-39
This file was deleted.

.github/workflows/upload_tar.yml

-36
This file was deleted.

0 commit comments

Comments
 (0)