Migrate requirements.txt to pyproject.toml

This commit is contained in:
Stefan Reimer 2023-11-21 11:17:59 +00:00
parent 4e92c427a8
commit 0d39634eff
3 changed files with 25 additions and 32 deletions

View File

@ -1,6 +1,6 @@
ARG RUNTIME_VERSION="3.11" ARG RUNTIME_VERSION="3.11"
ARG DISTRO_VERSION="3.18" ARG DISTRO_VERSION="3.18"
ARG PULUMI_VERSION="3.91.0" ARG PULUMI_VERSION="3.89.0"
FROM python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS builder FROM python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS builder
ARG PULUMI_VERSION ARG PULUMI_VERSION
@ -33,8 +33,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install CloudBender # Install CloudBender
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
RUN pip install -r requirements.txt RUN pip install .
RUN pip install . --no-deps
# minimal pulumi # minimal pulumi
RUN cd /root/.pulumi/bin && rm -f *dotnet *yaml *go *java && strip pulumi* || true RUN cd /root/.pulumi/bin && rm -f *dotnet *yaml *go *java && strip pulumi* || true

View File

@ -13,18 +13,21 @@ readme = "README.md"
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"
requires-python = ">=3.9" requires-python = ">=3.9"
dependencies = [ dependencies = [
"boto3", "boto3==1.28.70",
"mock", "mock==5.1.0",
"Jinja2>=3.0.0", "Jinja2==3.1.2",
"click", "click==8.1.7",
"pexpect", "pexpect==4.8.0",
"cfn-lint>=0.34", "python-minifier==2.9.0",
"python-minifier", "cfn-lint==0.83.0",
"pulumi>=3.67.0", "ruamel.yaml==0.18.2",
"pulumi-aws>5.0.0", "pulumi==3.89.0",
"pulumi-aws-native", "pulumi-aws==6.6.1",
"pulumi-policy", "pulumi-aws-native==0.82.0",
"pulumi-policy==1.7.0",
"pulumi-command==0.9.1",
] ]
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Environment :: Console", "Environment :: Console",
@ -33,6 +36,13 @@ classifiers = [
"License :: OSI Approved :: GNU Affero General Public License v3", "License :: OSI Approved :: GNU Affero General Public License v3",
] ]
[project.optional-dependencies]
tests = [
'flake',
'pytest',
'twine',
]
[project.urls] [project.urls]
"Homepage" = "https://git.zero-downtime.net/ZeroDownTime/CloudBender" "Homepage" = "https://git.zero-downtime.net/ZeroDownTime/CloudBender"
@ -44,3 +54,4 @@ source = "vcs"
[tool.isort] [tool.isort]
profile = "black" profile = "black"

View File

@ -1,17 +0,0 @@
boto3==1.28.70
mock==5.1.0
Jinja2==3.1.2
click==8.1.7
pexpect==4.8.0
python-minifier==2.9.0
cfn-lint==0.83.0
ruamel.yaml==0.18.2
pulumi==3.91.0
pulumi-aws==6.6.1
pulumi-aws-native==0.82.0
pulumi-policy==1.7.0
pulumi-command==0.9.1
# flake8
# pytest
# twine