Skip to content

Commit

Permalink
Add uv (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed May 25, 2024
1 parent ac223cf commit 4bfe4ed
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 70 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,18 @@ clean:
rm -rf .ruff_cache/
rm -rf dist/

compile-requirements:
compile-requirements-pip-tools:
source $(VENV) && python -m piptools compile --all-extras -o docs/requirements.txt pyproject.toml

compile-requirements-upgrade:
compile-requirements-upgrade-pip-tools:
source $(VENV) && python -m piptools compile --all-extras -o docs/requirements.txt pyproject.toml --upgrade

compile-requirements:
source $(VENV) && uv pip compile --all-extras -o docs/requirements.txt pyproject.toml

compile-requirements-upgrade:
source $(VENV) && uv pip compile --all-extras -o docs/requirements.txt pyproject.toml --upgrade

update-version:
#sed -i 's/"version": "[0-9.]\+"/"version": "$(VERSION)"/' package.json
sed -i 's/version = "[0-9.]\+"/version = "$(VERSION)"/' pyproject.toml
Expand Down
99 changes: 31 additions & 68 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --all-extras --output-file=docs/requirements.txt pyproject.toml
#
# This file was autogenerated by uv v0.1.2 via the following command:
# uv pip compile --all-extras -o docs/requirements.txt pyproject.toml --upgrade
alabaster==0.7.16
# via sphinx
asgiref==3.8.1
Expand All @@ -15,9 +11,7 @@ babel==2.15.0
backports-tarfile==1.1.1
# via jaraco-context
black==24.4.2
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
build==1.2.1
# via pip-tools
certifi==2024.2.2
Expand All @@ -31,24 +25,18 @@ click==8.1.7
# black
# pip-tools
# pydoclint
coverage[toml]==7.5.1
coverage==7.5.1
# via pytest-cov
cryptography==42.0.7
# via secretstorage
decorator==5.1.1
# via ipython
detect-secrets==1.5.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
django==5.0.6
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
doc8==1.1.1
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
docstring-parser-fork==0.0.5
# via pydoclint
docutils==0.19
Expand All @@ -65,6 +53,7 @@ exceptiongroup==1.2.1
# pytest
executing==2.0.1
# via stack-data
fake-py==0.6.9
idna==3.7
# via requests
imagesize==1.4.1
Expand All @@ -76,13 +65,9 @@ importlib-metadata==7.1.0
iniconfig==2.0.0
# via pytest
ipython==8.24.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
isort==5.13.2
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
jaraco-classes==3.4.0
# via keyring
jaraco-context==5.3.0
Expand Down Expand Up @@ -112,9 +97,7 @@ more-itertools==10.2.0
# jaraco-classes
# jaraco-functools
mypy==1.10.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
mypy-extensions==1.0.0
# via
# black
Expand All @@ -135,13 +118,13 @@ pbr==6.0.0
# via stevedore
pexpect==4.9.0
# via ipython
pip==24.0
# via pip-tools
pip-tools==7.4.1
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
pkginfo==1.10.0
# via twine
platformdirs==4.2.1
platformdirs==4.2.2
# via black
pluggy==1.5.0
# via pytest
Expand All @@ -154,9 +137,6 @@ pure-eval==0.2.2
pycparser==2.22
# via cffi
pydoclint==0.4.1
# via
# fake-py
# fake.py (pyproject.toml)
pygments==2.18.0
# via
# doc8
Expand All @@ -168,29 +148,22 @@ pyproject-hooks==1.1.0
# via
# build
# pip-tools
pytest==8.2.0
pytest==8.2.1
# via
# fake-py
# fake.py (pyproject.toml)
# pytest-cov
# pytest-django
pytest-cov==5.0.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
pytest-django==4.8.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
pytest-rst==0.1.5
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
pyyaml==6.0.1
# via detect-secrets
readme-renderer==43.0
# via twine
requests==2.31.0
requests==2.32.2
# via
# detect-secrets
# requests-toolbelt
Expand All @@ -204,31 +177,26 @@ rfc3986==2.0.0
# via twine
rich==13.7.1
# via twine
ruff==0.4.4
# via
# fake-py
# fake.py (pyproject.toml)
ruff==0.4.5
# via fake-py
secretstorage==3.3.3
# via keyring
setuptools==70.0.0
# via pip-tools
six==1.16.0
# via asttokens
snowballstemmer==2.2.0
# via sphinx
sphinx==5.3.0
# via
# fake-py
# fake.py (pyproject.toml)
# sphinx-no-pragma
# sphinx-rtd-theme
# sphinxcontrib-jquery
sphinx-no-pragma==0.1
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
sphinx-rtd-theme==2.0.0
# via
# fake-py
# fake.py (pyproject.toml)
# via fake-py
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-devhelp==1.0.6
Expand Down Expand Up @@ -263,11 +231,9 @@ traitlets==5.14.3
# via
# ipython
# matplotlib-inline
twine==5.0.0
# via
# fake-py
# fake.py (pyproject.toml)
typing-extensions==4.11.0
twine==5.1.0
# via fake-py
typing-extensions==4.12.0
# via
# asgiref
# black
Expand All @@ -277,13 +243,10 @@ urllib3==2.2.1
# via
# requests
# twine
uv==0.2.3
wcwidth==0.2.13
# via prompt-toolkit
wheel==0.43.0
# via pip-tools
zipp==3.18.1
zipp==3.18.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dev = [
"pydoclint",
"ruff",
"twine",
"uv",
]
test = [
"django",
Expand Down

0 comments on commit 4bfe4ed

Please sign in to comment.