Update to 6.8

This commit is contained in:
Adrià Tarroja Caubet 2023-08-17 13:38:43 +02:00
parent 87c725896e
commit 1095cd8491
6 changed files with 32 additions and 30 deletions

View File

@ -36,22 +36,6 @@ services:
matrix:
include:
- IMAGE: python:3.5
TOXENV: py35
DATABASE: sqlite
- IMAGE: python:3.5
TOXENV: py35
DATABASE: postgresql
- IMAGE: python:3.6
TOXENV: py36
DATABASE: sqlite
- IMAGE: python:3.6
TOXENV: py36
DATABASE: postgresql
- IMAGE: python:3.7
TOXENV: py37
DATABASE: sqlite
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql
- IMAGE: python:3.8
@ -60,3 +44,19 @@ matrix:
- IMAGE: python:3.8
TOXENV: py38
DATABASE: postgresql
- IMAGE: python:3.9
TOXENV: py39
DATABASE: sqlite
- IMAGE: python:3.9
TOXENV: py39
DATABASE: postgresql
- IMAGE: python:3.10
TOXENV: py310
DATABASE: sqlite
- IMAGE: python:3.10
TOXENV: py310
DATABASE: postgresql
- IMAGE: python:3.11
TOXENV: py311
DATABASE: sqlite
- IMAGE: python:3.11

View File

@ -3,20 +3,20 @@ stages:
- build
- deploy
test:py37-sqlite:
test:py39-sqlite:
stage: test
image: python:3.7
image: python:3.9
variables:
CFLAGS: "-O0"
DB_CACHE: "~/cache"
TOX_TESTENV_PASSENV: "CFLAGS DB_CACHE"
script:
- pip install tox
- tox -e py37-sqlite
- tox -e py39-sqlite
test:py37-postgresql:
test:py39-postgresql:
stage: test
image: python:3.7
image: python:3.9
tags:
- postgres
services:
@ -30,4 +30,4 @@ test:py37-postgresql:
POSTGRESQL_URI: "postgresql://postgres:@postgres:5432/"
script:
- pip install tox
- tox -e py37-postgresql
- tox -e py39-postgresql

View File

@ -46,7 +46,7 @@ for dep in info.get('depends', []):
requires.append(get_require_version('%s_%s' % (prefix, dep)))
requires.append(get_require_version('trytond'))
tests_require = []
tests_require = [get_require_version('proteus')]
dependency_links = []
if minor_version % 2:
dependency_links.append('https://trydevpi.tryton.org/?mirror=github')
@ -100,17 +100,17 @@ setup(name=name,
'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 :: 3.11',
'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,
@ -118,5 +118,7 @@ setup(name=name,
[trytond.modules]
web_shop_woocommerce = trytond.modules.web_shop_woocommerce
""", # noqa: E501
tests_require=tests_require,
extras_require={
'test': tests_require,
},
)

View File

@ -2,10 +2,10 @@
# copyright notices and license terms.
from contextlib import contextmanager
from trytond.pool import Pool
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.transaction import Transaction
from trytond.pool import Pool
from trytond.modules.company.tests import create_company
from trytond.transaction import Transaction
class WebShopWoocommerceTestCase(ModuleTestCase):

View File

@ -1,5 +1,5 @@
[tox]
envlist = {py36,py37,py38,py39,py310}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
envlist = {py37,py38,py39,py310,py311}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
extras = test

View File

@ -1,5 +1,5 @@
[tryton]
version=6.4.0
version=6.8.0
depends:
ir
account_product