Skip to content

Commit 1980794

Browse files
author
sysadmin
committed
sync
1 parent b04ecc9 commit 1980794

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
## Directory
55
- `resources/EnergyPlus`
6-
TODO
6+
EnergyPlus base repository
77

88
## Usage
99
```
10-
from energyplus_core import pyenergyplus
10+
from energyplus.core import pyenergyplus
1111
```
1212

1313
## Setup
@@ -24,6 +24,7 @@ sh scripts/resources/EnergyPlus/update_release.sh
2424
```sh
2525
#SKBUILD_CMAKE_VERBOSE=true \
2626
SKBUILD_LOGGING_LEVEL="DEBUG" \
27+
SKBUILD_BUILD_DIR='build/{wheel_tag}' \
2728
SKBUILD_CMAKE_ARGS='
2829
-D CMAKE_BUILD_TYPE:STRING=Release;
2930
-D BUILD_FORTRAN:BOOL=OFF;

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ license = {file = "LICENSE.txt"}
1414
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
1515
cmake.source-dir = "resources/EnergyPlus"
1616
wheel.py-api = "cp38"
17-
wheel.packages = ["packages/energyplus_core"]
18-
wheel.install-dir = "energyplus_core/lib"
17+
wheel.packages = ["packages/energyplus"]
18+
wheel.install-dir = "energyplus/core/lib"
1919

2020
[tool.scikit-build.cmake.define]
2121
# NOTE required for pyenergyplus
2222
BUILD_PACKAGE = "ON"
2323

2424
# NOTE required section
2525
[tool.setuptools_scm]
26+
version_scheme = "no-guess-dev"
2627

2728
[project.optional-dependencies]
2829
test = ["pytest"]

tests/examples/energyplus_core/test_basic.py renamed to tests/examples/energyplus/core/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
class Test_basic:
44
@pytest.fixture
55
def test_(self, monkeypatch):
6-
with monkeypatch.syspath_prepend('./examples/energyplus_core'):
6+
with monkeypatch.syspath_prepend('./examples/energyplus/core'):
77
__import__('basic')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Test_:
22
def test_(self):
3-
from energyplus_core import pyenergyplus
3+
from energyplus.core import pyenergyplus
44
pyenergyplus.api.EnergyPlusAPI.api_version()
55

66
api = pyenergyplus.api.EnergyPlusAPI()

0 commit comments

Comments
 (0)