-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/development' into publish_docker
- Loading branch information
Showing
17 changed files
with
139 additions
and
51 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,107 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag_to_release: | ||
description: 'Enter tag to release (example: v1.5.5)' | ||
required: true | ||
|
||
name: Publish on PyPi | ||
|
||
env: | ||
PYTHON_VERSION: "3.9" | ||
|
||
jobs: | ||
Create_PyPi_Release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.tag_to_release }} | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
auto-update-conda: true | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Conda info | ||
shell: bash -le {0} | ||
run: conda info | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | ||
- name: Prepare distribution | ||
shell: bash -le {0} | ||
run: | | ||
conda create -n alphadia_build python=${{ env.PYTHON_VERSION }} -y | ||
conda activate alphadia_build | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
rm -rf dist | ||
rm -rf build | ||
python -m build | ||
twine check dist/* | ||
conda deactivate | ||
- name: Publish distribution to Test-PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
- name: Test Test-PyPI loose installation | ||
shell: bash -le {0} | ||
run: | | ||
conda create -n pip_loose_test python=${{ env.PYTHON_VERSION }} -y | ||
conda activate pip_loose_test | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple "alphadia" | ||
alphadia -v | ||
conda deactivate | ||
- name: Test Test-PyPI stable installation | ||
shell: bash -le {0} | ||
run: | | ||
conda create -n pip_stable_test python=${{ env.PYTHON_VERSION }} -y | ||
conda activate pip_stable_test | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple "alphadia[stable]" | ||
alphadia -v | ||
conda deactivate | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
Test_PyPi_Release: | ||
name: Test_PyPi_version_on_${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
needs: Create_PyPi_Release | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
auto-update-conda: true | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Conda info | ||
shell: bash -le {0} | ||
run: conda info | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | ||
- name: Test PyPI stable installation | ||
shell: bash -le {0} | ||
run: | | ||
conda create -n pip_stable python=${{ env.PYTHON_VERSION }} -y | ||
conda activate pip_stable | ||
pip install "alphadia[stable]" | ||
alphadia -v | ||
conda deactivate | ||
- name: Test PyPI loose installation | ||
shell: bash -le {0} | ||
run: | | ||
conda create -n pip_loose python=${{ env.PYTHON_VERSION }} -y | ||
conda activate pip_loose | ||
pip install alphadia | ||
alphadia -v | ||
conda deactivate |
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,7 +1,6 @@ | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
name: Release bundled installer | ||
|
||
|
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,3 +1,3 @@ | ||
#!python | ||
|
||
__version__ = "1.5.5" | ||
__version__ = "1.6.0" |
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 |
---|---|---|
|
@@ -3,24 +3,28 @@ requires = ["setuptools"] | |
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "alphadia" | ||
name = "alphaDIA" | ||
requires-python = ">=3.9.0" | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
|
||
authors = [ | ||
{name = "Mann Labs", email = "[email protected]"}, | ||
{name = "Mann Labs", email = "[email protected]"} | ||
] | ||
description = "An open-source Python package of the AlphaPept ecosystem" | ||
description = "A novel proteomics search engine for DIA data based on end-to-end transfer learning." | ||
readme = "README.md" | ||
keywords = [ | ||
"mass spectrometry", | ||
"proteomics", | ||
"search engine", | ||
"DIA", | ||
"data-independent acquisition", | ||
"bioinformatics", | ||
"software", | ||
"AlphaPept", | ||
"AlphaPept ecosystem", | ||
] | ||
license = {file = "LICENSE.txt"} | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
# "Development Status :: 4 - Beta", | ||
"Development Status :: 4 - Beta", | ||
# "Development Status :: 5 - Production/Stable", | ||
# "Development Status :: 6 - Mature", | ||
# "Development Status :: 7 - Inactive" | ||
|
@@ -32,11 +36,13 @@ classifiers = [ | |
] | ||
|
||
[project.urls] | ||
"Mann Labs Homepage" = "https://www.biochem.mpg.de/mann" | ||
#Documentation = "https://readthedocs.org" | ||
|
||
"Paper preprint" = "https://www.biochem.mpg.de/mann" | ||
Repository = "https://github.com/MannLabs/alphadia" | ||
Issues = "https://github.com/MannLabs/alphadia/issues" | ||
#Documentation = "https://readthedocs.org" | ||
#Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md" | ||
Issues = "https://github.com/MannLabs/alphadia/issues" | ||
"Mann Labs Homepage" = "https://www.biochem.mpg.de/mann" | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
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
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