8000 Improve manage versions py by rffontenelle · Pull Request #32 · python-docs-translations/transifex-automations · GitHub
[go: up one dir, main page]

Skip to content

Improve manage versions py #32

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

Merged
merged 18 commits into from
Jul 23, 2023
Merged

Improve manage versions py #32

merged 18 commits into from
Jul 23, 2023

Conversation

rffontenelle
Copy link
Collaborator

Rename updpyver.py script to manage_versions.py and change its use.

Changes involved:

  • manage_versions.py update_versions_file does the same as the original purpose: fetch Python versions and write to .github/versions.txt file
  • New arguments: all, current, others
  • manage_versions.py all prints all versions from file as a list. E.g., ['3.12', '3.11', '3.10', '3.9', '3.8']
  • manage_versions.py current prints only the latest version currently used in translation. E.g., '3.12'
  • manage_versions.py others prints all versions except for the current one. E.g., ['3.11', '3.10', '3.9', '3.8'] ('3.12' excluded)

@rffontenelle rffontenelle merged commit d04a18f into main Jul 23, 2023
@rffontenelle rffontenelle deleted the improve_manage_versions_py branch July 23, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0