-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atciss: use taskiq 💡 instead of celery 🥦
- Loading branch information
Showing
43 changed files
with
571 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
FROM python:3.11-slim@sha256:23f52205321f806c2cc742cefbf837e0d25101388c043e860c7817985230565c as base | ||
FROM python:3.11-slim@sha256:53d6284a40eae6b625f22870f5faba6c54f2a28db9027408f4dee111f1e885a2 as base | ||
|
||
FROM base as requirements-stage | ||
WORKDIR /tmp | ||
RUN pip install poetry | ||
COPY ./pyproject.toml ./poetry.lock* /tmp/ | ||
|
||
FROM requirements-stage as requirements-dev | ||
RUN poetry export --with=dev -f requirements.txt --output requirements.txt --without-hashes | ||
|
||
FROM requirements-stage as requirements-prod | ||
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes | ||
|
||
FROM base as dev | ||
WORKDIR /code | ||
COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt | ||
COPY --from=requirements-dev /tmp/requirements.txt /code/requirements.txt | ||
RUN apt-get update && apt-get install git -y | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
ENTRYPOINT ["python3", "-c", "from atciss.cli import cli; cli()"] | ||
ENTRYPOINT ["python3", "-m", "atciss.cli"] | ||
|
||
FROM dev as production | ||
WORKDIR /code | ||
COPY --from=requirements-prod /tmp/requirements.txt /code/requirements.txt | ||
RUN apt-get update && apt-get install git -y | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
COPY . /code | ||
ENTRYPOINT ["python3", "-m", "atciss.cli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +0,0 @@ | ||
"""ATCISS.""" | ||
|
||
from atciss import celery | ||
|
||
from .version import __version__ | ||
|
||
__all__ = ("__version__", "celery") | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1 @@ | ||
""" | ||
Command-line interface. | ||
The ``cli`` submodule defines Click command-line interface root and its | ||
commands. | ||
Resources: | ||
1. `Click documentation`_ | ||
.. _Click documentation: | ||
https://click.palletsprojects.com/en/8.1.x/ | ||
""" | ||
|
||
from atciss.cli.cli import cli | ||
|
||
__all__ = ("cli",) | ||
from .cli import cli # pyright: ignore # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from atciss.cli.cli import cli | ||
|
||
cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.