-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit (push necessary files from 3MFPython Repo)
- Loading branch information
1 parent
a08ba1a
commit abf33d1
Showing
10 changed files
with
7,545 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build, Test, and Publish Wheel | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Build wheel | ||
run: | | ||
pip install -r requirements.txt | ||
python setup.py bdist_wheel | ||
- name: Get wheel name | ||
id: set_wheel_name | ||
run: echo "::set-output name=wheel_name::$(ls dist/*.whl)" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel-artifact | ||
path: dist/*.whl | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Download wheel | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wheel-artifact | ||
|
||
- name: List files in the workspace | ||
run: | | ||
echo "Listing all files and directories in the workspace:" | ||
ls -R | ||
- name: Install dependencies | ||
run: pip install twine | ||
|
||
- name: Publish to PyPI | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: twine upload *.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include lib3mf/lib3mf.so | ||
include lib3mf/lib3mf.dylib | ||
include lib3mf/lib3mf.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
lib3mf (Python) | ||
========= | ||
|
||
This repository will automatically assemble a Python library | ||
based on every release of lib3MF and deploy it to Python Package Index |
Oops, something went wrong.