add support for python-version-file by adilosa · Pull Request #336 · actions/setup-python

@adilosa

lukasz-mitka

@adilosa

@adilosa

* upstream/main: (33 commits)
  Fix virtual-env toolcache links
  Updated @actions/cache (actions#382)
  ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (actions#379)
  Cache hit output (actions#373)
  Add pyton-version to setup PyPy output (actions#365)
  Rework pipenv caching test (actions#375)
  Update README.md to fix setup-python version  in example (actions#368)
  dist fix (actions#367)
  Cache on ghes (actions#363)
  Update dist
  Use `\n` instead of `os.EOL`
  Update dist
  Initialise pyproject.toml
  Build and format
  Remove console.log
  Remove unused file
  Reduce test matrix
  Parse values from poetry
  Release
  Add more tests
  ...

marko-zivic-93

dmitry-shibanov

vsafonkin

dmitry-shibanov

brcrista

vsafonkin

marko-zivic-93

@adilosa

* python-version overrides python-version-file, like setup-node
* checks '.python-version' by default if nothing else specified

@adilosa

@adilosa

@adilosa

@adilosa

@adilosa

@adilosa

vsafonkin

marko-zivic-93

@adilosa

@adilosa

* upstream/main:
  Fix output for prerelease version of poetry (actions#409)
  Update zeit/ncc to vercel/ncc (actions#393)
  Change PyPy version to rebuild cache

@adilosa

This was referenced

Jun 13, 2022

tdfacer pushed a commit to ifit/setup-python that referenced this pull request

Oct 7, 2025
* add support for python-version-file

* Update action.yml

* update to v4, remove python-version default

* python-version overrides python-version-file, like setup-node
* checks '.python-version' by default if nothing else specified

* update tests, update to checkout@v3

* update build

* appease the linter

* remove old test for default python version

* revert readme changes

* update build