Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pyproject.toml #22

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions octreelib/grid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains base classes and implementations for Grid, GridConfig
"""

import octreelib.grid.grid_base as grid_base_module
import octreelib.grid.grid as grid_module

Expand Down
1 change: 1 addition & 0 deletions octreelib/internal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains library's internal classes, functions and definitions
"""

import octreelib.internal.interfaces as interfaces_module
import octreelib.internal.point as point_module
import octreelib.internal.typing as typing_module
Expand Down
4 changes: 1 addition & 3 deletions octreelib/octree/octree.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def n_leaves(self):
return (
sum([child.n_leaves for child in self._children])
if self._has_children
else 1
if len(self._points) != 0
else 0
else 1 if len(self._points) != 0 else 0
)

@property
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[project]
name = "octreelib"
dependencies = [
"numpy",
]
version = "0.0.1"
dynamic = ["dependencies"]
version = "0.0.5"

[tool.setuptools]
include-package-data = false

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[tool.setuptools.packages.find]
exclude = ["test*"]
Loading