Skip to content

Mismatch between Python version in pyproject.toml and Docker image #13

@igolt

Description

@igolt

Python version is defined to 3.11.3 in the pyproject.toml

...
[tool.poetry.dependencies]
python = "3.11.3"
fastapi = "^0.103.1"
pydantic = {extras = ["email"], version = "^2.3.0"}
uvicorn = "^0.23.2"
...

But the Python version used in the Docker container is 3.11.6, resulting in a image without the required dependencies.

Docker build output:

#11 [7/8] RUN pip install --no-deps -r requirements.txt
#11 0.449 Ignoring aiofiles: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.449 Ignoring alembic: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.449 Ignoring annotated-types: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.449 Ignoring anyio: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring asgi-lifespan: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring asyncpg: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring bcrypt: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring boto3: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring botocore: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.450 Ignoring certifi: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.451 Ignoring cffi: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.451 Ignoring click: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.451 Ignoring colorama: markers 'python_full_version == "3.11.3" and (sys_platform == "win32" or platform_system == "Windows")' don't match your environment
#11 0.451 Ignoring cryptography: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.451 Ignoring dnspython: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.451 Ignoring ecdsa: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring email-validator: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring execnet: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring fastapi-limiter: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring fastapi-pagination: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring fastapi: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.452 Ignoring greenlet: markers '(platform_machine == "win32" or platform_machine == "WIN32" or platform_machine == "AMD64" or platform_machine == "amd64" or pla
tform_machine == "x86_64" or platform_machine == "ppc64le" or platform_machine == "aarch64") and python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring gunicorn: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring h11: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring httpcore: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring httptools: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring httpx: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring idna: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.453 Ignoring iniconfig: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring itsdangerous: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring jinja2: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring jmespath: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring mako: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring markupsafe: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.454 Ignoring packaging: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring passlib: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pillow: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pluggy: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pyasn1: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pycparser: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pydantic-core: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.455 Ignoring pydantic-settings: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pydantic: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pydantic: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pyjwt: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pytest-asyncio: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pytest-env: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pytest-mock: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.456 Ignoring pytest-xdist: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring pytest: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring python-dateutil: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring python-dotenv: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring python-jose: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring python-multipart: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring redis: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.457 Ignoring rsa: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring ruff: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring s3transfer: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring sentry-sdk: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring six: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring sniffio: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring sqladmin: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.458 Ignoring sqlalchemy: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring starlette: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring typing-extensions: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring urllib3: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring uvicorn: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring uvloop: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.459 Ignoring websockets: markers 'python_full_version == "3.11.3"' don't match your environment
#11 0.460 Ignoring wtforms: markers 'python_full_version == "3.11.3"' don't match your environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions