changeset cee9d32f764b in cookiecutter:default
details: https://hg.tryton.org/cookiecutter?cmd=changeset&node=cee9d32f764b
description:
        Add support for Python 3.10

        and remove support for Python 3.6.

        issue11048
        review379811003
diffstat:

 {{ cookiecutter.module_name }}/.drone.yml |  12 ++++++------
 {{ cookiecutter.module_name }}/setup.py   |   4 ++--
 {{ cookiecutter.module_name }}/tox.ini    |   5 ++---
 3 files changed, 10 insertions(+), 11 deletions(-)

diffs (69 lines):

diff -r 80396a0b74aa -r cee9d32f764b {{ cookiecutter.module_name }}/.drone.yml
--- a/{{ cookiecutter.module_name }}/.drone.yml Mon Dec 13 23:09:13 2021 +0100
+++ b/{{ cookiecutter.module_name }}/.drone.yml Sat Dec 18 16:35:10 2021 +0100
@@ -42,12 +42,6 @@
 
 matrix:
     include:
-        - IMAGE: python:3.6
-          TOXENV: py36
-          DATABASE: sqlite
-        - IMAGE: python:3.6
-          TOXENV: py36
-          DATABASE: postgresql
         - IMAGE: python:3.7
           TOXENV: py37
           DATABASE: sqlite
@@ -66,3 +60,9 @@
         - IMAGE: python:3.9
           TOXENV: py39
           DATABASE: postgresql
+        - IMAGE: python:3.10
+          TOXENV: py310
+          DATABASE: sqlite
+        - IMAGE: python:3.10
+          TOXENV: py310
+          DATABASE: postgresql
diff -r 80396a0b74aa -r cee9d32f764b {{ cookiecutter.module_name }}/setup.py
--- a/{{ cookiecutter.module_name }}/setup.py   Mon Dec 13 23:09:13 2021 +0100
+++ b/{{ cookiecutter.module_name }}/setup.py   Sat Dec 18 16:35:10 2021 +0100
@@ -149,16 +149,16 @@
         'Natural Language :: Turkish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Office/Business',
         ],
     license='GPL-3',
-    python_requires='>=3.6',
+    python_requires='>=3.7',
     install_requires=requires,
     dependency_links=dependency_links,
     zip_safe=False,
diff -r 80396a0b74aa -r cee9d32f764b {{ cookiecutter.module_name }}/tox.ini
--- a/{{ cookiecutter.module_name }}/tox.ini    Mon Dec 13 23:09:13 2021 +0100
+++ b/{{ cookiecutter.module_name }}/tox.ini    Sat Dec 18 16:35:10 2021 +0100
@@ -1,5 +1,5 @@
 [tox]
-envlist = {py36,py37,py38,py39}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
+envlist = {py37,py38,py39,py310}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
 
 [testenv]
 commands =
@@ -7,9 +7,8 @@
     coverage report --include=.*/{{ cookiecutter.module_name }}/* 
--omit=*/tests/*
 deps =
     coverage
-    {py36,py37,py38,py39}-postgresql: psycopg2 >= 2.5
+    {py37,py38,py39,py310}-postgresql: psycopg2 >= 2.5
     pypy3-postgresql: psycopg2cffi >= 2.5
-    py36-sqlite: sqlitebck
 setenv =
     sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
     postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}

Reply via email to