Compare commits
No commits in common. "8662972fe55de8b7e2a1bb884133dfa3c95d18e9" and "9ed70b317d1de794d20a2eac92cb98c4ad4e5c07" have entirely different histories.
8662972fe5
...
9ed70b317d
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -1,15 +1,10 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage("clean") {
|
||||
steps {
|
||||
sh 'rm -rf ./dist/*'
|
||||
}
|
||||
}
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'mamba env update --file environment.yml'
|
||||
sh 'echo "mamba activate renamebycsv" >> ~/.bashrc'
|
||||
sh 'conda env update --file environment.yml'
|
||||
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
@ -17,19 +12,9 @@ pipeline {
|
||||
sh "python -m build"
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh "pip install dist/*.whl"
|
||||
}
|
||||
}
|
||||
stage("archive") {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl'
|
||||
}
|
||||
}
|
||||
stage("publish package") {
|
||||
stage("publish") {
|
||||
when {
|
||||
branch '**/main'
|
||||
branch '**/master'
|
||||
}
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
|
@ -3,8 +3,9 @@ channels:
|
||||
- anaconda
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- build=0.7
|
||||
- pytest=7.2
|
||||
- python=3.11
|
||||
- setuptools=67.6
|
||||
- twine=4.0
|
||||
- build=0.7.0
|
||||
- pytest=7.2.2
|
||||
- python=3.11.3
|
||||
- setuptools=67.6.1
|
||||
- twine=4.0.2
|
||||
- cryptography=38.0.4
|
||||
|
@ -70,13 +70,6 @@ def rename(
|
||||
logging.info("No file names were modified.")
|
||||
|
||||
|
||||
def run(args):
|
||||
candidates = find_all_candidates(args.input_dir, args.regex, args.recursive)
|
||||
rename(
|
||||
args.csv, candidates, args.current, args.become, args.dry, args.keep_extension
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
program_name = "renamebycsv"
|
||||
argparser = argparse.ArgumentParser(
|
||||
@ -142,7 +135,10 @@ def main():
|
||||
format="[%(filename)s %(asctime)s - %(levelname)s] %(message)s",
|
||||
level=args.verbosity.upper(),
|
||||
)
|
||||
run(args)
|
||||
candidates = find_all_candidates(args.input_dir, args.regex, args.recursive)
|
||||
rename(
|
||||
args.csv, candidates, args.current, args.become, args.dry, args.keep_extension
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user