Skip to content

feat(unix): add Python version constraints and development environment #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fortran01
Copy link
Contributor

  • Add python_requires=">=3.6,<3.12" to setup.py to enforce compatibility
  • Add Python version classifiers for better PyPI metadata
  • Document Python version requirements in README.md
  • Add dev-env.sh script for easy development environment setup

This change addresses the incompatibility with Python 3.12+ due to Ansible 2.9.x dependency limitations. The project now officially supports Python 3.6 through 3.11.

- Add python_requires=">=3.6,<3.12" to setup.py to enforce compatibility
- Add Python version classifiers for better PyPI metadata
- Document Python version requirements in README.md
- Add dev-env.sh script for easy development environment setup

This change addresses the incompatibility with Python 3.12+ due to
Ansible 2.9.x dependency limitations. The project now officially
supports Python 3.6 through 3.11.
@fortran01 fortran01 requested a review from SamDesmondKing July 2, 2025 15:38
@justinbarclay justinbarclay requested a review from Copilot July 2, 2025 17:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds explicit Python version constraints and tooling for setting up a consistent development environment.

  • Bumps package version and enforces Python 3.6–3.11 compatibility in setup.py
  • Introduces a dev-env.sh script for initializing Python with pyenv and installing the package in editable mode
  • Documents Python requirements in README.md

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
unix/setup.py Bumped version, added python_requires and PyPI classifiers
unix/dev-env.sh New script to bootstrap a development environment
unix/README.md Added “Requirements” section with supported Python versions
Comments suppressed due to low confidence (2)

unix/dev-env.sh:33

  • The script echoes a machine-stats command, but the console entry point is defined as machine_stats. Update the message or add a hyphenated entry point for consistency.
echo "  machine-stats --help"

unix/dev-env.sh:1

  • [nitpick] This new setup script introduces logic for environment setup but has no automated tests. Consider adding a CI job or integration test to verify pyenv initialization and editable install behavior.
#!/bin/bash

- Change the verification method for machine-stats installation from pip list to pip show for improved accuracy.
Copy link
Contributor

@SamDesmondKing SamDesmondKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for taking care of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants