Skip to content

Commit 4b77d6d

Browse files
committed
Rename test repo
1 parent 3a54a5a commit 4b77d6d

File tree

18 files changed

+50
-49
lines changed

18 files changed

+50
-49
lines changed

tests/cpp/run_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def subprocess_must_run(*args, **kwargs):
2424
root = abspath(dirname(__file__))
2525
os.chdir(root)
2626

27-
to_install = ["sw-caster-test", "sw-caster-consumer", "sw-test"]
27+
to_install = ["sw-test-base", "sw-caster-consumer", "sw-test"]
2828

2929
# First, uninstall packages
3030
subprocess_must_run(

tests/cpp/sw-caster-consumer/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ packages = ['src/sw_caster_consumer']
2020

2121
[tool.semiwrap]
2222
[tool.semiwrap.extension_modules."sw_caster_consumer._module"]
23-
depends = ["sw-caster-test", "sw-caster-test-pybind11"]
23+
depends = ["swtest-base", "swtest-base-pybind11"]
2424

2525
[tool.semiwrap.extension_modules."sw_caster_consumer._module".headers]
2626
fn = "cpp/more.h"

tests/cpp/sw-caster-test/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/cpp/sw-caster-test/pyproject.toml

Lines changed: 0 additions & 39 deletions
This file was deleted.

tests/cpp/sw-test-base/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/src/swtest_base/sw-caster-test-pybind11.pc
2+
/src/swtest_base/sw-caster-test-pybind11.pybind11.json
3+
/src/swtest_base/trampolines
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
project('sw-caster-test', ['cpp'],
1+
project('swtest-base', ['cpp'],
22
default_options: ['warning_level=1', 'cpp_std=c++20',
33
'b_colorout=auto', 'optimization=2', 'b_pie=true'])
44

55
subdir('wrapcfg')
66

7-
sw_caster_test__module_sources += files(
8-
'src/sw_caster_test/cpp/main.cpp',
7+
swtest_base__module_sources += files(
8+
'src/swtest_base/cpp/main.cpp',
99
)
1010

1111
subdir('wrapcfg/modules')
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = ["semiwrap"]
4+
5+
[project]
6+
description = "Test program"
7+
name = "sw-test-base"
8+
version = "0.0.1"
9+
10+
[project.entry-points.pkg_config]
11+
sw-test-base = 'swtest_base'
12+
13+
[tool.hatch.build.targets.wheel]
14+
packages = ['src/swtest_base']
15+
16+
[tool.hatch.build.hooks.semiwrap]
17+
18+
[tool.hatch.build.hooks.meson]
19+
20+
#
21+
# Semiwrap configuration
22+
#
23+
24+
[tool.semiwrap]
25+
[tool.semiwrap.extension_modules."swtest_base._module"]
26+
depends = ["sw-test-base-pybind11"]
27+
28+
[tool.semiwrap.extension_modules."swtest_base._module".headers]
29+
fn = "cpp/fn.h"
30+
31+
32+
33+
[tool.semiwrap.export_type_casters.sw-test-base-pybind11]
34+
pypackage = "swtest_base"
35+
includedir = "src/swtest_base/cpp/type_casters"
36+
37+
[[tool.semiwrap.export_type_casters.sw-test-base-pybind11.headers]]
38+
header = "inty_cast.h"
39+
types = ["inty"]

0 commit comments

Comments
 (0)