Skip to content

Commit 2872a54

Browse files
maint: Add common to main module (#25)
* maint: Add `common` to main module * fix: Paths * fix: conf.py import * fix: Package depth
1 parent 05589d4 commit 2872a54

File tree

14 files changed

+10
-10
lines changed

14 files changed

+10
-10
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
watermark,
1212
)
1313

14-
from ansys.tools import __version__
14+
from ansys.tools.common import __version__
1515

1616
# Project information
1717
project = "ansys-tools-common"
@@ -61,7 +61,7 @@
6161
],
6262
"ansys_sphinx_theme_autoapi": {
6363
"project": project,
64-
"package_depth": 2,
64+
"package_depth": 3,
6565
},
6666
"static_search": {
6767
"threshold": 0.5,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Documentation = "https://ansys.tools.docs.pyansys.com/"
6262
Releases = "https://github.com/ansys/ansys-tools-common/releases/"
6363

6464
[tool.flit.module]
65-
name = "ansys.tools"
65+
name = "ansys.tools.common"
6666

6767
[tool.ruff]
6868
line-length = 120
@@ -97,7 +97,7 @@ known-first-party = ["ansys"]
9797
convention = "numpy"
9898

9999
[tool.towncrier]
100-
package = "ansys.tools"
100+
package = "ansys.tools.common"
101101
directory = "doc/changelog.d"
102102
filename = "CHANGELOG.md"
103103
start_string = "<!-- towncrier release notes start -->\n"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/ansys/tools/versioning.py renamed to src/ansys/tools/common/versioning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from typing import Iterable, Optional, Union
2626

27-
from ansys.tools.exceptions import VersionError, VersionSyntaxError
27+
from ansys.tools.common.exceptions import VersionError, VersionSyntaxError
2828

2929

3030
def sanitize_version_string(version_string):

0 commit comments

Comments
 (0)