Skip to content

Commit 79e67ab

Browse files
authored
Merge pull request #91 from dls-controls/ci-fixes
Move iocStats into softioc dir
2 parents 6903754 + e683ee3 commit 79e67ab

File tree

9 files changed

+14
-19
lines changed

9 files changed

+14
-19
lines changed

.github/workflows/code.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ jobs:
9393
- name: Build Wheel
9494
run: cibuildwheel --output-dir dist
9595
env:
96-
# Force old behaviour of pip - see https://github.com/pypa/cibuildwheel/issues/962
97-
CIBW_ENVIRONMENT: PIP_USE_DEPRECATED=out-of-tree-build
9896
CIBW_BUILD: ${{ matrix.python }}*64
9997
CIBW_TEST_EXTRAS: dev
10098
CIBW_TEST_COMMAND: pytest {project}/tests --cov-report xml:${{ matrix.cov_file }} --junit-xml=${{ matrix.results_file }}

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "iocStats"]
2-
path = iocStats
2+
path = softioc/iocStats
33
url = https://github.com/epics-modules/iocStats.git

setup.cfg

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ console_scripts =
2929
softioc =
3030
access.acf
3131
device.dbd
32-
devIocStats.dbd
33-
iocStatsDb/*
32+
iocStats/devIocStats/*
33+
iocStats/iocAdmin/Db/*
34+
# Include the OS specific files in the sdist, even
35+
# if not packages by setup.py (as we only build sdist on one arch)
36+
iocStats/devIocStats/os/default/*
37+
iocStats/devIocStats/os/Darwin/*
38+
iocStats/devIocStats/os/WIN32/*
39+
iocStats/devIocStats/os/Linux/*
3440

3541
[options.extras_require]
3642
# Useful extras for use at DLS
@@ -48,15 +54,6 @@ dev =
4854
cothread; sys_platform != "win32"
4955
p4p
5056

51-
# Include the OS specific files in the sdist, even
52-
# if not packages by setup.py (as we only build sdist on one arch)
53-
[options.data_files]
54-
iocStats/devIocStats = iocStats/devIocStats/*.c, iocStats/devIocStats/*.h
55-
iocStats/devIocStats/os/default = iocStats/devIocStats/os/default/*
56-
iocStats/devIocStats/os/Darwin = iocStats/devIocStats/os/Darwin/*
57-
iocStats/devIocStats/os/WIN32 = iocStats/devIocStats/os/WIN32/*
58-
iocStats/devIocStats/os/Linux = iocStats/devIocStats/os/Linux/*
59-
6057
[flake8]
6158
max-line-length = 80
6259
extend-ignore =

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"osdPIDInfo.c",
4141
]
4242

43-
devIocStats_src = os.path.join("iocStats", "devIocStats")
43+
devIocStats_src = os.path.join("softioc", "iocStats", "devIocStats")
4444
devIocStats_os = os.path.join(devIocStats_src, "os", get_config_var('OS_CLASS'))
4545
devIocStats_default = os.path.join(devIocStats_src, "os", "default")
4646

softioc/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
iocshRegisterCommon()
2020
for dbd in ('base.dbd', 'PVAServerRegister.dbd', 'qsrv.dbd'):
2121
dbLoadDatabase(dbd, os.path.join(path.base_path, 'dbd'), None)
22-
dbLoadDatabase('devIocStats.dbd', os.path.dirname(__file__), None)
22+
iocStats = os.path.join(os.path.dirname(__file__), "iocStats", "devIocStats")
23+
dbLoadDatabase('devIocStats.dbd', iocStats, None)
2324

2425
if registerRecordDeviceDriver(pdbbase):
2526
raise RuntimeError('Error registering')

softioc/devIocStats.dbd

Lines changed: 0 additions & 1 deletion
This file was deleted.

softioc/iocStatsDb

Lines changed: 0 additions & 1 deletion
This file was deleted.

softioc/softioc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def devIocStats(ioc_name):
292292
'''This will load a template for the devIocStats library with the specified
293293
IOC name. This should be called before `iocInit`'''
294294
substitutions = 'IOCNAME=' + ioc_name + ', TODFORMAT=%m/%d/%Y %H:%M:%S'
295-
iocstats_dir = os.path.join(os.path.dirname(__file__), 'iocStatsDb')
295+
iocstats_dir = os.path.join(
296+
os.path.dirname(__file__), 'iocStats', 'iocAdmin', 'Db')
296297
_add_records_from_file(iocstats_dir, 'ioc.template', substitutions)
297298

298299

0 commit comments

Comments
 (0)