kopia lustrzana https://github.com/wagtail/wagtail
				
				
				
			Drop support for Python 3.7
							rodzic
							
								
									3d0282573d
								
							
						
					
					
						commit
						adde8b66f6
					
				|  | @ -20,7 +20,7 @@ concurrency: | |||
| # - test runs with USE_EMAIL_USER_MODEL=yes and DISABLE_TIMEZONE=yes | ||||
| 
 | ||||
| # Current configuration: | ||||
| # - django 3.2, python 3.7, postgres | ||||
| # - django 3.2, python 3.8, postgres | ||||
| # - django 3.2, python 3.8, mysql | ||||
| # - django 4.1, python 3.9, sqlite | ||||
| # - django 4.2, python 3.10, mysql | ||||
|  | @ -28,8 +28,8 @@ concurrency: | |||
| # - django 4.2, python 3.11, postgres, DISABLE_TIMEZONE=yes | ||||
| # - django stable/4.2.x, python 3.10, postgres (allow failures) | ||||
| # - django main, python 3.10, postgres (allow failures) | ||||
| # - elasticsearch 5, django 3.2, python 3.7, sqlite | ||||
| # - elasticsearch 6, django 3.2, python 3.7, postgres | ||||
| # - elasticsearch 5, django 3.2, python 3.8, sqlite | ||||
| # - elasticsearch 6, django 3.2, python 3.8, postgres | ||||
| # - elasticsearch 7, django 4.1, python 3.8, postgres | ||||
| # - elasticsearch 7, django 4.2, python 3.9, sqlite, USE_EMAIL_USER_MODEL=yes | ||||
| 
 | ||||
|  | @ -73,7 +73,7 @@ jobs: | |||
|     strategy: | ||||
|       matrix: | ||||
|         include: | ||||
|           - python: '3.7' | ||||
|           - python: '3.8' | ||||
|             django: 'Django>=3.2,<3.3' | ||||
|             experimental: false | ||||
|           - python: '3.11' | ||||
|  | @ -191,7 +191,7 @@ jobs: | |||
|     strategy: | ||||
|       matrix: | ||||
|         include: | ||||
|           - python: '3.7' | ||||
|           - python: '3.8' | ||||
|             django: 'Django>=3.2,<3.3' | ||||
|     steps: | ||||
|       - name: Configure sysctl limits | ||||
|  | @ -285,7 +285,7 @@ jobs: | |||
|     strategy: | ||||
|       matrix: | ||||
|         include: | ||||
|           - python: '3.7' | ||||
|           - python: '3.8' | ||||
|             django: 'Django>=3.2,<3.3' | ||||
| 
 | ||||
|     services: | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ repos: | |||
|     hooks: | ||||
|       - id: black | ||||
|         language_version: python3 | ||||
|         args: ['--target-version', 'py37'] | ||||
|         args: ['--target-version', 'py38'] | ||||
| 
 | ||||
|   - repo: https://github.com/astral-sh/ruff-pre-commit | ||||
|     rev: 'v0.0.272' | ||||
|  |  | |||
|  | @ -82,10 +82,10 @@ _(If you are reading this on GitHub, the details here may not be indicative of t | |||
| Wagtail supports: | ||||
| 
 | ||||
| -   Django 3.2.x, 4.1.x and 4.2.x | ||||
| -   Python 3.7, 3.8, 3.9, 3.10 and 3.11 | ||||
| -   Python 3.8, 3.9, 3.10 and 3.11 | ||||
| -   PostgreSQL, MySQL and SQLite (with JSON1) as database backends | ||||
| 
 | ||||
| [Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7 and earlier Django versions. | ||||
| [Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7, 3.7 and earlier Django versions. | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ If you want to add Wagtail to an existing Django project instead, see [](integra | |||
| 
 | ||||
| ### Install dependencies | ||||
| 
 | ||||
| Wagtail supports Python 3.7, 3.8, 3.9, 3.10, and 3.11. | ||||
| Wagtail supports Python 3.8, 3.9, 3.10, and 3.11. | ||||
| 
 | ||||
| To check if you have an appropriate version of Python 3, run the following command: | ||||
| 
 | ||||
|  | @ -24,7 +24,7 @@ python3 --version | |||
| py --version | ||||
| ``` | ||||
| 
 | ||||
| If none of the preceding commands return a version number, or return a version lower than 3.7, then [install Python 3](https://www.python.org/downloads/). | ||||
| If none of the preceding commands return a version number, or return a version lower than 3.8, then [install Python 3](https://www.python.org/downloads/). | ||||
| 
 | ||||
| (virtual_environment_creation)= | ||||
| 
 | ||||
|  |  | |||
|  | @ -58,8 +58,8 @@ New feature releases frequently add support for newer versions of Django and Pyt | |||
| The compatible versions of Django and Python for each Wagtail release are: | ||||
| 
 | ||||
| | Wagtail release | Compatible Django versions | Compatible Python versions | | ||||
| | --------------- | -------------------------- | -------------------------- | | ||||
| | 5.1             | 3.2, 4.1, 4.2              | 3.7, 3.8, 3.9, 3.10, 3.11  | | ||||
| | --------------- | -------------------------- |----------------------------| | ||||
| | 5.1             | 3.2, 4.1, 4.2              | 3.8, 3.9, 3.10, 3.11       | | ||||
| | 5.0             | 3.2, 4.1, 4.2              | 3.7, 3.8, 3.9, 3.10, 3.11  | | ||||
| | 4.2             | 3.2, 4.0, 4.1              | 3.7, 3.8, 3.9, 3.10, 3.11  | | ||||
| | 4.1 LTS         | 3.2, 4.0, 4.1              | 3.7, 3.8, 3.9, 3.10, 3.11  | | ||||
|  |  | |||
|  | @ -9,6 +9,8 @@ ignore = ["D100","D101","D102","D103","D105","N806","E501"] | |||
| exclude = ["wagtail/project_template/*","node_modules","venv",".venv","migrations"] | ||||
| line-length = 88 | ||||
| 
 | ||||
| target-version = "py38"  # minimum target version | ||||
| 
 | ||||
| # E: pycodestyle errors | ||||
| # F: Pyflakes | ||||
| # I: isort | ||||
|  |  | |||
							
								
								
									
										3
									
								
								setup.py
								
								
								
								
							
							
						
						
									
										3
									
								
								setup.py
								
								
								
								
							|  | @ -106,7 +106,6 @@ https://github.com/wagtail/wagtail/.", | |||
|         "Operating System :: OS Independent", | ||||
|         "Programming Language :: Python", | ||||
|         "Programming Language :: Python :: 3", | ||||
|         "Programming Language :: Python :: 3.7", | ||||
|         "Programming Language :: Python :: 3.8", | ||||
|         "Programming Language :: Python :: 3.9", | ||||
|         "Programming Language :: Python :: 3.10", | ||||
|  | @ -118,7 +117,7 @@ https://github.com/wagtail/wagtail/.", | |||
|         "Framework :: Wagtail", | ||||
|         "Topic :: Internet :: WWW/HTTP :: Site Management", | ||||
|     ], | ||||
|     python_requires=">=3.7", | ||||
|     python_requires=">=3.8", | ||||
|     install_requires=install_requires, | ||||
|     extras_require={"testing": testing_extras, "docs": documentation_extras}, | ||||
|     entry_points=""" | ||||
|  |  | |||
							
								
								
									
										3
									
								
								tox.ini
								
								
								
								
							
							
						
						
									
										3
									
								
								tox.ini
								
								
								
								
							|  | @ -2,7 +2,7 @@ | |||
| skipsdist = True | ||||
| usedevelop = True | ||||
| 
 | ||||
| envlist = py{37,38,39,310,311}-dj{32,41,42,42stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz}, | ||||
| envlist = py{38,39,310,311}-dj{32,41,42,42stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz}, | ||||
| 
 | ||||
| [testenv] | ||||
| install_command = pip install -e ".[testing]" -U {opts} {packages} | ||||
|  | @ -13,7 +13,6 @@ commands = | |||
|     noelasticsearch: coverage run runtests.py {posargs} | ||||
| 
 | ||||
| basepython = | ||||
|     py37: python3.7 | ||||
|     py38: python3.8 | ||||
|     py39: python3.9 | ||||
|     py310: python3.10 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 zerolab
						zerolab