Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3b382164 authored by Karine Bauch's avatar Karine Bauch
Browse files

tests: Tests passed with python>=3.9

parent c9bc21eb
No related branches found
No related tags found
No related merge requests found
Pipeline #64870 failed
......@@ -10,7 +10,7 @@ authors = [
]
description = "Create a SQLAlchemy session_maker that won't commit to db for testing purposes."
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
......@@ -18,13 +18,14 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.9",
"Typing :: Typed",
]
dependencies = [
"SQLAlchemy >= 2, < 3",
"psycopg2-binary>=2.9.10",
  • Owner

    Binary is a very bad thing for sec. Stick with psycopg2 and fix to binary for dev env OR only for dev distributions that needs it (even better).

  • Owner
  • Karine Bauch @Karine-Bauch ·
    Author Developer

    I have added it before realizing that we don’t need python 3.7 and 3.8 Should verify if it’s needed for >=3.9 I’ll check it tomorrow.

    Edited by Karine Bauch
  • Karine Bauch @Karine-Bauch ·
    Author Developer
  • Please register or sign in to reply
"pytest >= 7, < 8",
]
......@@ -40,6 +41,8 @@ dev = [
"coverage",
"psycopg2 < 3.0",
"pytest-asyncio",
"tox-uv>=1.13.1",
"tox>=4.25.0",
]
[project.urls]
......@@ -71,7 +74,7 @@ search = "version = \"{current_version}\""
[tool.mypy]
disallow_untyped_defs = true
packages = "fake_session_maker"
python_version = 3.7
python_version = 3.9
[tool.pytest.ini_options]
addopts = "-rA -q --strict-markers"
......@@ -142,20 +145,31 @@ legacy_tox_ini = """
[tox]
min_version = 4.0
env_list =
py{37,38,39,310,311}
ruff
mypy
py{39,310,311,312,313}
isolated_build = true
[testenv]
deps = pytest
[testenv:py39]
deps =
setuptools
pytest
pytest_asyncio
psycopg2 < 3.0
asyncpg < 1.0
commands = pytest
[testenv:ruff]
deps = ruff
commands = ruff check .
[testenv:mypy]
deps = mypy
commands = mypy src
[testenv]
deps =
pytest
pytest_asyncio
psycopg2 < 3.0
asyncpg < 1.0
commands = pytest
"""
# [testenv:ruff]
# deps = ruff
# commands = ruff check .
#
# [testenv:mypy]
# deps = mypy
# commands = mypy src
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment