question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--version-variable flag alternative to cfg file

See original GitHub issue

When encapsulating release into a reusable ci-cd pipeline component (e.g. CircleCI orbs) it can be nice to automate some config for the project. Currently version_variable must be set in setup.cfg (it seems). It would be great if it can also be passed as a cli flag.

The workaround is to run file manipulations withi the ci-cd job to maipulate setup.cfg as needed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Azraehtcommented, Aug 19, 2019

Something great should be to make python-semantic-release able to work with setup.cfg and pyproject.toml.

This could allow to read/write automatically the new version within the right configuration file. It could allow to completely automated the CD process of a lib.

Something such as:

  • Get the new version from vcs history (already exists)
  • Bump it and write it in setup.cfg, pyproject.yml or init.py
  • Create a new commit for this change, create the new tag on it

At Sewan we will setup this feature and submit a PR from our fork https://github.com/Azraeht/python-semantic-release

0reactions
relekangcommented, Aug 30, 2019

@fattybenji Sounds like a good solution 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Develop a unified policy for command like flags vs config file ...
Configuration files are easier version than cli flags; Exclusively using a configuration file places undue burden on users. We are looking for a ......
Read more >
Flags are great for configuration - arp242.net
Discussions: Lobsters. I like to configure programs with commandline flags. Why include thousands of lines of code to parse confusing file ...
Read more >
The Buildroot user manual
Infrastructure for packages using kconfig for configuration files; 18.14. ... Buildroot has a nice configuration tool similar to the one you can find...
Read more >
Configuration flags - etcd
A reusable configuration file is a YAML file made with name and value of one or more command-line flags described below.
Read more >
Variables | qmake Manual - Qt Documentation
Note: Only the Qt files specified with this variable are included. ... The following CONFIG values control compiler and linker flags: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found