Skip to content

Commit c1c358c

Browse files
committed
Merge branch 'development' into adapt_to_new_alphabase
# Conflicts: # requirements/development-stable.txt # requirements/development.txt # requirements/gui-stable.txt # requirements/gui.txt
2 parents be77e63 + 4a4a6a0 commit c1c358c

32 files changed

+227
-338
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.3.0
2+
current_version = 1.3.1
33
commit = True
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

.github/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2+
changelog:
3+
exclude:
4+
# labels:
5+
# - ignore-for-release
6+
authors:
7+
- octocat
8+
categories:
9+
- title: Breaking Changes
10+
labels:
11+
- breaking-change
12+
- title: Bug fixes
13+
labels:
14+
- bug
15+
- title: New Features
16+
labels:
17+
- enhancement
18+
- title: Other Changes / unlabeled
19+
labels:
20+
- "*"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Create a draft release and build and upload all installers to it.
2+
name: Create Draft Release
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
commitish_to_release:
8+
type: string
9+
description: 'Enter commit hash or branch to release (default: main).'
10+
default: "main"
11+
12+
jobs:
13+
create-release:
14+
uses: MannLabs/alphashared/.github/workflows/create_release.yml@v1
15+
secrets: inherit
16+
permissions:
17+
contents: write
18+
with:
19+
package_name: peptdeep
20+
commitish_to_release: ${{ inputs.commitish_to_release }}
21+
build_nodejs_ui: false
22+
python_version: 3.9
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Publish and test releases on Test-PyPI and PyPI.
2+
name: Publish on PyPi
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
tag_to_release:
8+
description: 'Enter tag to release (example: v1.5.5). A tag with the same name must exist in the repository.'
9+
type: string
10+
required: true
11+
12+
jobs:
13+
publish_on_pypi:
14+
uses: MannLabs/alphashared/.github/workflows/publish_on_pypi.yml@v1
15+
with:
16+
# see the documentation of the workflow for more information on the parameters
17+
package_name: peptdeep
18+
tag_to_release: ${{ inputs.tag_to_release }}
19+
python_version: 3.9
20+
secrets:
21+
test_pypi_api_token: ${{ secrets.TEST_PYPI_PEPTDEEP_API_TOKEN }}
22+
pypi_api_token: ${{ secrets.PYPI_PEPTDEEP_API_TOKEN }}

MANIFEST.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
recursive-include peptdeep *
22
include LICENSE.txt
33
include README.md
4-
recursive-exclude peptdeep/logs *
4+
recursive-exclude logs *
5+
recursive-exclude tests *
6+
7+
global-exclude */__pycache__/*
8+
global-exclude *.pyc *.nbi *.nbc

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ The GUI of peptdeep is a completely stand-alone tool that requires no
112112
knowledge of Python or CLI tools. Click on one of the links below to
113113
download the latest release for:
114114

115-
- [**Windows**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.0-windows-amd64.exe)
116-
- [**macOS**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.0-macos-darwin-x64.pkg)
117-
- [**macOS ARM**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.0-macos-darwin-arm64.pkg )
118-
- [**Linux**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.0-linux-x64.deb)
115+
- [**Windows**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.1-windows-amd64.exe)
116+
- [**macOS**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.1-macos-darwin-x64.pkg)
117+
- [**macOS ARM**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.1-macos-darwin-arm64.pkg )
118+
- [**Linux**](https://github.com/MannLabs/alphapeptdeep/releases/latest/download/peptdeep-1.3.1-linux-x64.deb)
119119

120120
Older releases remain available on the [release
121121
page](https://github.com/MannLabs/alphapeptdeep/releases), but no
@@ -252,14 +252,14 @@ conda activate peptdeep
252252
Finally, peptdeep and all its [dependancies](requirements) need to be
253253
installed. To take advantage of all features and allow development (with
254254
the `-e` flag), this is best done by also installing the [development
255-
dependencies](requirements/requirements_development.txt) instead of only
256-
the [core dependencies](requirements/requirements.txt):
255+
dependencies](requirements/requirements_development_loose.txt) instead of only
256+
the [core dependencies](requirements/requirements_loose.txt):
257257
258258
``` bash
259259
pip install -e ".[development]"
260260
```
261261
262-
By default this installs loose dependancies (no explicit versioning),
262+
By default this installs 'loose' dependencies (no pinned versions),
263263
although it is also possible to use stable dependencies
264264
(e.g. `pip install -e ".[stable,development-stable]"`).
265265

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
copyright = "2022, Mann Labs, MPIB"
2525
author = "Mann Labs, MPIB"
2626

27-
release = "1.3.0"
27+
release = "1.3.1"
2828

2929
# -- General configuration ---------------------------------------------------
3030

peptdeep/__init__.py

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,6 @@
1-
#!python
2-
3-
# try:
4-
# from . import (
5-
# model, spec_lib
6-
# )
7-
8-
# from . import protein # rely on spec_lib, import after
9-
# except (ImportError,RuntimeError, OSError):
10-
# # happends when installation
11-
# pass
12-
13-
__project__ = "peptdeep"
14-
__version__ = "1.3.0"
15-
__license__ = "Apache 2.0"
16-
__description__ = "The AlphaX deep learning framework for Proteomics"
17-
__author__ = "Mann Labs"
1+
__version__ = "1.3.1"
2+
# This information is duplicated in pyproject.toml:
183
__author_email__ = "jalew.zwf@qq.com"
194
__github__ = "https://github.com/MannLabs/peptdeep"
205
__doc__ = "https://alphapeptdeep.readthedocs.io/en/latest/"
21-
__pypi__ = "https://pypi.org/project/peptdeep/"
22-
__keywords__ = [
23-
"deep learning",
24-
"proteomics",
25-
"AlphaX ecosystem",
26-
]
27-
__python_version__ = ">=3.8"
28-
__classifiers__ = [
29-
# "Development Status :: 1 - Planning",
30-
# "Development Status :: 2 - Pre-Alpha",
31-
# "Development Status :: 3 - Alpha",
32-
# "Development Status :: 4 - Beta",
33-
"Development Status :: 5 - Production/Stable",
34-
# "Development Status :: 6 - Mature",
35-
# "Development Status :: 7 - Inactive"
36-
"Intended Audience :: Science/Research",
37-
"License :: OSI Approved :: Apache Software License",
38-
"Operating System :: OS Independent",
39-
"Programming Language :: Python :: 3",
40-
"Topic :: Scientific/Engineering :: Bio-Informatics",
41-
]
42-
__console_scripts__ = [
43-
"peptdeep=peptdeep.cli:run",
44-
]
45-
__urls__ = {
46-
"Mann Labs at MPIB": "https://www.biochem.mpg.de/mann",
47-
"Mann Labs at CPR": "https://www.cpr.ku.dk/research/proteomics/mann/",
48-
"GitHub": __github__,
49-
"Docs": __doc__,
50-
"PyPi": __pypi__,
51-
}
52-
__extra_requirements__ = {
53-
"development-stable": "development-stable.txt",
54-
"gui-stable": "gui-stable.txt",
55-
"hla-stable": "hla-stable.txt",
56-
"stable": "base-stable.txt",
57-
"development": "development.txt",
58-
"gui": "gui.txt",
59-
"hla": "hla.txt",
60-
}
6+
__license__ = "Apache 2.0"

pyproject.toml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "peptdeep"
7+
requires-python = ">=3.8.0"
8+
dynamic = ["version", "dependencies", "optional-dependencies"]
9+
10+
authors = [
11+
{name = "Mann Labs", email = "jalew.zwf@qq.com"}
12+
]
13+
description = "The AlphaX deep learning framework for Proteomics"
14+
readme = "README.md"
15+
keywords = [
16+
"mass spectrometry",
17+
"proteomics",
18+
"search engine",
19+
"DIA",
20+
"data-independent acquisition",
21+
"bioinformatics",
22+
"AlphaPept",
23+
"AlphaPept ecosystem",
24+
"deep learning",
25+
"AlphaX ecosystem",
26+
]
27+
license = {file = "LICENSE.txt"}
28+
classifiers = [
29+
"Development Status :: 5 - Production/Stable",
30+
# "Development Status :: 6 - Mature",
31+
# "Development Status :: 7 - Inactive"
32+
"Intended Audience :: Science/Research",
33+
"License :: OSI Approved :: Apache Software License",
34+
"Operating System :: OS Independent",
35+
"Programming Language :: Python :: 3",
36+
"Topic :: Scientific/Engineering :: Bio-Informatics",
37+
]
38+
39+
[project.urls]
40+
41+
"Paper preprint" = "https://www.biochem.mpg.de/mann"
42+
Repository = "https://github.com/MannLabs/peptdeep"
43+
#Documentation = "https://readthedocs.org"
44+
#Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"
45+
Issues = "https://github.com/MannLabs/peptdeep/issues"
46+
"Mann Labs Homepage" = "https://www.biochem.mpg.de/mann"
47+
Docs = "https://alphapeptdeep.readthedocs.io/en/latest/"
48+
PyPi = "https://pypi.org/project/peptdeep/"
49+
50+
[tool.setuptools.packages]
51+
find = {}
52+
53+
[tool.setuptools.dynamic]
54+
# https://stackoverflow.com/a/73600610
55+
dependencies = {file = ["requirements/requirements_loose.txt"]}
56+
optional-dependencies = { stable = { file = ["requirements/requirements.txt",
57+
] }, gui = { file = [ "requirements/requirements_gui_loose.txt",
58+
] }, gui-stable = { file = [ "requirements/requirements_gui.txt",
59+
] }, development = { file = ["requirements/requirements_development_loose.txt",
60+
] }, development-stable = { file = ["requirements/requirements_development.txt",
61+
] }, hla = { file = ["requirements/requirements_hla_loose.txt",
62+
] }, hla-stable = { file = ["requirements/requirements_hla.txt",
63+
] }}
64+
version = {attr = "peptdeep.__version__"}
65+
66+
[project.scripts]
67+
peptdeep = "peptdeep.cli:run"
68+
69+
[tool.ruff]
70+
extend-exclude = [".bumpversion.cfg"]
171

272
[tool.ruff.lint]
373
select = ["E", "F"]

release/linux/build_installer_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ rm -rf dist build *.egg-info
1010
rm -rf dist_pyinstaller build_pyinstaller
1111

1212
# Creating the wheel
13-
python setup.py sdist bdist_wheel
13+
python -m build
1414

1515
# Setting up the local package
1616
# Make sure you include the required extra packages and always use the stable or very-stable options!
17-
pip install "dist/peptdeep-1.3.0-py3-none-any.whl[stable]"
17+
pip install "dist/peptdeep-1.3.1-py3-none-any.whl[stable, gui-stable]"
1818

1919
if [ "${CPU_OR_GPU}" != "GPU" ]; then
2020
pip install torch -U --extra-index-url https://download.pytorch.org/whl/cpu

0 commit comments

Comments
 (0)