Skip to content

Commit a9352ce

Browse files
committed
fix: Update noxfile and dependencies
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)
1 parent 08ab720 commit a9352ce

File tree

3 files changed

+669
-563
lines changed

3 files changed

+669
-563
lines changed

noxfile.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ def install_with_constraints(
1717
session.run(
1818
"poetry",
1919
"export",
20-
"--dev",
21-
"--format=requirements.txt",
20+
"--with",
21+
"dev",
22+
"--without-hashes",
23+
"--format=constraints.txt",
2224
f"--output={requirements.name}",
2325
external=True,
2426
)
@@ -28,7 +30,7 @@ def install_with_constraints(
2830
@nox.session(python=PYTHON_VERSIONS)
2931
def tests(session: Session) -> None:
3032
args = session.posargs or ["--cov"]
31-
session.run("poetry", "install", "--no-dev", external=True)
33+
session.run("poetry", "install", "--only", "main", external=True)
3234
install_with_constraints(session, "coverage[toml]", "pytest", "pytest-cov")
3335
session.run("pytest", *args)
3436

0 commit comments

Comments
 (0)