Skip to content

Commit

Permalink
Rename typings to typing, bump version
Browse files Browse the repository at this point in the history
To match Python nomenclature.
Minor version change since no-one is using the typing outside the pip
package.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Sep 24, 2024
1 parent 6f23fe7 commit e0bbc9b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion adi_doctools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .lut import get_lut
from .role.interref import interref_repos_apply

__version__ = "0.3.44"
__version__ = "0.3.45"

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion adi_doctools/cli/hdl_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from os import path, walk, pardir, chdir, getcwd
from glob import glob

from ..typings.hdl import vendors, Library, Carrier, Project
from ..typing.hdl import vendors, Library, Carrier, Project
from ..parser.hdl import parse_hdl_regmap
from ..parser.hdl import resolve_hdl_regmap
from ..parser.hdl import expand_hdl_regmap
Expand Down
6 changes: 3 additions & 3 deletions adi_doctools/parser/hdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from lxml import etree
from os import path

from ..typings.hdl import Intf, IntfPort
from ..typings.hdl import Library, LibraryVendor
from ..typings.hdl import Project
from ..typing.hdl import Intf, IntfPort
from ..typing.hdl import Library, LibraryVendor
from ..typing.hdl import Project
from ..directive.string import string_hdl
from .tcl import tcl

Expand Down
2 changes: 1 addition & 1 deletion adi_doctools/typings/hdl.py → adi_doctools/typing/hdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Carrier(TypedDict):
class Project(TypedDict):
"""
__key__: some_project/carrier, some_project
name: some_project_carrier
name: some_project_carrier, some_project
lib_deps: my_ip, framework/framework_core
m_deps: some_constr.xdc
"""
Expand Down
6 changes: 3 additions & 3 deletions adi_doctools/writer/hdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from os import path

from ..__init__ import __version__
from ..typings.hdl import vendors, Library, Project
from ..typing.hdl import vendors, Library, Project

svpkg_fn_new0 = """
function new(
Expand Down Expand Up @@ -213,7 +213,7 @@ def write_hdl_regmap(
def write_hdl_library_makefile(
libraries: Dict[str, Library],
path_: str
) -> Tuple[str]:
) -> None:
library = libraries[path_]
fname = "Makefile"
file = path.join('library', path_, fname)
Expand Down Expand Up @@ -256,7 +256,7 @@ def write_hdl_library_makefile(
def write_hdl_project_makefile(
project: Dict[str, Project],
path_: str
) -> Tuple[str]:
) -> None:
project = project[path_]
fname = "Makefile"
file = path.join('projects', path_, fname)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hdl_interfaces.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import path

from adi_doctools.parser.hdl import parse_hdl_interfaces
from adi_doctools.typings.hdl import Intf
from adi_doctools.typing.hdl import Intf

intf_0 = Intf(
description=None,
Expand Down

0 comments on commit e0bbc9b

Please sign in to comment.