Wrong version number reported #101
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#101
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: oxr463
The command
cdist -V
, orcdist --version
report the following version number on the latest release,I also checked the version released on PyPI, and it says the same thing. In fact, re-running
pip install cdist
returns the following,Created by: darko-poljak
@oxr463 Release 4.10.11 raw source code that was uploaded by our build process should now have version.py included in the archive. If something is wrong, please report a new issue.
Created by: darko-poljak
Thank you for reporting this and to make us make cdist better.
Created by: oxr463
Thank you for your help.
Created by: darko-poljak
@oxr463 It should be actual with the next release.
Created by: darko-poljak
@oxr463 We will add version.py into tar.gz we generate, sign and upload to github.
We cannot affect github generated
Source code (zip)
norSource code (tar.gz)
.Created by: oxr463
I can clone from git. Thanks for letting me know!
Created by: telmich
Alright.. the answer is VERY easy:
@oxr463 I have not worked w/ alpine packages yet, but can you git (shallow) clone in the build process? This would be the correct way from our side. The tars generated by github are not an official release from my point of view.
Created by: darko-poljak
@oxr463 Well, if source is not git cloned then there is no git to generate version from.
pypi tar.gz has generated version.py included.
Raw source has no version.py.
@telmich What is the recommended way in this case?
Should we support version.py generation for raw source?
Created by: oxr463
Here is the latest results,
Created by: darko-poljak
@oxr463 What is the final conclusion?
Created by: oxr463
Oops! I thought that only applied to the git version. Let me try again.
Created by: darko-poljak
@oxr463 I think you missed one step when doing it from source:
https://www.nico.schottelius.org/software/cdist/man/latest/cdist-install.html#from-git
cdist does not come with pre-generated version.py.
Created by: oxr463
Testing again from Gentoo this time,
No version number at all?
Created by: oxr463
I downloaded the tar.gz, unpacked it, then ran
python3 setup.py build install
.Here is the APKBUILD for Alpine Linux, https://git.alpinelinux.org/aports/plain/testing/cdist/APKBUILD
Created by: darko-poljak
@oxr463 How do you
install
the latest release?Created by: darko-poljak
@oxr463 I don't get it.