22:: ABOUT
33:: Script to upgrade Python for Artisan Windows CI builds
44::
5+ :: COPYRIGHT (C) 2010-2026 The Artisan team represented by
6+ :: Marko Luther <marko.luther@gmx.net> (maintainer) and all contributors
7+ ::
58:: LICENSE
6- :: This program or module is free software: you can redistribute it and/or
7- :: modify it under the terms of the GNU General Public License as published
8- :: by the Free Software Foundation, either version 2 of the License, or
9- :: version 3 of the License, or (at your option) any later versison. It is
10- :: provided for educational purposes and is distributed in the hope that
11- :: it will be useful, but WITHOUT ANY WARRANTY; without even the implied
12- :: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13- :: the GNU General Public License for more details.
9+ :: This program or module is free software: you can redistribute it and/or modify
10+ :: it under the terms of the GNU Affero General Public License as
11+ :: published by the Free Software Foundation, either version 3 of the
12+ :: License, or (at your option) any later version.
13+ ::
14+ :: This program is distributed in the hope that it will be useful,
15+ :: but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ :: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ :: GNU Affero General Public License for more details.
18+ ::
19+ :: You should have received a copy of the GNU Affero General Public License
20+ :: along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ ::
22+ :: MAINTAINER
23+ :: Marko Luther, 2026
1424::
1525:: AUTHOR
1626:: Dave Baxter 2025
1727::
1828:: Upgrade the Python version to PYUPGRADE_WIN_VER whenever the environment variable exists
19- :: and the upgrade version is greater than current Python version.
29+ :: and the upgrade version is greater than current Python version.
2030::
21- :: Requires environment variables set in .appveyor.yml:
31+ :: Requires environment variables set in .appveyor.yml:
2232:: PYUPGRADE_WIN_VER set to the full version number for target upgrade, or blank, or non-existent.
2333:: PREV_PYTHON_PATH set to the python.exe path corresponding to the original environment: PYTHON_V variable.
2434:: Creates local scope environment variables: PREV_PYTHON_VER, INSTALLED_PYTHON_VER not available outside this script.
@@ -41,7 +51,7 @@ if exist "%PREV_PYTHON_PATH%\python.exe" (
4151:: Log an informational message
4252echo *** Current Python Version: !PREV_PYTHON_VER! Upgrade to: !PYUPGRADE_WIN_VER! requested
4353
44- :: Check if both current and upgrade full versions match
54+ :: Check if both current and upgrade full versions match
4555if " !PREV_PYTHON_VER! " == " !PYUPGRADE_WIN_VER! " (
4656 echo *** Versions are the same. No need to upgrade.
4757 goto End
@@ -67,7 +77,7 @@ if !major_py! lss !major_up! (
6777 goto NoUpgrade
6878)
6979if !minor_py! lss !minor_up! (
70- echo PYTHON_PATH !PYTHON_PATH!
80+ echo PYTHON_PATH !PYTHON_PATH!
7181 if exist " !PYTHON_PATH! \python.exe" (
7282 echo !PYTHON_PATH! \python.exe EXISTS
7383 for /f " tokens=2 delims= " %%a in ('!PYTHON_PATH! \python -V 2^ > ^ &1') do (
0 commit comments