Skip to content

Commit deda15c

Browse files
committed
📝 Update to Python 3.13
1 parent 7e5a8d1 commit deda15c

File tree

10 files changed

+119
-106
lines changed

10 files changed

+119
-106
lines changed

docs/editors.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ file as a module.
1515
.. code-block:: console
1616
1717
$ python3
18-
Python 3.10.4 (default, Mar 23 2022, 17:29:05)
19-
[GCC 9.4.0] on linux
18+
Python 3.13.0 (main, Oct 7 2024, 05:02:14) on linux
2019
Type "help", "copyright", "credits" or "license" for more information.
2120
>>>
2221
@@ -28,7 +27,7 @@ file as a module.
2827
2928
3029
$ python3
31-
Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
30+
Python 3.13.0 (main, Oct 7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
3231
Type "help", "copyright", "credits" or "license" for more information.
3332
>>>
3433
@@ -40,7 +39,7 @@ file as a module.
4039
.. tab:: Windows
4140

4241
You can start the interactive Python shell in :menuselection:`Start -->
43-
Applications --> Python 3.10`.
42+
Applications --> Python 3.13`.
4443

4544
Alternatively, you can search for the directly executable file
4645
:file:`Python.exe`, for example in
@@ -72,7 +71,7 @@ to execute on the various platforms:
7271

7372
.. code-block:: console
7473
75-
$ idle-python3.10
74+
$ idle-python3.13
7675
7776
.. tab:: Windows
7877

docs/install.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Installation
33

44
Installing Python can be easy. The first step is to download the latest version
55
from `www.python.org/downloads <https://www.python.org/downloads/>`_. The
6-
tutorial is based on Python 3.12.4, but if you have Python 3.8 or newer
6+
tutorial is based on Python 3.13.0, but if you have Python 3.8 or newer
77
installed, this should not be a problem.
88

99
.. tab:: Linux
@@ -19,9 +19,9 @@ installed, this should not be a problem.
1919

2020
.. code-block:: console
2121
22-
$ wget https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tgz
23-
$ tar xf Python-3.12.4.tgz
24-
$ cd Python-3.12.4
22+
$ wget https://www.python.org/ftp/python/3.12.4/Python-3.13.0.tgz
23+
$ tar xf Python-3.13.0.tgz
24+
$ cd Python-3.13.0
2525
$ ./configure --enable-optimizations
2626
$ sudo make altinstall
2727
@@ -56,11 +56,11 @@ installed, this should not be a problem.
5656

5757
#. Download the latest Python Releases for Windows installer, for example
5858
`Windows installer (64-bit)
59-
<https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe>`_.
59+
<https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe>`_.
6060
#. Start the installation programme. If you have the necessary
6161
authorisations, install Python with the option *Install launcher for all
6262
users*. This should install Python in
63-
:file:`C:\Program Files\Python312-64`. In addition, *Add Python 3.12 to
63+
:file:`C:\\Program Files\\Python313-64`. In addition, *Add Python 3.13 to
6464
PATH* should be activated so that this path to the Python installation is
6565
also entered in the list of ``PATH`` environment variables.
6666
#. Finally, you can now check the installation by entering the following in
@@ -69,7 +69,7 @@ installed, this should not be a problem.
6969
.. code-block:: ps1con
7070
7171
C:\> python -V
72-
Python 3.12.4
72+
Python 3.13.0
7373
7474
.. warning::
7575
One disadvantage is that you have to return to the website regularly to

docs/libs/templating/cruft.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Installation
1919

2020
.. code-block:: console
2121
22-
$ python3.8 -m pip install cruft
22+
$ python -m pip install cruft
2323
2424
Create a new project
2525
--------------------

docs/libs/templating/features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CookieCutter features
22
=====================
33

44
* Cross-platform: Windows, Mac and Linux are supported
5-
* works with Python 3.6, 3.7, 3.8 and PyPy3
5+
* Works with all current Python versions
66
* The project templates can be created for any programming language and any
77
markup format: Python, JavaScript, Ruby, ReST, CSS, HTML. Several languages
88
can also be used in the same template.

docs/libs/upload-install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module and referencing the ``name`` property that was previously ntered in
125125
.. code-block:: console
126126
127127
$ python
128-
Python 3.7.0 (default, Aug 22 2018, 15:22:29)
128+
Python 3.13.0 (main, Oct 7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
129129
130130
>>> import minimal_example
131131
>>> minimal_example.name

docs/modules/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Lines 25 to 26
9191
9292
>>> import wc, importlib
9393
>>> importlib.reload(wc)
94-
<module 'wc' from '/home/veit/.local/lib/python3.8/site-packages/wc.py'>
94+
<module 'wc' from '/home/veit/.local/lib/python3.13/site-packages/wc.py'>
9595
* as a script it is executed with the name ``__main__`` and the function
9696
``words_occur()```` is called:
9797

docs/save-data/filesystem.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Absolute path names
4545

4646
.. code-block:: console
4747
48-
C:\Program Files\Python 3.9\
48+
C:\Program Files\Python 3.13\
4949
D:\backup\2022\06\
5050
5151
And here are two absolute Linux path names and one absolute macOS path name:
@@ -54,7 +54,7 @@ Absolute path names
5454
5555
/bin/python3
5656
/cdrom/backup/2022/06/
57-
/Applications/Python\ 3.10/
57+
/Applications/Python\ 3.13/
5858
5959
Relative pathnames
6060
indicate the position of a file relative to another point in the file
@@ -78,9 +78,9 @@ Relative pathnames
7878

7979
* The relative path is appended to an existing absolute path, creating a new
8080
absolute path. If you have a Windows relative path
81-
:samp:`{Start Menu\\Programs\\Python 3.8}` and an absolute path
81+
:samp:`{Start Menu\\Programs\\Python 3.13}` and an absolute path
8282
:samp:`{C:\\Users\\Veit}`, then by appending the relative path a new
83-
absolute path: :samp:`C:\\Users\\Veit\\Start Menu\\Programs\\Python 3.8`
83+
absolute path: :samp:`C:\\Users\\Veit\\Start Menu\\Programs\\Python 3.13`
8484
can be created. If you append the same relative path to another absolute
8585
path (for example to :samp:`C:\\Users\\Tim`, you will get a new path
8686
referring to another :samp:`HOME` directory (:samp:`{Tim}`).

docs/test/hypothesis.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ fail and find bugs with little effort.
5858
5959
$ bin/python -m pytest test_hypothesis.py
6060
============================= test session starts ==============================
61-
platform darwin -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
61+
platform darwin -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0
6262
rootdir: /Users/veit/cusy/trn/python-basics/docs/test
63-
plugins: hypothesis-6.23.2
63+
plugins: hypothesis-6.114.1
6464
collected 1 item
6565
6666
test_hypothesis.py F [100%]
@@ -98,9 +98,9 @@ fail and find bugs with little effort.
9898
9999
C:> Scripts\python -m pytest test_hypothesis.py
100100
============================= test session starts ==============================
101-
platform win32 -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
101+
platform win32 -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0
102102
rootdir: C:\Users\veit\python-basics\docs\test
103-
plugins: hypothesis-6.23.2
103+
plugins: plugins: hypothesis-6.114.1
104104
collected 1 item
105105
106106
test_hypothesis.py F [100%]

docs/test/pytest/debug.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ in our :file:`tox.ini` for Items:
132132
:emphasize-lines: 11
133133
134134
[tox]
135-
envlist = py38, py39, py310, py311
135+
envlist = py39, py310, py311, py312, py313
136136
isolated_build = True
137137
skip_missing_interpreters = True
138138
@@ -145,17 +145,18 @@ in our :file:`tox.ini` for Items:
145145
146146
[gh-actions]
147147
python =
148-
3.8: py38
149148
3.9: py39
150149
3.10: py310
151150
3.11: py311
151+
3.12: py312
152+
3.13: py313
152153
153-
We want to run the Python 3.11 environment and start the debugger on a failed
154-
test with ``tox -e py311 -- --pdb --no-cov``. This will take us to the pdb,
154+
We want to run the Python 3.13 environment and start the debugger on a failed
155+
test with ``tox -e py313 -- --pdb --no-cov``. This will take us to the pdb,
155156
right at the assertion that failed.
156157

157158
Once we have found and fixed the error, we can run the tox environment again
158-
with this one test error: ``tox -e py311 -- --lf --tb=no --no-cov``.
159+
with this one test error: ``tox -e py313 -- --lf --tb=no --no-cov``.
159160

160161
Overview of the most common pytest debugger options
161162
---------------------------------------------------

0 commit comments

Comments
 (0)