-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-readthedocs
- Loading branch information
Showing
10 changed files
with
211 additions
and
25 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
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
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
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
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
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,180 @@ | ||
name: Publish on PyPI | ||
run-name: Publish on PyPI - ${{ github.sha }} | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
publish_on_pypi: | ||
name: Publish on PyPI | ||
if: github.event.release.prerelease == false | ||
runs-on: ubuntu-20.04 | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/dmri-amico | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Download windows_AMD64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_windows_AMD64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download windows_x86 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_windows_x86 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download macos_x86_64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_macos_x86_64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download macos_arm64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: macos_arm64_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_macos_arm64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download linux_x86_64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_linux_x86_64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download linux_aarch64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_linux_aarch64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download source distribution | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: sdist | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Publish on PyPI | ||
uses: pypa/gh-action-pypi-publish@v1.8.10 | ||
with: | ||
skip-existing: true | ||
verbose: true | ||
print-hash: true | ||
|
||
publish_on_pypi_test: | ||
name: Publish on PyPI Test | ||
if: github.event.release.prerelease == true && contains(github.event.release.tag_name, 'rc') | ||
runs-on: ubuntu-20.04 | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/project/dmri-amico | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Download windows_AMD64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_windows_AMD64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download windows_x86 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_windows_x86 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download macos_x86_64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_macos_x86_64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download macos_arm64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: macos_arm64_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_macos_arm64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download linux_x86_64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_linux_x86_64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download linux_aarch64 wheels | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: wheels_linux_aarch64 | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Download source distribution | ||
uses: dawidd6/action-download-artifact@v2.27.0 | ||
with: | ||
workflow: build_wheels.yml | ||
workflow_conclusion: success | ||
commit: ${{github.event.pull_request.head.sha}} | ||
name: sdist | ||
path: dist | ||
search_artifacts: true | ||
|
||
- name: Publish on PyPI Test | ||
uses: pypa/gh-action-pypi-publish@v1.8.10 | ||
with: | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip-existing: true | ||
verbose: true | ||
print-hash: true |
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=59.6.0", | ||
"Cython>=0.29.33", | ||
"Cython>=3.0.2", | ||
"spams-cython>=1.0.0" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.cibuildwheel] | ||
before-test = "python -m pip install -U pip && pip install -U setuptools && pip install -r requirements.txt --only-binary :all:" | ||
test-command = "pip list" | ||
test-skip = "*-win32 cp38-macosx_arm64 *-manylinux_aarch64" | ||
# before-test = "python -m pip install -U pip && pip install -U setuptools && pip install -r requirements.txt --only-binary :all:" | ||
# test-command = "pip list" | ||
# test-skip = "*-win32 cp38-macosx_arm64 *-manylinux_aarch64" | ||
build-verbosity = 3 |
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
Oops, something went wrong.