-
Notifications
You must be signed in to change notification settings - Fork 23
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 #206 from MannLabs/prepare-for-new-release-workflow
Prepare for new release workflow
- Loading branch information
Showing
28 changed files
with
267 additions
and
46 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,24 @@ | ||
#!/bin/bash | ||
set -e -u | ||
|
||
# Build the installer for Linux. | ||
# This script must be run from the root of the repository. | ||
|
||
CPU_OR_GPU=${1:-CPU} | ||
|
||
rm -rf dist build *.egg-info | ||
rm -rf dist_pyinstaller build_pyinstaller | ||
|
||
# Creating the wheel | ||
python setup.py sdist bdist_wheel | ||
|
||
# Setting up the local package | ||
# Make sure you include the required extra packages and always use the stable or very-stable options! | ||
pip install "dist/peptdeep-1.2.1-py3-none-any.whl[stable]" | ||
|
||
if [ "${CPU_OR_GPU}" != "GPU" ]; then | ||
pip install torch -U --extra-index-url https://download.pytorch.org/whl/cpu | ||
fi | ||
|
||
# Creating the stand-alone pyinstaller folder | ||
pyinstaller release/pyinstaller/peptdeep.spec --distpath dist_pyinstaller --workpath build_pyinstaller -y |
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,24 @@ | ||
#!/bin/bash | ||
set -e -u | ||
|
||
# Build the install package for Linux. | ||
# This script must be run from the root of the repository after running build_installer_linux.sh | ||
|
||
PACKAGE_NAME=peptdeep | ||
|
||
# BUILD_NAME is taken from environment variables, e.g. 'peptdeep-1.2.1-linux-x64' | ||
rm -rf ${BUILD_NAME}.deb | ||
|
||
# If needed, include additional source such as e.g.: | ||
# cp ../../peptdeep/data/*.fasta dist/peptdeep/data | ||
# WARNING: this probably does not work!!!! | ||
|
||
# Wrapping the pyinstaller folder in a .deb package | ||
mkdir -p dist_pyinstaller/${BUILD_NAME}/usr/local/bin | ||
mv dist_pyinstaller/${PACKAGE_NAME} dist_pyinstaller/${BUILD_NAME}/usr/local/bin/${PACKAGE_NAME} | ||
mkdir dist_pyinstaller/${BUILD_NAME}/DEBIAN | ||
cp release/linux/control dist_pyinstaller/${BUILD_NAME}/DEBIAN | ||
dpkg-deb --build --root-owner-group dist_pyinstaller/${BUILD_NAME} | ||
|
||
# release workflow expects artifact at root of repository | ||
mv dist_pyinstaller/${BUILD_NAME}.deb . |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
#!/bin/bash | ||
set -e -u | ||
|
||
# Build the installer for MacOS. | ||
# This script must be run from the root of the repository. | ||
|
||
rm -rf dist | ||
rm -rf build | ||
|
||
# Creating the wheel | ||
python setup.py sdist bdist_wheel | ||
pip install "dist/peptdeep-1.2.1-py3-none-any.whl[stable]" | ||
|
||
# Creating the stand-alone pyinstaller folder | ||
pyinstaller release/pyinstaller/peptdeep.spec --distpath dist_pyinstaller --workpath build_pyinstaller -y |
Oops, something went wrong.