You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# `docker build .` verifies that the project builds and runs pytest
3
+
FROM python:3.12-slim
4
+
5
+
# Verify wheel can be built
6
+
RUN pip install setuptools twine wheel
7
+
8
+
WORKDIR /app
9
+
10
+
COPY . /app/
11
+
12
+
RUN pip install --no-cache-dir .
13
+
14
+
RUN python setup.py sdist bdist_wheel
15
+
16
+
RUN python -c "import sys, leetcode; print(f'Package installed successfully in Python {sys.version}'); leetcode.DefaultApi(leetcode.ApiClient(leetcode.Configuration())); print('leetcode package is installed and functional')"
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ virtualenv -p python3 leetcode
22
22
pip3 install python-leetcode
23
23
```
24
24
25
-
Then in python shell initialize the client (if you're using chrome, cookies can be found here [chrome://settings/cookies/detail?site=leetcode.com](chrome://settings/cookies/detail?site=leetcode.com))
25
+
Then in python shell initialize necessary environment variables. You can get it directly from your browser cookies (csrftoken and LEETCODE_SESSION)
26
26
```python
27
27
import leetcode
28
28
@@ -174,14 +174,29 @@ Autogenerated by swagger documentation can be found [here](/README.generated.md)
0 commit comments