Skip to content

Commit

Permalink
fix: Update noxfile and dependencies
Browse files Browse the repository at this point in the history
Update dependencies, update minimal python version to 3.6.1
Fix noxfile, generate constraint file using constraint format add
`--without-hashes` option to be able to install dependencies, see:
python-poetry/poetry#3472 (comment)
  • Loading branch information
boatx committed Aug 30, 2023
1 parent 08ab720 commit a9352ce
Show file tree
Hide file tree
Showing 3 changed files with 669 additions and 563 deletions.
8 changes: 5 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ def install_with_constraints(
session.run(
"poetry",
"export",
"--dev",
"--format=requirements.txt",
"--with",
"dev",
"--without-hashes",
"--format=constraints.txt",
f"--output={requirements.name}",
external=True,
)
Expand All @@ -28,7 +30,7 @@ def install_with_constraints(
@nox.session(python=PYTHON_VERSIONS)
def tests(session: Session) -> None:
args = session.posargs or ["--cov"]
session.run("poetry", "install", "--no-dev", external=True)
session.run("poetry", "install", "--only", "main", external=True)
install_with_constraints(session, "coverage[toml]", "pytest", "pytest-cov")
session.run("pytest", *args)

Expand Down
Loading

0 comments on commit a9352ce

Please sign in to comment.