Merge pull request #3023 from areski/fix_upgrade_py39

This commit is contained in:
Bruno Alla 2021-04-09 17:47:29 +01:00 committed by GitHub
commit 13daafe9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 30 additions and 30 deletions

View File

@ -12,14 +12,14 @@ jobs:
fail-fast: false
matrix:
tox-env:
- py38
- py39
- black-template
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install -U pip
@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Docker ${{ matrix.script.name }}
run: sh tests/test_docker.sh ${{ matrix.script.args }}
@ -80,6 +80,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Bare Metal ${{ matrix.script.name }}
run: sh tests/test_bare.sh ${{ matrix.script.args }}

View File

@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install pre-commit
run: pip install pre-commit

View File

@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View File

@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View File

@ -38,9 +38,9 @@ To run all tests using various versions of python in virtualenvs defined in tox.
It is possible to test with a specific version of python. To do this, the command
is::
$ tox -e py38
$ tox -e py39
This will run py.test with the python3.8 interpreter, for example.
This will run py.test with the python3.9 interpreter, for example.
To run a particular test with tox for against your current Python version::

View File

@ -41,7 +41,7 @@ Features
---------
* For Django 3.1
* Works with Python 3.8
* Works with Python 3.9
* Renders Django projects with 100% starting test coverage
* Twitter Bootstrap_ v4 (`maintained Foundation fork`_ also available)
* 12-Factor_ based settings via django-environ_

View File

@ -35,7 +35,7 @@ Make sure your project is fully committed and pushed up to Bitbucket or Github o
git clone <my-repo-url> # you can also use hg
cd my-project-name
mkvirtualenv --python=/usr/bin/python3.8 my-project-name
mkvirtualenv --python=/usr/bin/python3.9 my-project-name
pip install -r requirements/production.txt # may take a few minutes

View File

@ -9,7 +9,7 @@ Setting Up Development Environment
Make sure to have the following on your host:
* Python 3.8
* Python 3.9
* PostgreSQL_.
* Redis_, if using Celery
* Cookiecutter_
@ -18,7 +18,7 @@ First things first.
#. Create a virtualenv: ::
$ python3.8 -m venv <virtual env path>
$ python3.9 -m venv <virtual env path>
#. Activate the virtualenv you have just created: ::

View File

@ -35,7 +35,7 @@ if "{{ cookiecutter.use_docker }}".lower() == "n":
if python_major_version == 2:
print(
WARNING + "You're running cookiecutter under Python 2, but the generated "
"project requires Python 3.8+. Do you want to proceed (y/n)? " + TERMINATOR
"project requires Python 3.9+. Do you want to proceed (y/n)? " + TERMINATOR
)
yes_options, no_options = frozenset(["y"]), frozenset(["n"])
while True:

View File

@ -40,7 +40,7 @@ setup(
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development",
],

View File

@ -1,6 +1,6 @@
[tox]
skipsdist = true
envlist = py38,black-template
envlist = py39,black-template
[testenv]
deps = -rrequirements.txt

View File

@ -23,10 +23,10 @@ jobs:
- name: Checkout Code Repository
uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
# Run all pre-commit hooks on all the files.
# Getting only staged files can be tricky in case a new PR is opened
@ -80,10 +80,10 @@ jobs:
run: docker-compose -f local.yml down
{%- else %}
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Get pip cache dir
id: pip-cache-location

View File

@ -13,7 +13,7 @@ variables:
flake8:
stage: lint
image: python:3.8-alpine
image: python:3.9-alpine
before_script:
- pip install -q flake8
script:
@ -35,7 +35,7 @@ pytest:
script:
- docker-compose -f local.yml run django pytest
{%- else -%}
image: python:3.8
image: python:3.9
tags:
- python
services:

View File

@ -4,6 +4,6 @@ sphinx:
configuration: docs/conf.py
python:
version: 3.8
version: 3.9
install:
- requirements: requirements/local.txt

View File

@ -2,7 +2,7 @@ dist: focal
language: python
python:
- "3.8"
- "3.9"
services:
- {% if cookiecutter.use_docker == 'y' %}docker{% else %}postgresql{% endif %}
@ -37,7 +37,7 @@ jobs:
- sudo apt-get install -qq libsqlite3-dev libxml2 libxml2-dev libssl-dev libbz2-dev wget curl llvm
language: python
python:
- "3.8"
- "3.9"
install:
- pip install -r requirements/local.txt
script:

View File

@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.8-slim-buster
ARG PYTHON_VERSION=3.9-slim-buster
# define an alias for the specfic python version used in this file.
FROM python:${PYTHON_VERSION} as python

View File

@ -1,4 +1,4 @@
FROM python:3.8-slim-buster
FROM python:3.9-slim-buster
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1

View File

@ -11,7 +11,7 @@ RUN npm run build
{%- endif %}
ARG PYTHON_VERSION=3.8-slim-buster
ARG PYTHON_VERSION=3.9-slim-buster
# define an alias for the specfic python version used in this file.
FROM python:${PYTHON_VERSION} as python

View File

@ -1 +1 @@
python-3.8.7
python-3.9.4

View File

@ -7,7 +7,7 @@ max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv
[mypy]
python_version = 3.8
python_version = 3.9
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True