Skip to content

Fix versioning in setup.py and update PyPI badge #1

@chigwell

Description

@chigwell

User Story
As a Python developer maintaining this package,
I want the setup.py file to use semantic versioning
so that dependency management aligns with Python packaging standards and downstream tools can interpret versions correctly.

Background
The current version format "2025.4.171239" in setup.py violates PEP 440 standards, which:

  • Prevents predictable version comparisons (e.g., pip install "eknowledge>=2025.4" fails)
  • Conflicts with PyPI's semantic version expectations, risking future deployment issues
  • Complicates automated dependency updates in CI/CD pipelines

The hardcoded version string in setup.py also lacks a clear release strategy. This directly impacts the PyPI badge URL in README.md, which currently references the non-compliant version.

Acceptance Criteria

  • Modify setup.py to use a semantic version (e.g., "0.1.0") instead of "2025.4.171239"
  • Update the PyPI badge URL in README.md to https://badge.fury.io/py/eknowledge.svg?version=0.1.0
  • Ensure the version is defined as a string (e.g., version='0.1.0')
  • Validate by running python setup.py --version and confirming semantic output
  • Verify the PyPI badge renders correctly in the updated README
  • Confirm pip install -e . works without version parsing errors

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions