From a351d0e73d44e718fae28cc87a46f118d78edd7d Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Sun, 28 Jul 2024 09:20:18 -0700 Subject: [PATCH] chore: add --pre flag for (python) pre-release build --- noxfile.py | 3 +++ pyproject.toml | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/noxfile.py b/noxfile.py index a194021..b8e1b71 100644 --- a/noxfile.py +++ b/noxfile.py @@ -72,6 +72,9 @@ def parse_requirements(dev: bool = True) -> Dict[str, str]: def _get_install_test_args() -> List[str]: args = [".[dev]"] + if sys.platform == "darwin": + args = [".[dev-darwin]"] + if PRE: args.append("--pre") diff --git a/pyproject.toml b/pyproject.toml index bf9ce95..019e689 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,16 @@ Homepage = "https://github.com/scrapli/scrapli_netconf" [tool.setuptools.dynamic] version = { attr = "scrapli_netconf.__version__" } dependencies = { file = "requirements.txt" } +# dev-darwin is same as dev but excludes ssh2-python +optional-dependencies.dev-darwin = { file = [ + "requirements-dev.txt", + "requirements-textfsm.txt", + "requirements-genie.txt", + "requirements-ttp.txt", + "requirements-paramiko.txt", + "requirements-asyncssh.txt", + "requirements-community.txt", +] } optional-dependencies.dev = { file = [ "requirements-dev.txt", "requirements-paramiko.txt",