Skip to content

Commit

Permalink
Update package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Jul 17, 2023
1 parent 01a8088 commit e11ff09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion electrolytes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _save_user_constituents(components: Dict[str, Constituent]) -> None:


def _load_default_constituents() -> Dict[str, Constituent]:
data = pkgutil.get_data(__name__, "data/db1.json")
data = pkgutil.get_data(__name__, "db1.json")
if data is None:
raise RuntimeError("failed to load default constituents")

Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ Repository = "https://github.com/microfluidica/electrolytes"
[project.scripts]
electrolytes = "electrolytes.__main__:app"

[tool.setuptools]
packages = ["electrolytes"]

[tool.setuptools.dynamic]
version = {attr = "electrolytes.__version__"}

[tool.setuptools.package-data]
electrolytes = ["*.json"]

[tool.mypy]
plugins = ["pydantic.mypy"]

0 comments on commit e11ff09

Please sign in to comment.