Skip to content

Commit

Permalink
chore: use rye to track dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jan 20, 2025
1 parent 21e87d7 commit e31aaf6
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 22 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ jobs:

- name: install dependencies
run: |
pip install -r requirements/base.txt
pip install -r requirements/docs.txt
- name: install self
run: pip install .
pip install -r requirements-dev.lock
pip install -r requirements-docs.txt
- name: sphinx build
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ permissions:
on:
push:
tags:
- "0.*"
- "1.*"

jobs:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:

- name: Install dependencies
run: |
pip install -r requirements/base.txt
pip install -r requirements/lint.txt
pip install -r requirements-dev.lock
- name: ruff lint
run: ruff check
Expand All @@ -58,8 +57,7 @@ jobs:

- name: Install dependencies
run: |
pip install -r requirements/base.txt
pip install -r requirements/tests.txt
pip install -r requirements-dev.lock
- name: Report coverage
run: pytest --cov=joserfc --cov-report=xml
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ where = ["src"]
[tool.setuptools.package-data]
joserfc = ["py.typed"]

[tool.rye]
managed = true
dev-dependencies = [
"mypy>=1.14.1",
"pytest>=8.3.4",
"pytest-cov>=5.0.0",
"pycryptodome>=3.21.0",
"ruff>=0.9.2",
]

[tool.ruff]
line-length = 120

Expand Down
42 changes: 42 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
cffi==1.17.1
# via cryptography
coverage==7.6.1
# via pytest-cov
cryptography==44.0.0
# via joserfc
exceptiongroup==1.2.2
# via pytest
iniconfig==2.0.0
# via pytest
mypy==1.14.1
mypy-extensions==1.0.0
# via mypy
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pycparser==2.22
# via cffi
pycryptodome==3.21.0
pytest==8.3.4
# via pytest-cov
pytest-cov==5.0.0
ruff==0.9.2
tomli==2.2.1
# via coverage
# via mypy
# via pytest
typing-extensions==4.12.2
# via mypy
File renamed without changes.
18 changes: 18 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
cffi==1.17.1
# via cryptography
cryptography==44.0.0
# via joserfc
pycparser==2.22
# via cffi
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/base.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/lint.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/tests.txt

This file was deleted.

0 comments on commit e31aaf6

Please sign in to comment.