mirror of
https://github.com/django-components/django-components.git
synced 2025-10-17 17:27:13 +00:00
Include testing version upgrades.
This commit is contained in:
commit
266b1a13c5
1 changed files with 24 additions and 1 deletions
|
@ -165,6 +165,23 @@ def build_readme(python_to_django):
|
|||
return version_lines
|
||||
|
||||
|
||||
def build_pyenv(python_to_django):
|
||||
lines = []
|
||||
all_python_versions = python_to_django.keys()
|
||||
for python_version in all_python_versions:
|
||||
lines.append(
|
||||
f'pyenv install -s {env_format(python_version, divider=".")}'
|
||||
)
|
||||
|
||||
lines.append(
|
||||
f'pyenv local {" ".join(env_format(version, divider=".") for version in all_python_versions)}'
|
||||
)
|
||||
|
||||
lines.append("tox -p")
|
||||
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
def main():
|
||||
django_to_python = get_supported_versions(
|
||||
"https://docs.djangoproject.com/en/dev/faq/install/"
|
||||
|
@ -198,10 +215,16 @@ def main():
|
|||
print()
|
||||
print()
|
||||
|
||||
print("Add this to README:\n")
|
||||
print("Add this to the middle of README.md:\n")
|
||||
readme = build_readme(python_to_django)
|
||||
print(readme)
|
||||
print()
|
||||
print()
|
||||
|
||||
print("And this to the end of README.md:\n")
|
||||
pyenv = build_pyenv(python_to_django)
|
||||
print(pyenv)
|
||||
print()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue