Repository: pyenv-win/pyenv-win (language: python)

Issue:
bug: Wrong shim is created for python 3.10
### Description
- [x] Platform information: latest Win11
- [x] OS architecture: amd64
- [x] pyenv version: 2.64.11
- [x] Python version: Python 3.10.0 (via pyenv global)
- [x] C Compiler information MSBUILD 16.11.0.36601

I use pyenv on windows, I installed it via scoop. 

```
pyenv versions
  3.10.0
  3.8.0
  3.9.7
```

After installation of python 3.10.0 installation folder `C:\Users\warch\scoop\apps\pyenv\current\pyenv-win\shims` does not have `python3.10` but has `python3.1` and `pip3.10`:

```
PS C:\Users\warch\scoop\apps\pyenv\current\pyenv-win\shims> dir

    Directory: C:\Users\warch\scoop\apps\pyenv\current\pyenv-win\shims

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---           12/2/2021  1:24 PM             45 can_logger
-a---           12/2/2021  1:24 PM             53 can_logger.bat
-a---           12/2/2021  1:24 PM             45 can_player
-a---           12/2/2021  1:24 PM             53 can_player.bat
-a---           12/2/2021  1:24 PM             45 can_viewer
-a---           12/2/2021  1:24 PM             53 can_viewer.bat
-a---           12/2/2021  1:24 PM             45 cantools
-a---           12/2/2021  1:24 PM             53 cantools.bat
-a---           12/2/2021  1:24 PM             45 easy_install
-a---           12/2/2021  1:24 PM             45 easy_install-3.8
-a---           12/2/2021  1:24 PM             53 easy_install-3.8.bat
-a---           12/2/2021  1:24 PM             53 easy_install.bat
-a---           12/2/2021  1:24 PM             45 pip
-a---           12/2/2021  1:24 PM             53 pip.bat
-a---           12/2/2021  1:24 PM             45 pip3
-a---           12/2/2021  1:24 PM             45 pip3.10
-a---           12/2/2021  1:24 PM             53 pip3.10.bat
-a---           12/2/2021  1:24 PM             45 pip3.8
-a---           12/2/2021  1:24 PM             53 pip3.8.bat
-a---           12/2/2021  1:24 PM             45 pip3.9
-a---           12/2/2021  1:24 PM             53 pip3.9.bat
-a---           12/2/2021  1:24 PM             53 pip3.bat
-a---           12/2/2021  1:24 PM             45 python
-a---           12/2/2021  1:24 PM             53 python.bat
-a---           12/2/2021  1:24 PM             45 python3
-a---           12/2/2021  1:24 PM             45 python3.1
-a---           12/2/2021  1:24 PM             53 python3.1.bat
-a---           12/2/2021  1:24 PM             45 python3.8
-a---           12/2/2021  1:24 PM             53 python3.8.bat
-a---           12/2/2021  1:24 PM             45 python3.9
-a---           12/2/2021  1:24 PM             53 python3.9.bat
-a---           12/2/2021  1:24 PM             53 python3.bat
-a---           12/2/2021  1:24 PM             45 python31
-a---           12/2/2021  1:24 PM             53 python31.bat
-a---           12/2/2021  1:24 PM             45 python38
-a---           12/2/2021  1:24 PM             53 python38.bat
-a---           12/2/2021  1:24 PM             45 python39
-a---           12/2/2021  1:24 PM             53 python39.bat
-a---           12/2/2021  1:24 PM             45 pythonw
-a---           12/2/2021  1:24 PM             53 pythonw.bat
-a---           12/2/2021  1:24 PM             45 pythonw3
-a---           12/2/2021  1:24 PM             45 pythonw3.1
-a---           12/2/2021  1:24 PM             53 pythonw3.1.bat
-a---           12/2/2021  1:24 PM             45 pythonw3.8
-a---           12/2/2021  1:24 PM             53 pythonw3.8.bat
-a---           12/2/2021  1:24 PM             45 pythonw3.9
-a---           12/2/2021  1:24 PM             53 pythonw3.9.bat
-a---           12/2/2021  1:24 PM             53 pythonw3.bat
-a---           12/2/2021  1:24 PM             45 pythonw31
-a---           12/2/2021  1:24 PM             53 pythonw31.bat
-a---           12/2/2021  1:24 PM             45 pythonw38
-a---           12/2/2021  1:24 PM             53 pythonw38.bat
-a---           12/2/2021  1:24 PM             45 pythonw39
-a---           12/2/2021  1:24 PM             53 pythonw39.bat
```

The issue is that pyenv creates shim with a name `python3.1` instead of `python3.10`. 

UPD: "pyenv rehash" does not create python3.10 shim.


Discussion / hints:

Fix patch:
diff --git a/pyenv-win/.versions_cache.xml b/pyenv-win/.versions_cache.xml
index b047907e..24876eed 100644
--- a/pyenv-win/.versions_cache.xml
+++ b/pyenv-win/.versions_cache.xml
@@ -2675,6 +2675,46 @@
 		<file>python-3.10.2-amd64-webinstall.exe</file>
 		<URL>https://www.python.org/ftp/python/3.10.2/python-3.10.2-amd64-webinstall.exe</URL>
 	</version>
+	<version x64="false" webInstall="true" msi="false">
+		<code>3.11.0a1-win32</code>
+		<file>python-3.11.0a1-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a1-webinstall.exe</URL>
+	</version>
+	<version x64="true" webInstall="true" msi="false">
+		<code>3.11.0a1</code>
+		<file>python-3.11.0a1-amd64-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a1-amd64-webinstall.exe</URL>
+	</version>
+	<version x64="false" webInstall="true" msi="false">
+		<code>3.11.0a2-win32</code>
+		<file>python-3.11.0a2-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a2-webinstall.exe</URL>
+	</version>
+	<version x64="true" webInstall="true" msi="false">
+		<code>3.11.0a2</code>
+		<file>python-3.11.0a2-amd64-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a2-amd64-webinstall.exe</URL>
+	</version>
+	<version x64="false" webInstall="true" msi="false">
+		<code>3.11.0a3-win32</code>
+		<file>python-3.11.0a3-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a3-webinstall.exe</URL>
+	</version>
+	<version x64="true" webInstall="true" msi="false">
+		<code>3.11.0a3</code>
+		<file>python-3.11.0a3-amd64-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a3-amd64-webinstall.exe</URL>
+	</version>
+	<version x64="false" webInstall="true" msi="false">
+		<code>3.11.0a4-win32</code>
+		<file>python-3.11.0a4-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a4-webinstall.exe</URL>
+	</version>
+	<version x64="true" webInstall="true" msi="false">
+		<code>3.11.0a4</code>
+		<file>python-3.11.0a4-amd64-webinstall.exe</file>
+		<URL>https://www.python.org/ftp/python/3.11.0/python-3.11.0a4-amd64-webinstall.exe</URL>
+	</version>
 	<version x64="false" webInstall="false" msi="false">
 		<code>3.10.3-win32</code>
 		<file>python-3.10.3.exe</file>
diff --git a/pyenv-win/libexec/pyenv-install.vbs b/pyenv-win/libexec/pyenv-install.vbs
index 1b1fb5d8..5d2ab8d0 100644
--- a/pyenv-win/libexec/pyenv-install.vbs
+++ b/pyenv-win/libexec/pyenv-install.vbs
@@ -135,8 +135,8 @@ Function deepExtract(params)
     version = params(LV_Code)
     pythonExe = installPath &"\python.exe"
     pythonwExe = installPath &"\pythonw.exe"
-    major = Left(version, 1)
-    minor = Mid(version, 3, 1)
+    major = Split(version,".")(0)
+    minor = Split(version, ".")(1)
     majorMinor = major & minor
     majorDotMinor = major &"."& minor
     objfs.CopyFile pythonExe, installPath &"\python"& major &".exe"


Test patch:
diff --git a/tests/bat_files/test_install.bat b/tests/bat_files/test_install.bat
index 49937aaf..deec6943 100644
--- a/tests/bat_files/test_install.bat
+++ b/tests/bat_files/test_install.bat
@@ -13,6 +13,8 @@ call pyenv install 3.7.2
 call pyenv rehash 3.7.2
 call pyenv install 3.9.0
 call pyenv rehash 3.9.0
+call pyenv install 3.10.0
+call pyenv rehash 3.10.0
 
 mkdir test
 cd test
diff --git a/tests/bat_files/test_uninstall.bat b/tests/bat_files/test_uninstall.bat
index 464fa70b..003e6571 100644
--- a/tests/bat_files/test_uninstall.bat
+++ b/tests/bat_files/test_uninstall.bat
@@ -9,4 +9,5 @@ call pyenv uninstall 3.5.2
 call pyenv uninstall --msi 2.7.15
 call pyenv uninstall 3.7.2
 call pyenv uninstall 3.9.0
+call pyenv uninstall 3.10.0
 
diff --git a/tests/test_pyenv_feature_install.py b/tests/test_pyenv_feature_install.py
index 79f20cde..4ca70c9d 100644
--- a/tests/test_pyenv_feature_install.py
+++ b/tests/test_pyenv_feature_install.py
@@ -29,7 +29,8 @@ def test_check_pyenv_install_list(self, setup):
         assert "3.9.0" in result
         assert "3.9.1-win32" in result
         assert "3.9.1" in result
-    
+        assert "3.10.2-win32" in result
+        assert "3.10.2" in result
     def test_check_pyenv_installation(self, setup):
         # TODO: tracking the logs of installation and checking the folder
         pass
diff --git a/tests/test_pyenv_feature_rehash.py b/tests/test_pyenv_feature_rehash.py
index 8d82f4a8..cab53e97 100644
--- a/tests/test_pyenv_feature_rehash.py
+++ b/tests/test_pyenv_feature_rehash.py
@@ -29,8 +29,9 @@ def commands(ctx):
             assert ctx.pyenv('rehash') == ("", "")
             assert_shims(ctx.pyenv_path, '3.8.6')
             assert_shims(ctx.pyenv_path, '3.8.7')
+            assert_shims(ctx.pyenv_path, '3.10.2')
         settings = {
-            'versions': ['3.8.6', '3.8.7'],
+            'versions': ['3.8.6', '3.8.7','3.10.2'],
             'global_ver': '3.8.6',
         }
         run_pyenv_test(settings, commands)
@@ -40,8 +41,9 @@ def commands(ctx):
             assert ctx.pyenv('rehash') == ("", "")
             assert_shims(ctx.pyenv_path, '3.8.6')
             assert_shims(ctx.pyenv_path, '3.9.1')
+            assert_shims(ctx.pyenv_path, '3.10.2')
         settings = {
-            'versions': ['3.8.6', '3.9.1'],
+            'versions': ['3.8.6', '3.9.1','3.10.2'],
             'global_ver': '3.8.6',
             'local_ver': '3.9.1'
         }