Update Python
This commit is contained in:
parent
9fa3abc5b9
commit
459bedd4a3
@ -4,7 +4,7 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: python:3.11
|
container: python:3.12
|
||||||
steps:
|
steps:
|
||||||
- run: apt-get update
|
- run: apt-get update
|
||||||
- run: apt-get install -y git nodejs
|
- run: apt-get install -y git nodejs
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
pypi:
|
pypi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: python:3.11
|
container: python:3.12
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
if: startsWith(gitea.ref, 'refs/tags')
|
if: startsWith(gitea.ref, 'refs/tags')
|
||||||
env:
|
env:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM python:3.11.6 as build
|
FROM python:3.12.1 as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install poetry && poetry build
|
RUN pip install poetry && poetry build
|
||||||
|
|
||||||
FROM python:3.11.5
|
FROM python:3.12.1
|
||||||
|
|
||||||
COPY --from=build /app/dist /tmp/dist
|
COPY --from=build /app/dist /tmp/dist
|
||||||
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
||||||
|
@ -12,7 +12,7 @@ repository = "https://git.crystalyx.net/Xefir/Divent"
|
|||||||
divent = 'divent.bot:__main__'
|
divent = 'divent.bot:__main__'
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.8.1,<3.12"
|
python = ">=3.12.1,<3.13"
|
||||||
disnake = "^2.9.1"
|
disnake = "^2.9.1"
|
||||||
ics = "0.8.0.dev0"
|
ics = "0.8.0.dev0"
|
||||||
python-dotenv = "^1.0.0"
|
python-dotenv = "^1.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user