Closed
Description
Improve Version Management in setup.py
Current Behavior
Our current setup.py
doesn't consistently increment the version number, which can lead to conflicts when uploading to PyPI.
Proposed Solution
Update setup.py
to:
- Fetch the latest version from PyPI
- Increment the version number automatically
- Incorporate git information when available
This will ensure that each new build has a unique, incrementing version number that's always higher than what's on PyPI.
Benefits
- Prevents version conflicts with PyPI
- Automates version management
- Maintains compatibility with git-based versioning
- Works in both git and non-git environments
Implementation Details
- Add functions to fetch PyPI version and increment version
- Modify
get_version()
to use these new functions - Ensure compatibility with existing git-based versioning
Additional Notes
- This change will require adding
requests
to the project dependencies - We may need to update CI/CD pipelines to accommodate this change
Metadata
Metadata
Assignees
Labels
No labels