Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was 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

Description

@redeboer

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.

Metadata

Metadata

Assignees

Labels

✨ FeatureNew feature added to the package📝 DocsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions