Kang Suhyun commited on
Commit
619ba0e
1 Parent(s): 8f146f1

[#101] Introduce Poetry to manage dependencies (#102)

Browse files

* [#101] Introduce Poetry to manage dependencies

This change introduces Poetry to manage dependencies, replacing the traditional `requirements.txt` approach.

* unnecessary

* add plugin

Files changed (4) hide show
  1. README.md +14 -4
  2. poetry.lock +0 -0
  3. pyproject.toml +19 -0
  4. requirements.txt +0 -114
README.md CHANGED
@@ -14,21 +14,31 @@ Get Involved: [Discuss and contribute on GitHub](https://github.com/yanolja/aren
14
 
15
  ## How to run locally
16
 
17
- 1. **Set up a virtual environment**
18
 
19
- Before installing dependencies, it's recommended to create a virtual environment.
 
 
 
 
 
 
 
 
 
 
20
 
21
  1. **Install dependencies**
22
 
23
  With the virtual environment activated, install the project dependencies:
24
 
25
  ```shell
26
- pip install -r requirements.txt
27
  ```
28
 
29
  1. **Run the app**
30
 
31
- Set your OpenAI API key as an environment variable and start the application:
32
 
33
  ```shell
34
  GOOGLE_CLOUD_PROJECT=<your project id> \
 
14
 
15
  ## How to run locally
16
 
17
+ 1. **Install Poetry and plugins**
18
 
19
+ First, ensure that Poetry is installed. You can install it by following the instructions on the [Poetry website](https://python-poetry.org/docs/#installing-with-pipx).
20
+
21
+ After installing Poetry, install the `poetry-plugin-sort` by following the detailed instructions provided on its [GitHub page](https://github.com/andrei-shabanski/poetry-plugin-sort?tab=readme-ov-file#installation).
22
+
23
+ 1. **Activate the virtual environment**
24
+
25
+ Use the following command to activate the virtual environment that Poetry has created:
26
+
27
+ ```shell
28
+ poetry shell
29
+ ```
30
 
31
  1. **Install dependencies**
32
 
33
  With the virtual environment activated, install the project dependencies:
34
 
35
  ```shell
36
+ poetry install
37
  ```
38
 
39
  1. **Run the app**
40
 
41
+ Set your environment variables and run the app:
42
 
43
  ```shell
44
  GOOGLE_CLOUD_PROJECT=<your project id> \
poetry.lock ADDED
The diff for this file is too large to render. See raw diff
 
pyproject.toml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "arena"
3
+ version = "0.1.0"
4
+ description = ""
5
+ readme = "README.md"
6
+
7
+ [tool.poetry.dependencies]
8
+ python = "^3.12"
9
+ firebase-admin = "^6.5.0"
10
+ google-cloud-secret-manager = "^2.20.0"
11
+ google-generativeai = "^0.5.4"
12
+ gradio = "^4.32.1"
13
+ lingua-language-detector = "^2.0.2"
14
+ litellm = "^1.39.5"
15
+
16
+
17
+ [build-system]
18
+ requires = ["poetry-core"]
19
+ build-backend = "poetry.core.masonry.api"
requirements.txt DELETED
@@ -1,114 +0,0 @@
1
- aiofiles==23.2.1
2
- aiohttp==3.9.4
3
- aiosignal==1.3.1
4
- altair==5.2.0
5
- annotated-types==0.6.0
6
- anyio==4.2.0
7
- attrs==23.2.0
8
- CacheControl==0.14.0
9
- cachetools==5.3.2
10
- certifi==2024.2.2
11
- cffi==1.16.0
12
- charset-normalizer==3.3.2
13
- click==8.1.7
14
- colorama==0.4.6
15
- contourpy==1.2.0
16
- cryptography==42.0.4
17
- cycler==0.12.1
18
- distro==1.9.0
19
- fastapi==0.109.2
20
- ffmpy==0.3.1
21
- filelock==3.13.1
22
- firebase-admin==6.4.0
23
- fonttools==4.47.2
24
- frozenlist==1.4.1
25
- fsspec==2024.2.0
26
- google-ai-generativelanguage==0.6.4
27
- google-api-core==2.16.2
28
- google-api-python-client==2.116.0
29
- google-auth==2.27.0
30
- google-auth-httplib2==0.2.0
31
- google-cloud-bigquery==3.19.0
32
- google-cloud-core==2.4.1
33
- google-cloud-firestore==2.14.0
34
- google-cloud-resource-manager==1.12.3
35
- google-cloud-secret-manager==2.18.3
36
- google-cloud-storage==2.14.0
37
- google-crc32c==1.5.0
38
- google-generativeai==0.5.4
39
- google-resumable-media==2.7.0
40
- googleapis-common-protos==1.62.0
41
- gradio==4.23.0
42
- gradio_client==0.14.0
43
- grpc-google-iam-v1==0.13.0
44
- grpcio==1.60.1
45
- grpcio-status==1.60.1
46
- h11==0.14.0
47
- httpcore==1.0.2
48
- httplib2==0.22.0
49
- httpx==0.26.0
50
- huggingface-hub==0.20.3
51
- idna==3.7
52
- importlib-metadata==7.0.1
53
- importlib-resources==6.1.1
54
- Jinja2==3.1.3
55
- jsonschema==4.21.1
56
- jsonschema-specifications==2023.12.1
57
- kiwisolver==1.4.5
58
- lingua-language-detector==2.0.2
59
- litellm==1.39.2
60
- markdown-it-py==3.0.0
61
- MarkupSafe==2.1.5
62
- matplotlib==3.8.2
63
- mdurl==0.1.2
64
- msgpack==1.0.7
65
- multidict==6.0.5
66
- numpy==1.26.3
67
- openai==1.30.4
68
- orjson==3.9.15
69
- packaging==23.2
70
- pandas==2.2.0
71
- pillow==10.3.0
72
- proto-plus==1.23.0
73
- protobuf==4.25.2
74
- pyasn1==0.5.1
75
- pyasn1-modules==0.3.0
76
- pycparser==2.21
77
- pydantic==2.6.0
78
- pydantic_core==2.16.1
79
- pydub==0.25.1
80
- Pygments==2.17.2
81
- PyJWT==2.8.0
82
- pyparsing==3.1.1
83
- python-dateutil==2.8.2
84
- python-dotenv==1.0.1
85
- python-multipart==0.0.9
86
- pytz==2024.1
87
- PyYAML==6.0.1
88
- referencing==0.33.0
89
- regex==2023.12.25
90
- requests==2.32.2
91
- rich==13.7.0
92
- rpds-py==0.17.1
93
- rsa==4.9
94
- ruff==0.3.4
95
- semantic-version==2.10.0
96
- shapely==2.0.3
97
- shellingham==1.5.4
98
- six==1.16.0
99
- sniffio==1.3.0
100
- starlette==0.36.3
101
- tiktoken==0.5.2
102
- tokenizers==0.15.1
103
- tomlkit==0.12.0
104
- toolz==0.12.1
105
- tqdm==4.66.3
106
- typer==0.9.0
107
- typing_extensions==4.9.0
108
- tzdata==2023.4
109
- uritemplate==4.1.1
110
- urllib3==2.2.0
111
- uvicorn==0.27.0.post1
112
- websockets==11.0.3
113
- yarl==1.9.4
114
- zipp==3.17.0