diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2ac68ae4ccc4d797c5491845ee8d2f7137473d95..168e1622238c15cc32534248536ecf7136e356ed 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,23 +11,47 @@ jobs:
call-test-workflow:
uses: BlueBrain/BluePyMM/.github/workflows/test.yml@master
- build-n-publish:
- name: Build and publish on PyPI
+ build-tag-n-publish:
+ name: Build, tag and publish on PyPI
runs-on: ubuntu-latest
needs: call-test-workflow
+ permissions:
+ contents: write
steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 0
+ - uses: actions/checkout@v3
- name: Set up Python 3.10
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: "3.10"
+
+ - name: Bump version and push tag
+ uses: anothrNick/github-tag-action@1.64.0
+ if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+ id: tag
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ WITH_V: false
+ DEFAULT_BUMP: minor
+
- name: Build a source tarball and wheel
run: |
pip install wheel
python setup.py sdist bdist_wheel
+ - name: Get and store tag from 'Bump version and push tag' step
+ if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+ run: echo "TAG_NAME=${{ steps.tag.outputs.new_tag }}" >> $GITHUB_ENV
+ - name: Get and store tag from triggered tag push
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
+ run: echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
+
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: ${{ env.TAG_NAME }}
+ name: ${{ env.TAG_NAME }}
+ generate_release_notes: true
+
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
diff --git a/.zenodo.json b/.zenodo.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0553d558fb50fb022855c774c91db020a3461d5
--- /dev/null
+++ b/.zenodo.json
@@ -0,0 +1,43 @@
+{
+ "title" : "BluePyMM",
+ "license": "LGPLv3",
+ "upload_type": "software",
+ "description": "BluePyMM is a software built to do Cell Model Management (MM). It takes as input a morphology release, a circuit recipe and a set of e-models with some extra information. Next, it finds all possible (morphology, e-model)-combinations (me-combos) based on e-type, m-type, and layer as described by the circuit recipe, and calculates the scores for every combination. Finally, it writes out the resulting accepted me-combos to a database, and produces a report with information on the number of matches.",
+ "creators": [
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Van Geit, Werner",
+ "orcid": "0000-0002-2915-720X"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Vanherpe, Liesbeth",
+ "orcid": "0000-0002-1226-0526"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Rössert, Christian",
+ "orcid": "0000-0002-4839-2424"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Gevaert, Michael",
+ "orcid": "0000-0002-7547-3297"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Courcol, Jean-Denis",
+ "orcid": "0000-0002-9351-1461"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "King, James Gonzalo",
+ "orcid": "0000-0003-0906-8389"
+ },
+ {
+ "affiliation": "Blue Brain Project, EPFL",
+ "name": "Jaquier, Aurélien",
+ "orcid": "0000-0001-6202-6175"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/AUTHORS.txt b/AUTHORS.txt
index 752ba8d59a5c9e833a8a0e9281e4763ee225f699..252c5fffa38c20cf539e78496ba2690a7b2b0ef2 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -4,3 +4,4 @@ Christian Roessert @ BBP
Mike Gevaert @ BBP
Jean-Denis Courcol @ BBP
James King @ BBP
+Aurélien Jaquier @ BBP