Skip to content

Commit

Permalink
Switching from rye to uv.
Browse files Browse the repository at this point in the history
  • Loading branch information
abingham committed Sep 11, 2024
1 parent 2f55f9f commit 3637274
Show file tree
Hide file tree
Showing 7 changed files with 1,712 additions and 299 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
- uses: wntrblm/nox@2022.8.7
- name: Lint with flake8
run: nox -s lint
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session: nox.Session):
session.install("-r", "requirements-dev.lock")
session.run("uv", "sync")
command = ["pytest", "tests"] + list(session.posargs)
session.run(*command)


@nox.session
def lint(session):
session.install("-r", "requirements-dev.lock")
session.run("uv", "sync")

session.log("Checking syntax with flake8")
check_syntax = "python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics"
Expand Down
25 changes: 12 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,18 @@ local = "cosmic_ray.distribution.local:LocalDistributor"
[project.urls]
repository = "https://github.com/sixty-north/cosmic-ray"

[tool]
rye = { dev-dependencies = [
"hypothesis>=6.108.4",
"pytest>=8.3.1",
"pytest-mock>=3.14.0",
"flake8>=7.1.0",
"flake8-pyproject>=1.2.3",
"ruff>=0.5.4",
"bump-my-version>=0.24.3",
"nox>=2024.4.15",
"sphinx>=7.1.2",
"sphinx-rtd-theme>=2.0.0",
] }
[tool.uv]
dev-dependencies = [
"hypothesis",
"pytest",
"pytest-mock",
"ruff",
"bump-my-version",
"nox",
"sphinx",
"sphinx-rtd-theme",
"flake8",
]

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
200 changes: 0 additions & 200 deletions requirements-dev.lock

This file was deleted.

73 changes: 0 additions & 73 deletions requirements.lock

This file was deleted.

11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

Loading

0 comments on commit 3637274

Please sign in to comment.