Skip to content

Commit 914d442

Browse files
committed
hotfix
1 parent 14db8df commit 914d442

7 files changed

Lines changed: 12 additions & 20 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ $ uv sync
1515
The 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

4141
Some 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
4343
respective static YAML files. This is a separate step, which needs to be done
4444
before developing or deploying the site, otherwise it won't work properly.
4545

4646
### Members
4747

4848
Pyvec members are tracked in an internal Google Spreadsheet. The future
4949
intention 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`
5151
command downloads the spreadsheet as CSV and generates the `members_list.yml`
5252
file. It also downloads and caches avatars.
5353

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ dependencies = [
1818
"werkzeug<3",
1919
]
2020

21-
[project.scripts]
22-
pyvecorg = "pyvecorg.__main__:main"
23-
2421
[dependency-groups]
2522
dev = [
2623
"jsonschema",

src/pyvecorg/__main__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
from 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')

src/pyvecorg/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
''')

src/pyvecorg/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

tests/test_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
)
2121
DATA = 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
2626
DATA_BOARD = DATA.get('members_list', {}).get('board', [])
2727
DATA_PUBLIC_MEMBERS = DATA.get('members_list', {}).get('public_members', [])

0 commit comments

Comments
 (0)