peng-lab / BaSiCPy

MIT License
62 stars 20 forks source link

Fix/release #75

Closed Nicholas-Schaub closed 2 years ago

Nicholas-Schaub commented 2 years ago

This fixes the release pipeline. There were some issues with secrets and the way we were building and uploading the package.

yfukai commented 2 years ago

Thanks a lot for this! I found, in my local environment, bump2version patch or bump2version minor etc. fails with error:

(basicpy) fukai-macbook:BaSiCpy fukai$ bump2version minor
check docstring is first.............................(no files to check)Skipped
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
black................................................(no files to check)Skipped
flake8...............................................(no files to check)Skipped
pyupgrade............................................(no files to check)Skipped
setup-cfg-fmt........................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped
fatal: tag 'v0.3.0-dev0' already exists
Traceback (most recent call last):
  File "/Users/fukai/.pyenv/versions/basicpy/bin/bump2version", line 8, in <module>
    sys.exit(main())
  File "/Users/fukai/.pyenv/versions/3.9.12/envs/basicpy/lib/python3.9/site-packages/bumpversion/cli.py", line 137, in main
    _tag_in_vcs(vcs, context, args)
  File "/Users/fukai/.pyenv/versions/3.9.12/envs/basicpy/lib/python3.9/site-packages/bumpversion/cli.py", line 728, in _tag_in_vcs
    vcs.tag(sign_tags, tag_name, tag_message)
  File "/Users/fukai/.pyenv/versions/3.9.12/envs/basicpy/lib/python3.9/site-packages/bumpversion/vcs.py", line 138, in tag
    subprocess.check_output(command)
  File "/Users/fukai/.pyenv/versions/3.9.12/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Users/fukai/.pyenv/versions/3.9.12/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'tag', 'v0.3.0-dev0', '--message', 'Bump version: 0.2.1-dev0 → 0.3.0-dev0']' returned non-zero exit status 128.

Does this also happen in your environment?

yfukai commented 2 years ago

We noticed this is a local issue, with tag already existing in the repo.