Skip to content

Commit

Permalink
fix: Allow pydantic2 versions and version fix (#31)
Browse files Browse the repository at this point in the history
* fix: allow newer pydantic versions

* chore: update gitignore

* ci: version bump fix
  • Loading branch information
adamkirchberger committed Dec 11, 2023
1 parent 1c0b22b commit dfb2fd4
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 124 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ output
testing
examples
.coverage
nectl.log
nectl_checks.xml

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
6 changes: 3 additions & 3 deletions nectl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with Nectl. If not, see <http://www.gnu.org/licenses/>.

__version__ = "0.19.1"
__all__ = ["Nectl", "actions", "get_render_facts", "BaseDriver", "Host"]

from .nectl import Nectl
from .datatree.actions import Actions as actions
from .configs.template_utils import get_render_facts
from .configs.drivers.basedriver import BaseDriver
from .datatree.hosts import Host


__all__ = ["Nectl", "actions", "get_render_facts", "BaseDriver", "Host"]
3 changes: 2 additions & 1 deletion nectl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
except:
from pydantic.v1 import BaseSettings, ValidationError

from . import __version__
from .exceptions import SettingsFileError

KIT_FILEPATH = os.getenv("NECTL_KIT", "./kit.py")

APP_VERSION = "dev"
APP_VERSION = __version__
APP_DESCRIPTION = "Network control framework for network automation and orchestration."


Expand Down
Loading

0 comments on commit dfb2fd4

Please sign in to comment.