Replies: 7 comments 18 replies
-
It's always a good idea to make version numbers unambiguous. |
Beta Was this translation helpful? Give feedback.
-
I just wonder if the problem will be that the version will be changed automatically only for python. ARX will still have one version until the next release. |
Beta Was this translation helpful? Give feedback.
-
I think it would be okay to append YYYYMMDD I.e. 2.2.6.20250424 edit maybe version should be |
Beta Was this translation helpful? Give feedback.
-
Another option is to use
|
Beta Was this translation helpful? Give feedback.
-
Q, What happens if, there’s a project that has pyrx as a dependency |
Beta Was this translation helpful? Give feedback.
-
I added a new file pyrx_version.h Now it appends If we don’t like the date, I added a Whatever script changes the version on the python side should change this value before the modules are compiles. Visual studio has a pre-build event that can run .BAT files |
Beta Was this translation helpful? Give feedback.
-
I added If you can do the same with setuptool-scm, then the python version and the binary version will match when I commit binaries Ap.Application.pyrxVersion() will valuate to something like 2.2.6.4171.20250425 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
now the situation is that if I have cad-pyrx version 2.2.6 installed and I want to install from the latest commit
python -m pip install -U git+https://github.com/CEXT-Dan/PyRx.git
the installation is skipped becausepip
detects that the package version is the same as the installed one. The solution is to use setuptool-scm, which automatically assigns a unique version number to each commit. For example, if the current version is 2.2.6, the first commit after the commit tagged v2.2.6 will have version 2.2.7.dev0, the next 2.2.7.dev1 etc. This will not affect the releases in any way.Do you think this is a good idea?
Beta Was this translation helpful? Give feedback.
All reactions