Skip to content

Commit

Permalink
Merge pull request #127 from coganlab/wheels
Browse files Browse the repository at this point in the history
generate binary wheel during package
  • Loading branch information
rayarxti authored Oct 23, 2024
2 parents fc16788 + a19178e commit 93a3db5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/Package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Packaging'
on:
push:
branches: [ main ]
branches: [ main, numpy2.0 ]
tags:
- 'v*'

Expand All @@ -16,12 +16,14 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
# Publish (moved to end of document later)
- name: Build source distribution
run: |
python -m pip install --upgrade pip
python -m pip install build --user
python -m build --sdist
- name: Build binary wheel
run: |
python -m build --wheel
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -52,20 +54,20 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
needs:
- publish-to-testpypi
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# publish-to-pypi:
# name: >-
# Publish Python 🐍 distribution 📦 to PyPI
# needs:
# - publish-to-testpypi
# runs-on: ubuntu-latest
# environment: release
# permissions:
# id-token: write # IMPORTANT: mandatory for trusted publishing
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v3
# with:
# name: python-package-distributions
# path: dist/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_file_list(path, ext):

setup(
name='ieeg',
version='0.5.2',
version='0.5.2.1',
packages=find_packages(
where='.',
include=['ieeg*'],
Expand Down

0 comments on commit 93a3db5

Please sign in to comment.