restage 0.7.0__tar.gz → 0.7.1__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.7.0/src/restage.egg-info → restage-0.7.1}/PKG-INFO +1 -1
  2. {restage-0.7.0 → restage-0.7.1}/src/restage/cache.py +1 -1
  3. {restage-0.7.0 → restage-0.7.1/src/restage.egg-info}/PKG-INFO +1 -1
  4. {restage-0.7.0 → restage-0.7.1}/test/test_env_vars.py +9 -0
  5. {restage-0.7.0 → restage-0.7.1}/.github/workflows/pip.yml +0 -0
  6. {restage-0.7.0 → restage-0.7.1}/.github/workflows/wheels.yml +0 -0
  7. {restage-0.7.0 → restage-0.7.1}/.gitignore +0 -0
  8. {restage-0.7.0 → restage-0.7.1}/README.md +0 -0
  9. {restage-0.7.0 → restage-0.7.1}/pyproject.toml +0 -0
  10. {restage-0.7.0 → restage-0.7.1}/setup.cfg +0 -0
  11. {restage-0.7.0 → restage-0.7.1}/src/restage/__init__.py +0 -0
  12. {restage-0.7.0 → restage-0.7.1}/src/restage/bifrost_choppers.py +0 -0
  13. {restage-0.7.0 → restage-0.7.1}/src/restage/config/__init__.py +0 -0
  14. {restage-0.7.0 → restage-0.7.1}/src/restage/config/default.yaml +0 -0
  15. {restage-0.7.0 → restage-0.7.1}/src/restage/cspec_choppers.py +0 -0
  16. {restage-0.7.0 → restage-0.7.1}/src/restage/database.py +0 -0
  17. {restage-0.7.0 → restage-0.7.1}/src/restage/emulate.py +0 -0
  18. {restage-0.7.0 → restage-0.7.1}/src/restage/energy.py +0 -0
  19. {restage-0.7.0 → restage-0.7.1}/src/restage/instr.py +0 -0
  20. {restage-0.7.0 → restage-0.7.1}/src/restage/mcpl.py +0 -0
  21. {restage-0.7.0 → restage-0.7.1}/src/restage/range.py +0 -0
  22. {restage-0.7.0 → restage-0.7.1}/src/restage/run.py +0 -0
  23. {restage-0.7.0 → restage-0.7.1}/src/restage/scan.py +0 -0
  24. {restage-0.7.0 → restage-0.7.1}/src/restage/splitrun.py +0 -0
  25. {restage-0.7.0 → restage-0.7.1}/src/restage/tables.py +0 -0
  26. {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/SOURCES.txt +0 -0
  27. {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/dependency_links.txt +0 -0
  28. {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/entry_points.txt +0 -0
  29. {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/requires.txt +0 -0
  30. {restage-0.7.0 → restage-0.7.1}/src/restage.egg-info/top_level.txt +0 -0
  31. {restage-0.7.0 → restage-0.7.1}/test/test_cache.py +0 -0
  32. {restage-0.7.0 → restage-0.7.1}/test/test_cache_ro.py +0 -0
  33. {restage-0.7.0 → restage-0.7.1}/test/test_database.py +0 -0
  34. {restage-0.7.0 → restage-0.7.1}/test/test_energy.py +0 -0
  35. {restage-0.7.0 → restage-0.7.1}/test/test_range.py +0 -0
  36. {restage-0.7.0 → restage-0.7.1}/test/test_scan.py +0 -0
  37. {restage-0.7.0 → restage-0.7.1}/test/test_single.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: restage
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  License: BSD-3-Clause
6
6
  Classifier: License :: OSI Approved :: BSD License
@@ -26,7 +26,7 @@ class FileSystem:
26
26
  path.mkdir(parents=True)
27
27
  db_write = Database(path / named)
28
28
  root = path
29
- if config['fixed'].exists():
29
+ if config['fixed'].exists() and config['fixed'].get() is not None:
30
30
  more = [Path(c) for c in config['fixed'].as_str_seq() if Path(c).exists()]
31
31
  for m in more:
32
32
  db_fixed.append(Database(m / named, readonly=True))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: restage
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  License: BSD-3-Clause
6
6
  Classifier: License :: OSI Approved :: BSD License
@@ -31,6 +31,15 @@ class SettingsTests(TestCase):
31
31
  self.assertEqual(more[1],'/tmp/b')
32
32
  self.assertEqual(more[2],'/tmp/c')
33
33
 
34
+ @patch.dict(os.environ, {"RESTAGE_FIXED": ''})
35
+ def test_restage_none_fixed_config(self):
36
+ reload(restage.config)
37
+ from restage.config import config
38
+ from confuse.exceptions import ConfigTypeError
39
+ self.assertTrue(config['fixed'].exists())
40
+ self.assertTrue(config['fixed'].get() is None)
41
+ self.assertRaises(ConfigTypeError, config['fixed'].as_str_seq)
42
+
34
43
  def test_restage_standard_config(self):
35
44
  from os import environ
36
45
  reload(restage.config)
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