Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pendulum doesn't support pep 517 builds #781

Closed
sbuniak-devkit opened this issue Dec 18, 2023 · 2 comments
Closed

Pendulum doesn't support pep 517 builds #781

sbuniak-devkit opened this issue Dec 18, 2023 · 2 comments

Comments

@sbuniak-devkit
Copy link

Reproduce issue with building image from Dockerfile:

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt upgrade
RUN apt install curl wget build-essential -y
# RUN apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install python3.11 -y
# ENV PYTHON_VERSION=3.11
# install poetry
RUN curl -sSL https://install.python-poetry.org | python3.11 -
# Add Poetry to the PATH
ENV PATH="${PATH}:/root/.poetry/bin"
ENV PATH="/root/.local/bin:$PATH"
COPY pyproject.toml /pyproject.toml
RUN poetry env use 3.11 && poetry install
CMD ["bash"] 

pyproject.toml:

[tool.poetry]
name = "test_docker"
version = "0.1.0"
description = "Test python3.11 in docker"
authors = ["John Doe <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.11, <3.12"

# main packages
aiofiles = "^23.2.1"
aiohttp = "^3.9.0"
aioitertools = "^0.11.0"
apache-airflow = "2.7.3"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.black]
line-length = 100

[tool.isort]
force_single_line = true
line_length = 100
profile = "black"

[tool.pytest.ini_options]
asyncio_mode = "auto"
  • OS version and name: Ubuntu 20.04
  • Pendulum version: 2.1.2

NOTE: apache-airflow needs pendulum ">=2.0, <3.0"

Although command 'pip wheel --no-cache-dir --use-pep517 "pendulum (==2.1.2)"' runs successfully, I'm not able to install pendulum with poetry and python 3.11 (it was working on python 3.8 earlier)

@edgarrmondragon
Copy link
Contributor

Might wanna wait for a patch that includes apache/airflow#36281 to come out

@Secrus
Copy link
Collaborator

Secrus commented Jan 17, 2024

Not a Pendulum issue

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants