-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Exscientia/feat_sync
Sync the upstream main
- Loading branch information
Showing
109 changed files
with
20,591 additions
and
458 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Release Devel | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ devel ] | ||
|
||
jobs: | ||
build: | ||
name: build (${{ matrix.python-version }}, ${{ matrix.platform.name }}) | ||
runs-on: ${{ matrix.platform.os }} | ||
strategy: | ||
max-parallel: 9 | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
platform: | ||
- { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
- { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } | ||
- { name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
exclude: | ||
# Exclude all but the latest Python from all but Linux | ||
- platform: | ||
{ name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
python-version: "3.8" | ||
- platform: { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
python-version: "3.8" | ||
- platform: | ||
{ name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
python-version: "3.9" | ||
- platform: { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
python-version: "3.9" | ||
environment: | ||
name: biosimspace-build | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
env: | ||
SIRE_DONT_PHONEHOME: 1 | ||
SIRE_SILENT_PHONEHOME: 1 | ||
steps: | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
activate-environment: bss_build | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
# | ||
- name: Clone the devel branch | ||
run: git clone -b devel https://github.com/openbiosim/biosimspace | ||
# | ||
- name: Setup Conda | ||
run: mamba install -y -c conda-forge boa anaconda-client packaging=21 pip-requirements-parser | ||
# | ||
- name: Update Conda recipe | ||
run: python ${{ github.workspace }}/biosimspace/actions/update_recipe.py | ||
# | ||
- name: Prepare build location | ||
run: mkdir ${{ github.workspace }}/build | ||
# | ||
- name: Build Conda package using mamba build | ||
run: conda mambabuild -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/biosimspace/recipes/biosimspace | ||
# | ||
- name: Upload Conda package | ||
run: python ${{ github.workspace }}/biosimspace/actions/upload_package.py | ||
env: | ||
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | ||
ANACONDA_LABEL: dev |
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,70 @@ | ||
name: Pull-Request | ||
|
||
on: | ||
pull_request: | ||
branches: [devel, main] | ||
|
||
jobs: | ||
build: | ||
name: build (${{ matrix.python-version }}, ${{ matrix.platform.name }}) | ||
runs-on: ${{ matrix.platform.os }} | ||
strategy: | ||
max-parallel: 9 | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
platform: | ||
- { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
- { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } | ||
- { name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
exclude: | ||
# Exclude all but the latest Python from all | ||
# but Linux | ||
- platform: | ||
{ name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
python-version: "3.8" | ||
- platform: { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
python-version: "3.8" | ||
- platform: | ||
{ name: "macos", os: "macos-latest", shell: "bash -l {0}" } | ||
python-version: "3.9" | ||
- platform: { name: "windows", os: "windows-latest", shell: "pwsh" } | ||
python-version: "3.9" | ||
environment: | ||
name: biosimspace-build | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
env: | ||
SIRE_DONT_PHONEHOME: 1 | ||
SIRE_SILENT_PHONEHOME: 1 | ||
REPO: "${{ github.event.pull_request.head.repo.full_name || github.repository }}" | ||
steps: | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
activate-environment: bss_build | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
# | ||
- name: Clone the feature branch | ||
run: git clone -b ${{ github.head_ref }} --single-branch https://github.com/${{ env.REPO }} | ||
# | ||
- name: Setup Conda | ||
run: mamba install -y -c conda-forge boa anaconda-client packaging=21 pip-requirements-parser | ||
# | ||
- name: Update Conda recipe | ||
run: python ${{ github.workspace }}/biosimspace/actions/update_recipe.py | ||
# | ||
- name: Prepare build location | ||
run: mkdir ${{ github.workspace }}/build | ||
# | ||
- name: Build Conda package using mamba build using main channel | ||
if: ${{ github.base_ref == 'main' }} | ||
run: conda mambabuild -c conda-forge -c openbiosim/label/main ${{ github.workspace }}/biosimspace/recipes/biosimspace | ||
# | ||
- name: Build Conda package using mamba build using dev channel | ||
if: ${{ github.base_ref != 'main' }} | ||
run: conda mambabuild -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/biosimspace/recipes/biosimspace |
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,66 +1,4 @@ | ||
BioSimSpace release instructions | ||
********************************* | ||
|
||
The following instructions describe how to create a new BioSimSpace release: | ||
|
||
Step 1 | ||
====== | ||
|
||
Update the `CHANGELOG <https://github.com/openbiosim/biosimspace/blob/devel/doc/source/changelog.rst>`_ | ||
file with a summary of the changes for this relase. Feel free to link to | ||
`GitHub issues <https://github.com/openbiosim/biosimspace/issues>`_ where relevant | ||
and give credit for specific contributions. | ||
|
||
Step 2 | ||
====== | ||
|
||
When you're happy, tag the commit that you want to be associated with the | ||
release. The following will tag the latest commit: | ||
|
||
.. code-block:: bash | ||
git tag -a 2023.1.0 -m "Tagging the 2023.1.0 release of BioSimSpace." | ||
Step 3 | ||
====== | ||
|
||
Push the commit and tag to the ``devel`` branch on the remote: | ||
|
||
.. code-block:: bash | ||
git push origin devel --follow-tags | ||
This will trigger a new Azure Pipelines build which will create binaries | ||
and Conda packages for the release. If you make a mistake and want to move | ||
the tag to a later commit, simply delete the tag from the remote: | ||
|
||
.. code-block:: bash | ||
git push origin :refs/tags/2023.1.0 | ||
Next, delete the Conda release package from the `Anaconda Cloud <https://anaconda.org/openbiosim/biosimspace/files>`_. | ||
You can then move the tag to the latest commit: | ||
|
||
.. code-block:: bash | ||
git tag -fa 2023.1.0 | ||
Finally, push the new commit and updated tag: | ||
|
||
.. code-block:: bash | ||
git push origin devel --follow-tags | ||
Step 4 | ||
====== | ||
|
||
Create a `GitHub release <https://github.com/openbiosim/biosimspace/releases>`_. | ||
When drafting the release, simply choose the tag that you have created. | ||
|
||
Step 5 | ||
====== | ||
|
||
Create a `pull request <https://github.com/openbiosim/biosimspace/pulls>`_ to | ||
merge ``devel`` into the ``master`` branch. | ||
|
||
That's it! | ||
Please see the instructions on our website `here <https://biosimspace.openbiosim.org/contributing/packaging.html#creating-releases>`__ |
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,4 +1,4 @@ | ||
.. _ref-Box: | ||
.. _ref-Convert: | ||
|
||
BioSimSpace.Convert | ||
=================== | ||
|
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.