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