--version-variable flag alternative to cfg file
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
At Sewan we will setup this feature and submit a PR from our fork https://github.com/Azraeht/python-semantic-release
@fattybenji Sounds like a good solution 👍