Skip to content

[Issue] Improve Version Management in setup.py #92

Closed
@sadhiin

Description

@sadhiin

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:

  1. Fetch the latest version from PyPI
  2. Increment the version number automatically
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions