Skip to content

Commit 926115b

Browse files
committed
wip: update readme and added necessary dependencies
1 parent ca9cc29 commit 926115b

File tree

6 files changed

+220
-5
lines changed

6 files changed

+220
-5
lines changed

CONTRIBUTION.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ Thank you for considering contributing to our project! We welcome contributions
1919

2020
1. Fork and clone the Repository
2121
2. Pull latest changes from the main repository if it has diverged
22-
3. [Create a virtual environment for the project](https://docs.python.org/3/library/venv.html)
23-
4. Install dependencies using `pip install -r requirements.txt`
24-
5. Install pre-commit hook using `pre-commit install`
25-
6. Run tests using `pytest tests/test_file_name.py ` or specific test name like `pytest tests/test_file_name.py::test_function_name`
22+
3. Add Rye on your system if it is not installed already. [Source](https://rye-up.com/guide/installation/)
23+
4. Install all the dependencies using `rye sync`.
24+
5. Install pre-commit hook using `rye run pre-commit install`
25+
6. Run `rye add package_name` (if you wish to add any packages as per your requirements.)
26+
6. Run tests using `rye run pytest` or `rye run pytest -k test_function_name -v` to run specific file.
2627
7. Do not push changes without the tests and coverage passing
2728
8. Commit your changes with **proper** commit messages in imperative form like `Add my best feature`, `Fix issues casusing whatever`, `Update docs` etc: [Good reference here](https://cbea.ms/git-commit/)
2829
9. Make changes and push to your forked repository

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ scode cscode pref reason
7171
To run `school_center.py` use the command below:
7272

7373
```bash
74-
python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv
74+
rye run python -m school_center sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv
7575
```
7676

7777
## Output

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ authors = [
66
{ name = "Manisha Bhandari", email = "[email protected]" }
77
]
88
dependencies = [
9+
"streamlit==1.33.0",
10+
"streamlit-folium==0.19.1",
11+
"folium==0.16.0",
912
]
1013
readme = "README.md"
1114
requires-python = ">= 3.12"

requirements-dev.lock

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,96 @@
88
# with-sources: false
99

1010
-e file:.
11+
altair==5.3.0
12+
# via streamlit
13+
attrs==23.2.0
14+
# via jsonschema
15+
# via referencing
16+
blinker==1.8.0
17+
# via streamlit
18+
branca==0.7.2
19+
# via folium
20+
# via streamlit-folium
21+
cachetools==5.3.3
22+
# via streamlit
23+
certifi==2024.2.2
24+
# via requests
1125
cfgv==3.4.0
1226
# via pre-commit
27+
charset-normalizer==3.3.2
28+
# via requests
29+
click==8.1.7
30+
# via streamlit
1331
colorama==0.4.6
32+
# via click
1433
# via pytest
1534
coverage==7.5.0
1635
# via pytest-cov
1736
distlib==0.3.8
1837
# via virtualenv
1938
filelock==3.13.4
2039
# via virtualenv
40+
folium==0.16.0
41+
# via center-randomize
42+
# via streamlit-folium
43+
gitdb==4.0.11
44+
# via gitpython
45+
gitpython==3.1.43
46+
# via streamlit
2147
identify==2.5.36
2248
# via pre-commit
49+
idna==3.7
50+
# via requests
2351
iniconfig==2.0.0
2452
# via pytest
53+
jinja2==3.1.3
54+
# via altair
55+
# via branca
56+
# via folium
57+
# via pydeck
58+
# via streamlit-folium
59+
jsonschema==4.21.1
60+
# via altair
61+
jsonschema-specifications==2023.12.1
62+
# via jsonschema
2563
markdown-it-py==3.0.0
2664
# via rich
65+
markupsafe==2.1.5
66+
# via jinja2
2767
mdurl==0.1.2
2868
# via markdown-it-py
2969
nodeenv==1.8.0
3070
# via pre-commit
71+
numpy==1.26.4
72+
# via altair
73+
# via folium
74+
# via pandas
75+
# via pyarrow
76+
# via pydeck
77+
# via streamlit
3178
packaging==24.0
79+
# via altair
3280
# via pytest
3381
# via pytest-sugar
82+
# via streamlit
83+
pandas==2.2.2
84+
# via altair
85+
# via streamlit
86+
pillow==10.3.0
87+
# via streamlit
3488
platformdirs==4.2.1
3589
# via virtualenv
3690
pluggy==1.5.0
3791
# via pytest
3892
pprintpp==0.4.0
3993
# via pytest-clarity
4094
pre-commit==3.6.0
95+
protobuf==4.25.3
96+
# via streamlit
97+
pyarrow==16.0.0
98+
# via streamlit
99+
pydeck==0.8.0
100+
# via streamlit
41101
pygments==2.17.2
42102
# via rich
43103
pytest==8.0.2
@@ -47,14 +107,55 @@ pytest==8.0.2
47107
pytest-clarity==1.0.1
48108
pytest-cov==5.0.0
49109
pytest-sugar==1.0.0
110+
python-dateutil==2.9.0.post0
111+
# via pandas
112+
pytz==2024.1
113+
# via pandas
50114
pyyaml==6.0.1
51115
# via pre-commit
116+
referencing==0.35.0
117+
# via jsonschema
118+
# via jsonschema-specifications
119+
requests==2.31.0
120+
# via folium
121+
# via streamlit
52122
rich==13.7.1
53123
# via pytest-clarity
124+
# via streamlit
125+
rpds-py==0.18.0
126+
# via jsonschema
127+
# via referencing
54128
ruff==0.4.1
55129
setuptools==69.5.1
56130
# via nodeenv
131+
six==1.16.0
132+
# via python-dateutil
133+
smmap==5.0.1
134+
# via gitdb
135+
streamlit==1.33.0
136+
# via center-randomize
137+
# via streamlit-folium
138+
streamlit-folium==0.19.1
139+
# via center-randomize
140+
tenacity==8.2.3
141+
# via streamlit
57142
termcolor==2.4.0
58143
# via pytest-sugar
144+
toml==0.10.2
145+
# via streamlit
146+
toolz==0.12.1
147+
# via altair
148+
tornado==6.4
149+
# via streamlit
150+
typing-extensions==4.11.0
151+
# via streamlit
152+
tzdata==2024.1
153+
# via pandas
154+
urllib3==2.2.1
155+
# via requests
59156
virtualenv==20.26.0
60157
# via pre-commit
158+
watchdog==4.0.0
159+
# via streamlit
160+
xyzservices==2024.4.0
161+
# via folium

requirements.lock

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,113 @@
88
# with-sources: false
99

1010
-e file:.
11+
altair==5.3.0
12+
# via streamlit
13+
attrs==23.2.0
14+
# via jsonschema
15+
# via referencing
16+
blinker==1.8.0
17+
# via streamlit
18+
branca==0.7.2
19+
# via folium
20+
# via streamlit-folium
21+
cachetools==5.3.3
22+
# via streamlit
23+
certifi==2024.2.2
24+
# via requests
25+
charset-normalizer==3.3.2
26+
# via requests
27+
click==8.1.7
28+
# via streamlit
29+
colorama==0.4.6
30+
# via click
31+
folium==0.16.0
32+
# via center-randomize
33+
# via streamlit-folium
34+
gitdb==4.0.11
35+
# via gitpython
36+
gitpython==3.1.43
37+
# via streamlit
38+
idna==3.7
39+
# via requests
40+
jinja2==3.1.3
41+
# via altair
42+
# via branca
43+
# via folium
44+
# via pydeck
45+
# via streamlit-folium
46+
jsonschema==4.21.1
47+
# via altair
48+
jsonschema-specifications==2023.12.1
49+
# via jsonschema
50+
markdown-it-py==3.0.0
51+
# via rich
52+
markupsafe==2.1.5
53+
# via jinja2
54+
mdurl==0.1.2
55+
# via markdown-it-py
56+
numpy==1.26.4
57+
# via altair
58+
# via folium
59+
# via pandas
60+
# via pyarrow
61+
# via pydeck
62+
# via streamlit
63+
packaging==24.0
64+
# via altair
65+
# via streamlit
66+
pandas==2.2.2
67+
# via altair
68+
# via streamlit
69+
pillow==10.3.0
70+
# via streamlit
71+
protobuf==4.25.3
72+
# via streamlit
73+
pyarrow==16.0.0
74+
# via streamlit
75+
pydeck==0.8.0
76+
# via streamlit
77+
pygments==2.17.2
78+
# via rich
79+
python-dateutil==2.9.0.post0
80+
# via pandas
81+
pytz==2024.1
82+
# via pandas
83+
referencing==0.35.0
84+
# via jsonschema
85+
# via jsonschema-specifications
86+
requests==2.31.0
87+
# via folium
88+
# via streamlit
89+
rich==13.7.1
90+
# via streamlit
91+
rpds-py==0.18.0
92+
# via jsonschema
93+
# via referencing
94+
six==1.16.0
95+
# via python-dateutil
96+
smmap==5.0.1
97+
# via gitdb
98+
streamlit==1.33.0
99+
# via center-randomize
100+
# via streamlit-folium
101+
streamlit-folium==0.19.1
102+
# via center-randomize
103+
tenacity==8.2.3
104+
# via streamlit
105+
toml==0.10.2
106+
# via streamlit
107+
toolz==0.12.1
108+
# via altair
109+
tornado==6.4
110+
# via streamlit
111+
typing-extensions==4.11.0
112+
# via streamlit
113+
tzdata==2024.1
114+
# via pandas
115+
urllib3==2.2.1
116+
# via requests
117+
watchdog==4.0.0
118+
# via streamlit
119+
xyzservices==2024.4.0
120+
# via folium
File renamed without changes.

0 commit comments

Comments
 (0)