restage 0.5.1__tar.gz → 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {restage-0.5.1/src/restage.egg-info → restage-0.6.0}/PKG-INFO +2 -2
  2. {restage-0.5.1 → restage-0.6.0}/pyproject.toml +1 -1
  3. {restage-0.5.1 → restage-0.6.0}/src/restage/cache.py +6 -10
  4. {restage-0.5.1 → restage-0.6.0/src/restage.egg-info}/PKG-INFO +2 -2
  5. {restage-0.5.1 → restage-0.6.0}/src/restage.egg-info/requires.txt +1 -1
  6. {restage-0.5.1 → restage-0.6.0}/.github/workflows/pip.yml +0 -0
  7. {restage-0.5.1 → restage-0.6.0}/.github/workflows/wheels.yml +0 -0
  8. {restage-0.5.1 → restage-0.6.0}/.gitignore +0 -0
  9. {restage-0.5.1 → restage-0.6.0}/README.md +0 -0
  10. {restage-0.5.1 → restage-0.6.0}/setup.cfg +0 -0
  11. {restage-0.5.1 → restage-0.6.0}/src/restage/__init__.py +0 -0
  12. {restage-0.5.1 → restage-0.6.0}/src/restage/bifrost_choppers.py +0 -0
  13. {restage-0.5.1 → restage-0.6.0}/src/restage/config/__init__.py +0 -0
  14. {restage-0.5.1 → restage-0.6.0}/src/restage/config/default.yaml +0 -0
  15. {restage-0.5.1 → restage-0.6.0}/src/restage/cspec_choppers.py +0 -0
  16. {restage-0.5.1 → restage-0.6.0}/src/restage/database.py +0 -0
  17. {restage-0.5.1 → restage-0.6.0}/src/restage/emulate.py +0 -0
  18. {restage-0.5.1 → restage-0.6.0}/src/restage/energy.py +0 -0
  19. {restage-0.5.1 → restage-0.6.0}/src/restage/instr.py +0 -0
  20. {restage-0.5.1 → restage-0.6.0}/src/restage/mcpl.py +0 -0
  21. {restage-0.5.1 → restage-0.6.0}/src/restage/range.py +0 -0
  22. {restage-0.5.1 → restage-0.6.0}/src/restage/run.py +0 -0
  23. {restage-0.5.1 → restage-0.6.0}/src/restage/scan.py +0 -0
  24. {restage-0.5.1 → restage-0.6.0}/src/restage/splitrun.py +0 -0
  25. {restage-0.5.1 → restage-0.6.0}/src/restage/tables.py +0 -0
  26. {restage-0.5.1 → restage-0.6.0}/src/restage.egg-info/SOURCES.txt +0 -0
  27. {restage-0.5.1 → restage-0.6.0}/src/restage.egg-info/dependency_links.txt +0 -0
  28. {restage-0.5.1 → restage-0.6.0}/src/restage.egg-info/entry_points.txt +0 -0
  29. {restage-0.5.1 → restage-0.6.0}/src/restage.egg-info/top_level.txt +0 -0
  30. {restage-0.5.1 → restage-0.6.0}/test/test_cache.py +0 -0
  31. {restage-0.5.1 → restage-0.6.0}/test/test_cache_ro.py +0 -0
  32. {restage-0.5.1 → restage-0.6.0}/test/test_database.py +0 -0
  33. {restage-0.5.1 → restage-0.6.0}/test/test_energy.py +0 -0
  34. {restage-0.5.1 → restage-0.6.0}/test/test_env_vars.py +0 -0
  35. {restage-0.5.1 → restage-0.6.0}/test/test_range.py +0 -0
  36. {restage-0.5.1 → restage-0.6.0}/test/test_scan.py +0 -0
  37. {restage-0.5.1 → restage-0.6.0}/test/test_single.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: restage
3
- Version: 0.5.1
3
+ Version: 0.6.0
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  License: BSD-3-Clause
6
6
  Classifier: License :: OSI Approved :: BSD License
@@ -17,7 +17,7 @@ Requires-Dist: zenlog>=1.1
17
17
  Requires-Dist: platformdirs>=3.11
18
18
  Requires-Dist: confuse
19
19
  Requires-Dist: psutil>=5.9.6
20
- Requires-Dist: mccode-antlr[hdf5]>=0.12.0
20
+ Requires-Dist: mccode-antlr[hdf5]>=0.13.0
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest; extra == "test"
23
23
  Requires-Dist: chopcal; extra == "test"
@@ -9,7 +9,7 @@ dependencies = [
9
9
  'platformdirs>=3.11',
10
10
  'confuse',
11
11
  'psutil>=5.9.6',
12
- 'mccode-antlr[hdf5]>=0.12.0',
12
+ 'mccode-antlr[hdf5]>=0.13.0',
13
13
  ]
14
14
  readme = "README.md"
15
15
  license = {text = "BSD-3-Clause"}
@@ -107,24 +107,20 @@ def directory_under_module_data_path(sub: str, prefix=None, suffix=None, name=No
107
107
 
108
108
  def _compile_instr(entry: InstrEntry, instr: Instr, config: dict | None = None,
109
109
  mpi: bool = False, acc: bool = False,
110
- target=None, generator=None):
111
- from mccode_antlr import __version__
110
+ target=None, flavor=None):
111
+ from mccode_antlr import __version__, Flavor
112
112
  from mccode_antlr.compiler.c import compile_instrument, CBinaryTarget
113
113
  if config is None:
114
114
  config = dict(default_main=True, enable_trace=False, portable=False, include_runtime=True,
115
115
  embed_instrument_file=False, verbose=False)
116
116
  if target is None:
117
117
  target = CBinaryTarget(mpi=mpi or False, acc=acc or False, count=1, nexus=False)
118
- if generator is None:
119
- from mccode_antlr.translators.target import MCSTAS_GENERATOR
120
- generator = MCSTAS_GENERATOR
118
+ if flavor is None:
119
+ flavor = Flavor.MCSTAS
121
120
 
122
121
  output = directory_under_module_data_path('bin')
123
- # TODO consider adding `dump_source=True` _and_ putting the resulting file into
124
- # the cache in order to make debugging future problems a tiny bit easier.
125
- # FIXME a future mccode-antlr will support setting 'source_file={file_path}'
126
- # to allow exactly this.
127
- binary_path = compile_instrument(instr, target, output, generator=generator, config=config, dump_source=True)
122
+ source_file = output.joinpath(instr.name).with_suffix('.c')
123
+ binary_path = compile_instrument(instr, target, output, flavor=flavor, config=config, source_file=source_file)
128
124
  entry.mccode_version = __version__
129
125
  entry.binary_path = str(binary_path)
130
126
  return entry
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: restage
3
- Version: 0.5.1
3
+ Version: 0.6.0
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  License: BSD-3-Clause
6
6
  Classifier: License :: OSI Approved :: BSD License
@@ -17,7 +17,7 @@ Requires-Dist: zenlog>=1.1
17
17
  Requires-Dist: platformdirs>=3.11
18
18
  Requires-Dist: confuse
19
19
  Requires-Dist: psutil>=5.9.6
20
- Requires-Dist: mccode-antlr[hdf5]>=0.12.0
20
+ Requires-Dist: mccode-antlr[hdf5]>=0.13.0
21
21
  Provides-Extra: test
22
22
  Requires-Dist: pytest; extra == "test"
23
23
  Requires-Dist: chopcal; extra == "test"
@@ -2,7 +2,7 @@ zenlog>=1.1
2
2
  platformdirs>=3.11
3
3
  confuse
4
4
  psutil>=5.9.6
5
- mccode-antlr[hdf5]>=0.12.0
5
+ mccode-antlr[hdf5]>=0.13.0
6
6
 
7
7
  [test]
8
8
  pytest
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes