Skip to content
Snippets Groups Projects
Commit facbf16a authored by Daniel Dehennin's avatar Daniel Dehennin
Browse files

feat(semantic-release): use `sed` to update python version

The `semantic-release-pypi` only works with `setup.py` / `setup.cfg`.

BREAKING CHANGE: use `@semantic-release/exec` instead of `semantic-release-pypi`

* .releaserc.js: define an example using `@semantic-release/exec` to
  execute a `sed` command.
parent ef068846
No related branches found
No related tags found
3 merge requests!74Resolve "Publish new release",!73Resolve "Prepare new release",!68Resolve "Python: remove the useless `semantic-release-pypi`"
......@@ -146,18 +146,19 @@ if (
// );
// gitAssets.push('app/package*.json');
// // We need to update setup.py
// // Python: update the version string in the module file
// // Use sed to change the version string in a file
// const sedVersionFile = './src/version.py';
// var sedVersionCmd = "sed -i -e 's,^\\(.*__version__\\).*,\\1 = \"${nextRelease.version}\",' ";
// config.plugins.push(
// [
// 'semantic-release-pypi',
// '@semantic-release/exec',
// {
// setupPy: 'setup.py',
// pypiPublish: false,
// prepareCmd: sedVersionCmd.concat(sedVersionFile),
// },
// ]
// );
// gitAssets.push('setup.cfg');
// gitAssets.push(sedVersionFile);
// // Update Helm chart version
// config.plugins.push(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment