-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
100 additions
and
463 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,4 +1,4 @@ | ||
__package__ = "pydantic_pkgr" | ||
__package__ = "abx_pkg" | ||
|
||
from .base_types import ( | ||
BinName, | ||
|
File renamed without changes.
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,6 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class PydanticPkgrConfig(AppConfig): | ||
class AbxPkgConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'pydantic_pkgr' | ||
name = 'abx_pkg' |
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,4 +1,4 @@ | ||
__package__ = "pydantic_pkgr" | ||
__package__ = "abx_pkg" | ||
|
||
import os | ||
import shutil | ||
|
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,4 +1,4 @@ | ||
__package__ = "pydantic_pkgr" | ||
__package__ = "abx_pkg" | ||
|
||
import os | ||
import sys | ||
|
2 changes: 1 addition & 1 deletion
2
pydantic_pkgr/binprovider_ansible.py → abx_pkg/binprovider_ansible.py
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,5 @@ | ||
#!/usr/bin/env python | ||
__package__ = 'pydantic_pkgr' | ||
__package__ = 'abx_pkg' | ||
|
||
import os | ||
import sys | ||
|
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,6 +1,6 @@ | ||
|
||
#!/usr/bin/env python | ||
__package__ = "pydantic_pkgr" | ||
__package__ = "abx_pkg" | ||
|
||
import sys | ||
import time | ||
|
2 changes: 1 addition & 1 deletion
2
pydantic_pkgr/binprovider_brew.py → abx_pkg/binprovider_brew.py
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,6 +1,6 @@ | ||
|
||
#!/usr/bin/env python3 | ||
__package__ = "pydantic_pkgr" | ||
__package__ = "abx_pkg" | ||
|
||
import os | ||
import sys | ||
|
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
2 changes: 1 addition & 1 deletion
2
pydantic_pkgr/binprovider_pyinfra.py → abx_pkg/binprovider_pyinfra.py
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,5 @@ | ||
#!/usr/bin/env python | ||
__package__ = 'pydantic_pkgr' | ||
__package__ = 'abx_pkg' | ||
|
||
import os | ||
import sys | ||
|
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,4 +1,4 @@ | ||
__package__ = 'pydantic_pkgr' | ||
__package__ = 'abx_pkg' | ||
|
||
import re | ||
import subprocess | ||
|
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,25 @@ | ||
from typing import Callable | ||
|
||
from django.conf import settings | ||
from django.utils.module_loading import import_string | ||
|
||
|
||
ABX_PKG_GET_ALL_BINARIES = getattr(settings, 'ABX_PKG_GET_ALL_BINARIES', 'abx_pkg.views.get_all_binaries') | ||
ABX_PKG_GET_BINARY = getattr(settings, 'ABX_PKG_GET_BINARY', 'abx_pkg.views.get_binary') | ||
|
||
|
||
if isinstance(ABX_PKG_GET_ALL_BINARIES, str): | ||
get_all_abx_pkg_binaries = import_string(ABX_PKG_GET_ALL_BINARIES) | ||
elif isinstance(ABX_PKG_GET_ALL_BINARIES, Callable): | ||
get_all_abx_pkg_binaries = ABX_PKG_GET_ALL_BINARIES | ||
else: | ||
raise ValueError('ABX_PKG_GET_ALL_BINARIES must be a function or dotted import path to a function') | ||
|
||
if isinstance(ABX_PKG_GET_BINARY, str): | ||
get_abx_pkg_binary = import_string(ABX_PKG_GET_BINARY) | ||
elif isinstance(ABX_PKG_GET_BINARY, Callable): | ||
get_abx_pkg_binary = ABX_PKG_GET_BINARY | ||
else: | ||
raise ValueError('ABX_PKG_GET_BINARY must be a function or dotted import path to a function') | ||
|
||
|
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
File renamed without changes.
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
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
Oops, something went wrong.