File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ jobs:
1919 run : uv sync
2020 - if : ${{ github.ref == 'refs/heads/master' }}
2121 name : Build data
22- run : uv run pyvecorg build
22+ run : uv run python -m pyvecorg. build
2323 env :
2424 GOOGLE_SERVICE_ACCOUNT : ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
2525 - name : Run tests
2626 run : uv run pytest -v
2727 - name : Build HTML
28- run : uv run pyvecorg freeze
28+ run : uv run python -m pyvecorg freeze
2929 - if : ${{ github.ref == 'refs/heads/master' }}
3030 name : Deploy
31- run : uv run pyvecorg deploy
31+ run : uv run python -m pyvecorg deploy
3232 env :
3333 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ $ uv sync
1515The site uses [ elsa] ( https://github.com/pyvec/elsa ) .
1616
1717- Installation: ` uv sync `
18- - Download data from external sources: ` uv run pyvecorg build `
18+ - Download data from external sources: ` uv run python -m pyvecorg. build `
1919- Tests: ` uv run pytest `
20- - Development server: ` uv run pyvecorg serve `
20+ - Development server: ` uv run python -m pyvecorg serve `
2121
2222### Data and tests
2323
@@ -39,15 +39,15 @@ logical rules which cannot be easily expressed by JSON Schema.
3939### External sources
4040
4141Some data cannot be stored statically in a YAML file. There is a command
42- ` uv run pyvecorg build ` , which downloads them from external sources and generates
42+ ` uv run python -m pyvecorg. build ` , which downloads them from external sources and generates
4343respective static YAML files. This is a separate step, which needs to be done
4444before developing or deploying the site, otherwise it won't work properly.
4545
4646### Members
4747
4848Pyvec members are tracked in an internal Google Spreadsheet. The future
4949intention is to have the list of members public, but we're not there yet (GDPR).
50- So far only board members are being listed publicly. The ` uv run pyvecorg build `
50+ So far only board members are being listed publicly. The ` uv run python -m pyvecorg. build `
5151command downloads the spreadsheet as CSV and generates the ` members_list.yml `
5252file. It also downloads and caches avatars.
5353
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ dependencies = [
1818 " werkzeug<3" ,
1919]
2020
21- [project .scripts ]
22- pyvecorg = " pyvecorg.__main__:main"
23-
2421[dependency-groups ]
2522dev = [
2623 " jsonschema" ,
Original file line number Diff line number Diff line change 33from pyvecorg import app
44
55
6- def main ():
7- cli (app , base_url = 'http://pyvec.org' )
8-
9-
10- if __name__ == '__main__' :
11- main ()
6+ cli (app , base_url = 'http://pyvec.org' )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def generate_yaml(data):
6565 yaml_contents = dedent ('''\
6666 #
6767 # This file has been generated from external sources
68- # using `uv run pyvecorg build`. Do not edit
68+ # using `uv run python -m pyvecorg. build`. Do not edit
6969 # it manually!
7070 #
7171 ''' )
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ <h3>{{ members.note.heading }}</h3>
269269 {% else %}
270270 < p class ="note ">
271271 {{ members.list.failure_text }}
272- <!-- To fix this, you need to run 'uv run pyvecorg build' -->
272+ <!-- To fix this, you need to run 'uv run python -m pyvecorg. build' -->
273273 </ p >
274274 {% endif %}
275275 </ div >
Original file line number Diff line number Diff line change 2020)
2121DATA = load_data ()
2222
23- # If you run 'uv run pyvecorg build', memebers_list.yml gets
24- # generated and it will be tested. If you don't have the file
23+ # If you run 'uv run python -m pyvecorg. build', memebers_list.yml
24+ # gets generated and it will be tested. If you don't have the file
2525# present, the relevant tests will be skipped
2626DATA_BOARD = DATA .get ('members_list' , {}).get ('board' , [])
2727DATA_PUBLIC_MEMBERS = DATA .get ('members_list' , {}).get ('public_members' , [])
You can’t perform that action at this time.
0 commit comments