Compare commits
3 Commits
develop
...
89d6276fe0
Author | SHA1 | Date | |
---|---|---|---|
89d6276fe0 | |||
021a5a921b | |||
67775021bd |
@@ -1,11 +0,0 @@
|
||||
FROM mcr.microsoft.com/devcontainers/anaconda:1-3
|
||||
|
||||
# Copy environment.yml (if found) to a temp location so we update the environment. Also
|
||||
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
|
||||
COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
|
||||
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
|
||||
&& rm -rf /tmp/conda-tmp
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages.
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
@@ -1,35 +0,0 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/anaconda
|
||||
{
|
||||
"name": "Anaconda (Python 3)",
|
||||
"build": {
|
||||
"context": "..",
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.debugpy",
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.black-formatter",
|
||||
"ms-python.flake8"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
// "features": {},
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "python --version",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
// "customizations": {},
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
This file copied into the container along with environment.yml* from the parent
|
||||
folder. This file is included to prevents the Dockerfile COPY instruction from
|
||||
failing if no environment.yml is found.
|
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -1,31 +1,26 @@
|
||||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
cloud 'Reslate Systems'
|
||||
defaultContainer 'conda'
|
||||
}
|
||||
}
|
||||
agent any
|
||||
stages {
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'conda update conda -y -q'
|
||||
sh 'conda env update -n base --file environment.yml'
|
||||
sh 'mamba env update --file environment.yml'
|
||||
sh 'echo "mamba activate splitmsa" >> ~/.bashrc'
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
sh "conda run -n base python -m build"
|
||||
sh "python -m build"
|
||||
sh "python -m pyinstaller ./splitmsa/"
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh "conda run -n base pip install dist/*.whl"
|
||||
sh "conda run -n base splitmsa -h"
|
||||
sh "pip install dist/*.whl"
|
||||
}
|
||||
}
|
||||
stage("archive") {
|
||||
stage("test") {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||
sh "pip install dist/*.whl"
|
||||
}
|
||||
}
|
||||
stage("publish") {
|
||||
@@ -34,7 +29,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
sh returnStatus: true, script: 'conda run -n base python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*'
|
||||
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -4,7 +4,6 @@ channels:
|
||||
dependencies:
|
||||
- build=0.7.0
|
||||
- pytest=7.2.2
|
||||
- twine
|
||||
- twine=4.0.2
|
||||
- biopython=1.81
|
||||
- python=3.9
|
||||
prefix: ./env
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Bio==1.5.6
|
@@ -1,12 +1,12 @@
|
||||
[metadata]
|
||||
name = splitmsa
|
||||
version = 0.0.4
|
||||
version = 0.0.1
|
||||
|
||||
[options]
|
||||
packages = splitmsa
|
||||
install_requires =
|
||||
biopython ==1.81; python_version == "3.9"
|
||||
Bio ==1.81; python_version == "3.9"
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
splitmsa = splitmsa.splitmsa:main
|
||||
splitmsa = splitmsa.splitmsa:main
|
Reference in New Issue
Block a user