René's URL Explorer Experiment


Title: Read python version from pyproject.toml (fix #542) by dariocurr · Pull Request #669 · actions/setup-python · GitHub

Open Graph Title: Read python version from pyproject.toml (fix #542) by dariocurr · Pull Request #669 · actions/setup-python

X Title: Read python version from pyproject.toml (fix #542) by dariocurr · Pull Request #669 · actions/setup-python

Description: Hi, I'm Dario, a tech PO at hiop. Description: This PR enables the action to read the Python version from the pyproject.toml file (or another TOML file if specified) both for standard python (PEP 621, PEP 508) and poetry (https://python-poetry.org/docs/basic-usage/). More in detail, it deserializes the TOML files using the toml package and then navigates it to extract the Python versions. Related issue: #542 Check list: Mark if documentation changes are required. Mark if tests were added or updated to cover the changes. Notes: Is there a specific reason not to test the src/setup-python.ts? I didn't find any test related to those functions >=3.9,<=3.10 bounds are transformed in semver-like bounds In addition to the tests for this new feature, I added some missing tests. For example. .python-version file used if no parameters are provided .github/workflows/test-python.yml python version provided with bounds .github/workflows/e2e-tests.yml

Open Graph Description: Hi, I'm Dario, a tech PO at hiop. Description: This PR enables the action to read the Python version from the pyproject.toml file (or another TOML file if specified) both for standard python (P...

X Description: Hi, I&#39;m Dario, a tech PO at hiop. Description: This PR enables the action to read the Python version from the pyproject.toml file (or another TOML file if specified) both for standard pytho...

Opengraph URL: https://github.com/actions/setup-python/pull/669

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ed79f203-aac1-a74c-97dc-f048ff0ca89b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9BA:23CDC6:442A48:5C7FB7:69696CC0
html-safe-nonced6d9c8c05a3d3fc850091f447f0249b8397c6bc26d62e06c4816a220182177e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJBOjIzQ0RDNjo0NDJBNDg6NUM3RkI3OjY5Njk2Q0MwIiwidmlzaXRvcl9pZCI6Ijk5NDg5ODU0NDE4MDE2MTcyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac99ff0bdefa42a99bef25c7a840a85d0446b59f15786ad05ea6a7180c7dd60707
hovercard-subject-tagpull_request:1359849008
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/actions/setup-python/pull/669/files
twitter:imagehttps://avatars.githubusercontent.com/u/48800335?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/48800335?s=400&v=4
og:image:altHi, I'm Dario, a tech PO at hiop. Description: This PR enables the action to read the Python version from the pyproject.toml file (or another TOML file if specified) both for standard python (P...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/pull/669/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fpull%2F669%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fpull%2F669%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/pull/669/files
Reloadhttps://github.com/actions/setup-python/pull/669/files
Reloadhttps://github.com/actions/setup-python/pull/669/files
actions https://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-python
Fork 692 https://github.com/login?return_to=%2Factions%2Fsetup-python
Star 2.1k https://github.com/login?return_to=%2Factions%2Fsetup-python
Code https://github.com/actions/setup-python
Issues 39 https://github.com/actions/setup-python/issues
Pull requests 36 https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects 0 https://github.com/actions/setup-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/actions/setup-python/security
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
Insights https://github.com/actions/setup-python/pulse
Code https://github.com/actions/setup-python
Issues https://github.com/actions/setup-python/issues
Pull requests https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Factions%2Fsetup-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Factions%2Fsetup-python%2Fissues%2Fnew%2Fchoose
dmitry-shibanovhttps://github.com/dmitry-shibanov
actions:mainhttps://github.com/actions/setup-python/tree/main
Conversation 30 https://github.com/actions/setup-python/pull/669
Commits 8 https://github.com/actions/setup-python/pull/669/commits
Checks 0 https://github.com/actions/setup-python/pull/669/checks
Files changed https://github.com/actions/setup-python/pull/669/files
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
Read python version from pyproject.toml (fix #542) https://github.com/actions/setup-python/pull/669/files#top
Show all changes 8 commits https://github.com/actions/setup-python/pull/669/files
0422415 Add TOML dependency dariocurr Jun 6, 2023 https://github.com/actions/setup-python/pull/669/commits/0422415e8a74fb04f6e3ba3c6a254129f4039ebb
c242fc9 Add examples for version ranges and pyproject.toml dariocurr Jun 6, 2023 https://github.com/actions/setup-python/pull/669/commits/c242fc955108229d5836c5624c30346a53e624db
e1bb6df Add tests for python version files dariocurr Jun 6, 2023 https://github.com/actions/setup-python/pull/669/commits/e1bb6df076bcf39164185e7f5f9570f0731a8854
3e4f089 Add tests for python version files dariocurr Jun 6, 2023 https://github.com/actions/setup-python/pull/669/commits/3e4f08959a279d30b447fcfb8f4a142fd8a3b98e
5fe4cfd Add utils to extract python version from files dariocurr Jun 6, 2023 https://github.com/actions/setup-python/pull/669/commits/5fe4cfd090d948303242f3a53b54834ec54fdb05
6f8266d Replace toml with @iarna/toml dariocurr Jun 11, 2023 https://github.com/actions/setup-python/pull/669/commits/6f8266d242a075e81d1967d6165cd0af7e56d049
556ac3e Remove pyproject.toml from default values dariocurr Jun 27, 2023 https://github.com/actions/setup-python/pull/669/commits/556ac3e0adad9f58a4aba5e0e5500b88dc997496
c4ab19b Allow python version bounds just with TOMLs dariocurr Jun 28, 2023 https://github.com/actions/setup-python/pull/669/commits/c4ab19b63a2a7f1f5449c385292e7ce0b8010530
Clear filters https://github.com/actions/setup-python/pull/669/files
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
e2e-tests.yml https://github.com/actions/setup-python/pull/669/files#diff-194218c48b9a0cdd03974145733804c2d992ca818529fe2fa69a501d8b5b1cc3
test-python.yml https://github.com/actions/setup-python/pull/669/files#diff-70450661fa435b39492aab8bf651281084183f36f0a59598f05fec2b4523204b
toml.dep.yml https://github.com/actions/setup-python/pull/669/files#diff-7c07eaf2bb23d4fd78816cac031fd7d6277d9a1729ea90f362ec079d0f332f50
utils.test.ts https://github.com/actions/setup-python/pull/669/files#diff-9f2fb172b8d9503044ee436e37d9b204964fabb3b8cd9d1adf2827e8618e26b2
index.js https://github.com/actions/setup-python/pull/669/files#diff-8164d45a0a98040cbf5161c5b6e696920163460bea5f24100a7a01720c4a9a91
advanced-usage.md https://github.com/actions/setup-python/pull/669/files#diff-e8f077830705686ec3300dbcec8ee6ac6345ae9a2965508ff3abc4146d520bf8
package-lock.json https://github.com/actions/setup-python/pull/669/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
package.json https://github.com/actions/setup-python/pull/669/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
setup-python.ts https://github.com/actions/setup-python/pull/669/files#diff-0ac8bdebd0ca13af3640499ecf1203abc825161011f13f9ca45c734bfe80128e
utils.ts https://github.com/actions/setup-python/pull/669/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
.github/workflows/e2e-tests.ymlhttps://github.com/actions/setup-python/pull/669/files#diff-194218c48b9a0cdd03974145733804c2d992ca818529fe2fa69a501d8b5b1cc3
View file https://github.com/actions/setup-python/blob/c4ab19b63a2a7f1f5449c385292e7ce0b8010530/.github/workflows/e2e-tests.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/669/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/669/files#diff-194218c48b9a0cdd03974145733804c2d992ca818529fe2fa69a501d8b5b1cc3
dmitry-shibanovhttps://github.com/dmitry-shibanov
Jun 19, 2023https://github.com/actions/setup-python/pull/669/files#r1234284438
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dariocurrhttps://github.com/dariocurr
Jun 21, 2023https://github.com/actions/setup-python/pull/669/files#r1237256756
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dariocurrhttps://github.com/dariocurr
Jun 23, 2023https://github.com/actions/setup-python/pull/669/files#r1239848303
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dmitry-shibanovhttps://github.com/dmitry-shibanov
Jun 23, 2023https://github.com/actions/setup-python/pull/669/files#r1239914499
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dariocurrhttps://github.com/dariocurr
Jun 23, 2023https://github.com/actions/setup-python/pull/669/files#r1239974816
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
semverhttps://www.npmjs.com/package/semver
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dmitry-shibanovhttps://github.com/dmitry-shibanov
Jun 27, 2023https://github.com/actions/setup-python/pull/669/files#r1243359102
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@dariocurrhttps://github.com/dariocurr
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dariocurrhttps://github.com/dariocurr
Jun 27, 2023https://github.com/actions/setup-python/pull/669/files#r1243405882
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://private-user-images.githubusercontent.com/48800335/249098598-fb791689-8715-4e86-ad01-474af2dfe849.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg1MTcxMDEsIm5iZiI6MTc2ODUxNjgwMSwicGF0aCI6Ii80ODgwMDMzNS8yNDkwOTg1OTgtZmI3OTE2ODktODcxNS00ZTg2LWFkMDEtNDc0YWYyZGZlODQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE1VDIyNDAwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM3MTNjMGM5ZmUzOTYzNzE3OWM3Y2I4YTYxNzA1ODBlMDY1ODEwOWU4ODI5YWNiYmFhYjA2NmRhYjcxMmE1YTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bG5WxJPQ9zQ_HCklyIs74xDfL8RcAXuzxCWPJlfxr-Q
https://github.com/dariocurr/setup-python/blob/6f8266d242a075e81d1967d6165cd0af7e56d049/src/setup-python.ts#L73https://github.com/dariocurr/setup-python/blob/6f8266d242a075e81d1967d6165cd0af7e56d049/src/setup-python.ts#L73
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dmitry-shibanovhttps://github.com/dmitry-shibanov
Jun 27, 2023https://github.com/actions/setup-python/pull/669/files#r1243574284
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
dariocurrhttps://github.com/dariocurr
Jun 28, 2023https://github.com/actions/setup-python/pull/669/files#r1244827605
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
39c1ae5https://github.com/actions/setup-python/commit/39c1ae56adb41c60f0c11535e5a7a1b0329d3c7f
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
.github/workflows/test-python.ymlhttps://github.com/actions/setup-python/pull/669/files#diff-70450661fa435b39492aab8bf651281084183f36f0a59598f05fec2b4523204b
View file https://github.com/actions/setup-python/blob/c4ab19b63a2a7f1f5449c385292e7ce0b8010530/.github/workflows/test-python.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/669/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/669/files#diff-70450661fa435b39492aab8bf651281084183f36f0a59598f05fec2b4523204b
https://github.com/actions/setup-python/pull/669/files#diff-70450661fa435b39492aab8bf651281084183f36f0a59598f05fec2b4523204b
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
.licenses/npm/@iarna/toml.dep.ymlhttps://github.com/actions/setup-python/pull/669/files#diff-7c07eaf2bb23d4fd78816cac031fd7d6277d9a1729ea90f362ec079d0f332f50
View file https://github.com/actions/setup-python/blob/c4ab19b63a2a7f1f5449c385292e7ce0b8010530/.licenses/npm/%40iarna/toml.dep.yml
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
__tests__/utils.test.tshttps://github.com/actions/setup-python/pull/669/files#diff-9f2fb172b8d9503044ee436e37d9b204964fabb3b8cd9d1adf2827e8618e26b2
View file https://github.com/actions/setup-python/blob/c4ab19b63a2a7f1f5449c385292e7ce0b8010530/__tests__/utils.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/669/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/669/files#diff-9f2fb172b8d9503044ee436e37d9b204964fabb3b8cd9d1adf2827e8618e26b2
https://github.com/actions/setup-python/pull/669/files#diff-9f2fb172b8d9503044ee436e37d9b204964fabb3b8cd9d1adf2827e8618e26b2
Please reload this pagehttps://github.com/actions/setup-python/pull/669/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.