Skip to content

Commit 1f73fc4

Browse files
author
Shriyansh Agnihotri
committed
removing unwanted packages, removing uvloop so that hercules can run in windows, lets try
1 parent ea3decc commit 1f73fc4

File tree

6 files changed

+473
-565
lines changed

6 files changed

+473
-565
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ test_output.xml
4747
*.py,cover
4848
.hypothesis/
4949
.pytest_cache/
50+
.github/
51+
opt
52+
**/run_data
53+
**/statics
54+
.mypy_cache
55+
.git

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
# Use an official Python 3.11 image based on Ubuntu
22
FROM python:3.11-slim
33

4-
# Install Playwright and dependencies
5-
RUN pip install -U playwright && \
6-
playwright install --with-deps
4+
# # Install Playwright and dependencies
5+
# RUN pip install -U playwright && \
6+
# playwright install --with-deps
77

88
# Set the working directory in the container
99
WORKDIR /testzeus-hercules
1010

1111
# Copy only the necessary files for installation
1212
COPY pyproject.toml poetry.lock /testzeus-hercules/
13-
COPY .cache /testzeus-hercules/
1413

1514
# Install Poetry
1615
RUN pip install poetry
1716

1817
# Install dependencies and the package
1918
RUN poetry install --no-dev
20-
RUN poetry run playwright install
19+
RUN poetry run playwright install --with-deps
2120

2221
# Copy the rest of the project files
2322
COPY . /testzeus-hercules

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ show: ## Show the current environment.
1515
@echo "Current environment:"
1616
poetry env info && exit
1717

18+
.PHONY: install-extra
19+
install-extra: ## Install the project in dev mode.
20+
poetry install --all-extras && exit && poetry run playwright install --with-deps
21+
1822
.PHONY: install
1923
install: ## Install the project in dev mode.
20-
poetry install --all-extras && exit && poetry run playwright install --with-deps
24+
poetry install && exit && poetry run playwright install --with-deps
2125

2226
.PHONY: fmt
2327
fmt: ## Format code using black & isort.

0 commit comments

Comments
 (0)