Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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