Skip to content

Commit 8cb69fd

Browse files
Fluf22millotp
authored andcommitted
chore(python): fix enum
1 parent e64684b commit 8cb69fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clients/algoliasearch-client-python/algoliasearch/http/transporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def request(
5858
try:
5959
async with timeout(self._timeout / 1000):
6060
resp = await self._session.request(
61-
method=verb.__str__(),
61+
method=verb,
6262
url=url,
6363
headers=request_options.headers,
6464
data=request_options.data,

scripts/docker/Dockerfile.base

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ RUN echo "export PATH=$PATH:/usr/local/bin/python" >> ~/.profile \
4242
&& echo "export PATH=$PATH:/usr/local/bin/pip" >> ~/.profile \
4343
&& pip install --upgrade pip pipx && pipx ensurepath \
4444
&& pipx install poetry
45-
45+
ENV VIRTUAL_ENV=/opt/env
46+
RUN python -m venv $VIRTUAL_ENV
47+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
4648

4749
# Go
4850
COPY --from=go-builder /usr/local/go/ /usr/local/go/

0 commit comments

Comments
 (0)