Skip to content

Commit

Permalink
use uv for dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Aug 31, 2024
1 parent cd3eba9 commit f4b0e1d
Show file tree
Hide file tree
Showing 11 changed files with 693 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
with:
python-version: "3.12"
- name: Install dependencies
run: python -m pip install -r requirements.txt
run: python -m pip install .
- name: Test
run: pytest
2 changes: 1 addition & 1 deletion .github/workflows/check_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
with:
python-version: "3.12"
- name: Install dependencies
run: python -m pip install -r requirements.txt
run: python -m pip install .
- name: Check broken links
run: sphinx-build -nW -b linkcheck . _build
2 changes: 1 addition & 1 deletion .github/workflows/generate_grants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: "3.12"
- name: Install dependencies
run: python -m pip install -r requirements.txt
run: python -m pip install .
- name: Generate the list of grants
run: python _scripts/generate_grants.py > ./operations/grants.rst
env:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Když toho upravujete víc, nebo máte zálusk na nějaké složitější kejkle

#. Stáhněte projekt: ``git clone https://github.com/pyvec/docs.pyvec.org.git``
#. Vytvořte si a aktivujte virtuální prostředí
#. Nainstalujte do prostředí závislosti: ``python -m pip install -r requirements.txt``
#. Nainstalujte do prostředí závislosti: ``python -m pip install .``

Běžná práce
-----------
Expand Down
2 changes: 1 addition & 1 deletion _extensions/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import functools
from operator import itemgetter
from pathlib import Path
from docutils import nodes

import strictyaml as yaml
from docutils import nodes


BOARD_HISTORY_SCHEMA = yaml.Seq(
Expand Down
4 changes: 2 additions & 2 deletions _scripts/generate_grants.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import re
from datetime import date
from pathlib import Path
from operator import itemgetter
from pathlib import Path

import requests
from jinja2 import Template
import strictyaml as yaml
from jinja2 import Template


GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
Expand Down
3 changes: 1 addition & 2 deletions _scripts/test_generate_grants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from datetime import date, datetime

import pytest

from generate_grants import to_date, remove_comments, get_board_member_name, get_votes
from generate_grants import get_board_member_name, get_votes, remove_comments, to_date


@pytest.fixture
Expand Down
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[project]
name = "pyvec-docs"
version = "0.0.0"
readme = "README.rst"
requires-python = "==3.12"
dependencies = [
"sphinx==7.4.7",
"sphinxemoji==0.3.1",
"sphinx-rtd-theme==2.0.0",
"sphinx-autobuild==2024.4.16",
"requests==2.32.3",
"jinja2==3.1.4",
"strictyaml==1.7.3",
"pytest==8.3.2",
"myst-parser==4.0.0",
"pytest-ruff==0.4.1",
]

[tool.pytest.ini_options]
testpaths = "_*"
addopts = "--ff --ruff --ruff-format"
norecursedirs = "_build _static _templates"

[tool.ruff]
target-version = "py312"
# extend-exclude = ["*_legacy"]

[tool.ruff.lint]
extend-select = ["I"]

[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

10 changes: 0 additions & 10 deletions requirements.txt

This file was deleted.

652 changes: 652 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit f4b0e1d

Please sign in to comment.