This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ludovic Ortega <[email protected]>
- Loading branch information
Showing
34 changed files
with
1,916 additions
and
2,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Setup poetry | ||
poetry install --with=dev | ||
poetry shell | ||
# Setup uv | ||
uv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Python release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
permissions: | ||
contents: write | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
- name: "Set up Python" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: ".python-version" | ||
- name: Install the project | ||
run: uv sync --all-extras | ||
- name: Publish package | ||
run: | | ||
sed -i -e "s/0.0.0/${GITHUB_REF#refs/*/}/" pyproject.toml | ||
uv build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,46 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "napalm-fsos-ssh" | ||
version = "0" | ||
version = "0.0.0" | ||
description = "Napalm driver for FSOS through SSH" | ||
authors = ["Ludovic Ortega <[email protected]>"] | ||
license = "CeCILL" | ||
authors = [ | ||
{name = "Ludovic Ortega", email = "[email protected]"} | ||
] | ||
readme = "README.md" | ||
homepage = "https://github.com/napalm-automation-community/napalm-fsos-ssh" | ||
repository = "https://github.com/napalm-automation-community/napalm-fsos-ssh" | ||
keywords = ["napalm", "fsos", "netmiko"] | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)", | ||
"Topic :: Utilities", | ||
] | ||
include = [ | ||
"LICENSE", | ||
"LICENSE.fr", | ||
|
||
requires-python = ">=3.9,<4.0.0" | ||
dependencies = [ | ||
"napalm>=4.0,<5.1" | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">3.8,<3.13" | ||
napalm = ">=4.0,<5.1" | ||
[project.urls] | ||
Homepage = "https://github.com/napalm-automation-community/napalm-fsos-ssh" | ||
Repository = "https://github.com/napalm-automation-community/napalm-fsos-ssh" | ||
Issues = "https://github.com/napalm-automation-community/napalm-fsos-ssh/issues" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = ">=7.4.4,<8.4.0" | ||
ruff = ">=0.5.0,<0.7.0" | ||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest~=8.3.3", | ||
"ruff~=0.7.0", | ||
] | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/napalm_fsos_ssh"] |
File renamed without changes.
Oops, something went wrong.