Skip to content

Commit

Permalink
nanobind packaging is working
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethassogba committed Nov 21, 2024
1 parent 980fcbc commit a0cf8e7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ nanobind_test.egg-info
_skbuild
/dist
__pycache__
.cache
*.pyd
*.egg-info
pyenv
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ target_compile_options(main PRIVATE -Wall -Wextra -Wconversion -pedantic)

# Install directive for scikit-build-core
if (SKBUILD)
install(TARGETS _demeter LIBRARY DESTINATION demeter)
install(TARGETS _demeter LIBRARY DESTINATION demeterpy)
endif()

# Tests
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ requires = ["scikit-build-core >=0.4.3", "nanobind >=1.3.2"]
build-backend = "scikit_build_core.build"

[project]
name = "demeter"
name = "demeterpy"
version = "0.0.1"
description = "A modern deterministic neutron transport solver for reactor simulations"
readme = "README.md"
requires-python = ">=3.8"
authors = [{ name = "Kenneth Assogba", email = "[email protected]" }]
classifiers = ["License :: OSI Approved :: AGPL-3.0 license"]
classifiers = ["License :: AGPL-3.0 license"]
# Optional: runtime dependency specification
# dependencies = [ "numpy", "matplotlib" ]

[project.urls]
Homepage = "https://github.com/kennethassogba/Demeter"
Expand Down
1 change: 0 additions & 1 deletion src/demeter/_demeter/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions src/demeterpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from ._demeter import Material, __doc__
2 changes: 1 addition & 1 deletion tests/regress/test00.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from demeter import *
from demeterpy import *
import numpy as np
import matplotlib.pyplot as plt

Expand Down

0 comments on commit a0cf8e7

Please sign in to comment.