Skip to content

Commit

Permalink
BUILD: Resort to namespace packaging for (pseudo-)data directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSWang committed Aug 12, 2024
1 parent 84c5294 commit 73634a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ exclude .mailmap
exclude .pre-commit-config.yaml
exclude .readthedocs.yaml
exclude README.md
exclude CONTRIBUTING.md
exclude CITATION.md
exclude CITATION.cff
exclude NOTES.md
Expand Down
15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,16 @@ Documentation = "https://triumvirate.readthedocs.io/"
Source = "https://github.com/MikeSWang/Triumvirate"
Changelog = "https://github.com/MikeSWang/Triumvirate/blob/main/CHANGELOG.md"

[tool.setuptools]
include-package-data = true
# [tool.setuptools]
# include-package-data = true

[tool.setuptools.dynamic]
# version = {attr = 'triumvirate.__version__'}
readme = {file = "README.rst"}

[tool.setuptools.packages.find]
where = ['src']
namespaces = false
exclude = [
'triumvirate.include*',
'triumvirate.src*',
'triumvirate.resources*',
]
# [tool.setuptools.packages.find]
# where = ['src']
# namespaces = true

[tool.setuptools.package-data]
'triumvirate' = ["*.pxd", "*.pyx"]
Expand Down
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ project_urls =
Changelog = https://github.com/MikeSWang/Triumvirate/blob/main/CHANGELOG.md

[options]
packages = find:
packages = find_namespace:
package_dir=
=src
include_package_data = True
Expand All @@ -57,10 +57,6 @@ nbk =

[options.packages.find]
where = src
exclude =
triumvirate.include*
triumvirate.src*
triumvirate.resources*

[options.package_data]
triumvirate =
Expand All @@ -70,8 +66,6 @@ triumvirate.include =
*.hpp
triumvirate.src =
*.cpp
triumvirate.src.modules =
*.cpp
triumvirate.resources =
*.ini
*.yml
Expand Down

0 comments on commit 73634a8

Please sign in to comment.