Skip to content

Commit

Permalink
chore: add --pre flag for (python) pre-release build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jul 28, 2024
1 parent 67d9293 commit a351d0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a351d0e

Please sign in to comment.