chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# https://github.com/marketplace/actions/manylinux-wheel-builder
|
||||
name: pypi deployer
|
||||
on:
|
||||
workflow_dispatch
|
||||
# push
|
||||
# push:
|
||||
# tags:
|
||||
# - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||
jobs:
|
||||
Linux-build:
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: build and upload manylinux wheels
|
||||
# cSpell:disable
|
||||
uses: Niraj-Kamdar/manylinux-wheel-builder@master
|
||||
# cSpell:enable
|
||||
Matrix-build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||
os: [macos-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: build wheel
|
||||
run: |
|
||||
pip install wheel
|
||||
python setup.py bdist_wheel
|
||||
- name: upload wheel
|
||||
run: |
|
||||
pip install twine
|
||||
twine upload dist/*
|
||||
continue-on-error: true
|
||||
@@ -0,0 +1,41 @@
|
||||
name: Build and Publish to PyPI (macOS)
|
||||
|
||||
# on: push
|
||||
# disabled on push cuz Error: Container action is only supported on Linux
|
||||
# no solution found yet
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
# name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
|
||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||
# runs-on: ubuntu-22.04
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install pypa/build
|
||||
run: >-
|
||||
python -m
|
||||
pip install
|
||||
build
|
||||
--user
|
||||
- name: Build a binary wheel and a source tarball
|
||||
run: >-
|
||||
python -m
|
||||
build
|
||||
--sdist
|
||||
--wheel
|
||||
--outdir dist/
|
||||
.
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
# if: startsWith(github.ref, 'refs/tags')
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
@@ -0,0 +1,50 @@
|
||||
name: Build and Publish to PyPI (manylinux)
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
# name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
|
||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||
# runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-22.04
|
||||
# strategy:
|
||||
# matrix:
|
||||
# python-version: ["3.6", "3.7", "3.8", "3.9"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# - name: Set up Python ${{ matrix.python-version }}
|
||||
# uses: actions/setup-python@v2
|
||||
# with:
|
||||
# python-version: ${{ matrix.python-version }}
|
||||
# - name: Install pypa/build
|
||||
# run: >-
|
||||
# python -m
|
||||
# pip install
|
||||
# build
|
||||
# --user
|
||||
# - name: Build a binary wheel and a source tarball
|
||||
# run: >-
|
||||
# python -m
|
||||
# build
|
||||
# --sdist
|
||||
# --wheel
|
||||
# --outdir dist/
|
||||
# .
|
||||
# cSpell:disable
|
||||
- name: Build on manylinux
|
||||
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
|
||||
# cSpell:enable
|
||||
with:
|
||||
python-versions: "cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m"
|
||||
# build-requirements: "cython numpy"
|
||||
# system-packages: "lrzip-devel zlib-devel"
|
||||
# pre-build-command: "sh pre-build-script.sh"
|
||||
# package-path: "my_project"
|
||||
# pip-wheel-args: "-w ./dist --no-deps"
|
||||
# pip-wheel-args: "--sdist --wheel --outdir dist/"
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
# if: startsWith(github.ref, 'refs/tags')
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
Reference in New Issue
Block a user