Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 01:38 AM
My issue appears to have been uploading wheel with identical version numbers during development.
I've added dynamic versioning to the packages using git hash and timestamp to ensure the latest is installed and runs.
def get_version(version=__version__):
try:
import subprocess
git_hash = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode("ascii").strip()
version += f"+{git_hash}-{int(time.time())}"
except Exception as e:
print(e)
return version