Skip to content
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

Add script for generating constraints for all supported Python versions #6

Open
redeboer opened this issue Feb 8, 2023 · 0 comments
Assignees
Labels
📝 Docs Improvements or additions to documentation ✨ Feature New feature added to the package

Comments

@redeboer
Copy link
Member

redeboer commented Feb 8, 2023

It should be possible to generate constraint files for all Python versions in a oneliner or script, using Conda. For instance:

supported_versions=(3.7 3.8 3.9 3.10 3.11)
for version in ${supported_versions[@]}; do
  conda create -n py${version} "python==${version}.*" --force -y
  conda activate py${version}
  pip install git+https://github.com/ComPWA/update-pip-constraints@main
  update-pip-constraints
done

In addition, supported_versions could be determined from setup.cfg, as happens in ComPWA/actions/create-python-version-matrix@v1.

@redeboer redeboer self-assigned this Feb 8, 2023
@redeboer redeboer added 📝 Docs Improvements or additions to documentation ✨ Feature New feature added to the package labels Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Docs Improvements or additions to documentation ✨ Feature New feature added to the package
Projects
None yet
Development

No branches or pull requests

1 participant