Merge branch 'develop' of https://git.reslate.systems/ydeng/renamebycsv into develop

This commit is contained in:
Harrison Deng 2023-04-21 11:22:23 -05:00
commit efe4855297
3 changed files with 37 additions and 21 deletions

View File

@ -1,21 +0,0 @@
# .woodpecker.yml
pipeline:
install:
image: debian
commands:
- apt-get update
- apt-get install python3
- apt-get install python3-pip
- pip install build
- pip install pytest
- pip install setuptools
- pip install twine
build:
image: python
commands:
- python -m build
publish:
image: python
commands:
- pip -m twine upload --repository-url https://git.reslate.systems -u ${CI_NETRC_USERNAME} -p ${CI_NETRC_PASSWORD} --non-interactive --disable-progress-bar --verbose dist/*

26
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,26 @@
pipeline {
agent any
stages {
stage("install") {
steps {
sh 'conda env update --file environment.yml'
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
}
}
stage("build") {
steps {
sh "python -m build"
}
}
stage("publish") {
when {
branch '**/master'
}
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
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/*"
}
}
}
}
}

11
environment.yml Normal file
View File

@ -0,0 +1,11 @@
name: renamebycsv
channels:
- anaconda
- conda-forge
dependencies:
- build=0.7.0
- pytest=7.2.2
- python=3.11.3
- setuptools=67.6.1
- twine=4.0.2
- cryptography=38.0.4