kopia lustrzana https://github.com/mkdryden/telegram-stats-bot
Switch build to use poetry-core for PEP 517 builds
Removes the need to install all of poetry and its dependencies just to build.pull/8/head v0.6.2
rodzic
19dfc8c59a
commit
7b1920967f
|
@ -6,11 +6,17 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
|
||||
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
|
||||
|
||||
----------
|
||||
`0.6.2`_ - 2021-11-11
|
||||
----------
|
||||
Changed
|
||||
-----
|
||||
- Switched build backend to poetry-core so that PEP 517 builds don't need full poetry install
|
||||
|
||||
----------
|
||||
`0.6.1`_ - 2021-11-07
|
||||
----------
|
||||
Added
|
||||
Changed
|
||||
-----
|
||||
- Bumped pillow version to 8.3.2 for security reasons
|
||||
|
||||
|
@ -102,3 +108,4 @@ Fixed
|
|||
.. _0.5.0: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.5.0
|
||||
.. _0.6.0: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.6.0
|
||||
.. _0.6.1: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.6.1
|
||||
.. _0.6.2: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.6.2
|
||||
|
|
|
@ -3,8 +3,7 @@ FROM python:3.9
|
|||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
RUN pip install --no-cache-dir poetry
|
||||
RUN poetry install
|
||||
RUN pip install .
|
||||
|
||||
ENV TZ="America/Toronto" \
|
||||
BOT_TOKEN=-1 \
|
||||
|
@ -14,4 +13,4 @@ ENV TZ="America/Toronto" \
|
|||
POSTGRES_HOST=db \
|
||||
POSTGRES_DB=telegram_bot
|
||||
|
||||
CMD [ "sh", "-c", "poetry run python -m telegram_stats_bot.main --tz=$TZ $BOT_TOKEN $CHAT_ID postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" ]
|
||||
CMD [ "sh", "-c", "python -m telegram_stats_bot.main --tz=$TZ $BOT_TOKEN $CHAT_ID postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" ]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "telegram-stats-bot"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
description = "A logging and statistics bot for Telegram based on python-telegram-bot."
|
||||
authors = ["Michael DM Dryden <mk.dryden@utoronto.ca>"]
|
||||
repository = "https://github.com/mkdryden/telegram-stats-bot"
|
||||
|
@ -23,5 +23,5 @@ single-source = "^0.2.0"
|
|||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
|
Ładowanie…
Reference in New Issue