Skip to content

Commit 6e9cd47

Browse files
committed
feat: update readme and contribution files
1 parent c6ea4f9 commit 6e9cd47

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ scode cscode pref reason
6767
```
6868

6969
## Command
70+
You need to have [Rye](https://rye-up.com/guide/installation/) installed in your system to be able to run the project.Once you have it installed, run ```rye sync```
7071

7172
To run `school_center.py` use the command below:
7273

7374
```bash
74-
rye run python -m school_center sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv
75+
rye run dev
7576
```
77+
If you change the location of your sample files, make sure to update the command(cmd) in ```[tool.rye.scripts]``` in the ```pyproject.toml``` file with your file path and execute ```rye sync``` . If you wish to run any other files than ```school_center.py```, you can simply do ```rye run python file_name.py```
7678

7779
## Output
7880

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ dev-dependencies = [
2828
"pre-commit==3.6.0",
2929
]
3030

31+
[tool.rye.scripts]
32+
dev = { cmd = "python -m school_center sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv", env = {} }
33+
3134
[tool.hatch.metadata]
3235
allow-direct-references = true
3336

requirements-dev.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ altair==5.3.0
1313
attrs==23.2.0
1414
# via jsonschema
1515
# via referencing
16-
blinker==1.8.0
16+
blinker==1.8.1
1717
# via streamlit
1818
branca==0.7.2
1919
# via folium
@@ -35,7 +35,7 @@ coverage==7.5.0
3535
# via pytest-cov
3636
distlib==0.3.8
3737
# via virtualenv
38-
filelock==3.13.4
38+
filelock==3.14.0
3939
# via virtualenv
4040
folium==0.16.0
4141
# via center-randomize
@@ -56,7 +56,7 @@ jinja2==3.1.3
5656
# via folium
5757
# via pydeck
5858
# via streamlit-folium
59-
jsonschema==4.21.1
59+
jsonschema==4.22.0
6060
# via altair
6161
jsonschema-specifications==2023.12.1
6262
# via jsonschema
@@ -96,9 +96,9 @@ protobuf==4.25.3
9696
# via streamlit
9797
pyarrow==16.0.0
9898
# via streamlit
99-
pydeck==0.8.0
99+
pydeck==0.9.0
100100
# via streamlit
101-
pygments==2.17.2
101+
pygments==2.18.0
102102
# via rich
103103
pytest==8.0.2
104104
# via pytest-clarity
@@ -113,7 +113,7 @@ pytz==2024.1
113113
# via pandas
114114
pyyaml==6.0.1
115115
# via pre-commit
116-
referencing==0.35.0
116+
referencing==0.35.1
117117
# via jsonschema
118118
# via jsonschema-specifications
119119
requests==2.31.0
@@ -132,7 +132,7 @@ six==1.16.0
132132
# via python-dateutil
133133
smmap==5.0.1
134134
# via gitdb
135-
streamlit==1.33.0
135+
streamlit==1.34.0
136136
# via center-randomize
137137
# via streamlit-folium
138138
streamlit-folium==0.19.1
@@ -153,7 +153,7 @@ tzdata==2024.1
153153
# via pandas
154154
urllib3==2.2.1
155155
# via requests
156-
virtualenv==20.26.0
156+
virtualenv==20.26.1
157157
# via pre-commit
158158
watchdog==4.0.0
159159
# via streamlit

requirements.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ altair==5.3.0
1313
attrs==23.2.0
1414
# via jsonschema
1515
# via referencing
16-
blinker==1.8.0
16+
blinker==1.8.1
1717
# via streamlit
1818
branca==0.7.2
1919
# via folium
@@ -43,7 +43,7 @@ jinja2==3.1.3
4343
# via folium
4444
# via pydeck
4545
# via streamlit-folium
46-
jsonschema==4.21.1
46+
jsonschema==4.22.0
4747
# via altair
4848
jsonschema-specifications==2023.12.1
4949
# via jsonschema
@@ -72,15 +72,15 @@ protobuf==4.25.3
7272
# via streamlit
7373
pyarrow==16.0.0
7474
# via streamlit
75-
pydeck==0.8.0
75+
pydeck==0.9.0
7676
# via streamlit
77-
pygments==2.17.2
77+
pygments==2.18.0
7878
# via rich
7979
python-dateutil==2.9.0.post0
8080
# via pandas
8181
pytz==2024.1
8282
# via pandas
83-
referencing==0.35.0
83+
referencing==0.35.1
8484
# via jsonschema
8585
# via jsonschema-specifications
8686
requests==2.31.0
@@ -95,7 +95,7 @@ six==1.16.0
9595
# via python-dateutil
9696
smmap==5.0.1
9797
# via gitdb
98-
streamlit==1.33.0
98+
streamlit==1.34.0
9999
# via center-randomize
100100
# via streamlit-folium
101101
streamlit-folium==0.19.1

0 commit comments

Comments
 (0)