moreniius 0.2.5__tar.gz → 0.3.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 (29) hide show
  1. {moreniius-0.2.5/src/moreniius.egg-info → moreniius-0.3.0}/PKG-INFO +10 -4
  2. {moreniius-0.2.5 → moreniius-0.3.0}/pyproject.toml +11 -4
  3. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/instance.py +1 -1
  4. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/instr.py +2 -2
  5. {moreniius-0.2.5 → moreniius-0.3.0/src/moreniius.egg-info}/PKG-INFO +10 -4
  6. moreniius-0.3.0/src/moreniius.egg-info/requires.txt +4 -0
  7. moreniius-0.2.5/src/moreniius.egg-info/requires.txt +0 -7
  8. {moreniius-0.2.5 → moreniius-0.3.0}/.github/workflows/pip.yml +0 -0
  9. {moreniius-0.2.5 → moreniius-0.3.0}/.github/workflows/wheels.yml +0 -0
  10. {moreniius-0.2.5 → moreniius-0.3.0}/.gitignore +0 -0
  11. {moreniius-0.2.5 → moreniius-0.3.0}/README.md +0 -0
  12. {moreniius-0.2.5 → moreniius-0.3.0}/setup.cfg +0 -0
  13. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/__init__.py +0 -0
  14. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/additions.py +0 -0
  15. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/__init__.py +0 -0
  16. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/comp.py +0 -0
  17. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/mccode.py +0 -0
  18. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/mccode/orientation.py +0 -0
  19. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/moreniius.py +0 -0
  20. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/nexus_structure.py +0 -0
  21. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/nxoff.py +0 -0
  22. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/utils.py +0 -0
  23. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius/writer.py +0 -0
  24. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius.egg-info/SOURCES.txt +0 -0
  25. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius.egg-info/dependency_links.txt +0 -0
  26. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius.egg-info/entry_points.txt +0 -0
  27. {moreniius-0.2.5 → moreniius-0.3.0}/src/moreniius.egg-info/top_level.txt +0 -0
  28. {moreniius-0.2.5 → moreniius-0.3.0}/tests/test_motorized_positions.py +0 -0
  29. {moreniius-0.2.5 → moreniius-0.3.0}/tests/test_nexus_structure.py +0 -0
@@ -1,14 +1,20 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: moreniius
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  Classifier: License :: OSI Approved :: BSD License
6
6
  Classifier: Development Status :: 2 - Pre-Alpha
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
7
14
  Description-Content-Type: text/markdown
8
15
  Requires-Dist: zenlog>=1.1
9
16
  Requires-Dist: platformdirs>=3.11
10
- Requires-Dist: importlib_metadata; python_version < "3.8"
11
- Requires-Dist: mccode-antlr[hdf5]>=0.9.2
17
+ Requires-Dist: mccode-antlr[hdf5]>=0.13.0
12
18
  Requires-Dist: nexusformat>=1.0.6
13
19
 
14
20
  # moreniius
@@ -7,8 +7,7 @@ name = "moreniius"
7
7
  dependencies = [
8
8
  'zenlog>=1.1',
9
9
  'platformdirs>=3.11',
10
- "importlib_metadata; python_version<'3.8'",
11
- 'mccode-antlr[hdf5]>=0.9.2',
10
+ 'mccode-antlr[hdf5]>=0.13.0',
12
11
  'nexusformat>=1.0.6'
13
12
  ]
14
13
  readme = "README.md"
@@ -17,7 +16,14 @@ authors = [
17
16
  ]
18
17
  classifiers = [
19
18
  "License :: OSI Approved :: BSD License",
20
- "Development Status :: 2 - Pre-Alpha"
19
+ "Development Status :: 2 - Pre-Alpha",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3 :: Only",
22
+ "Programming Language :: Python :: 3.9",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
21
27
  ]
22
28
  dynamic = ["version"]
23
29
 
@@ -31,6 +37,7 @@ legacy_tox_ini = """
31
37
  [tox]
32
38
  min_version = 4.0
33
39
  env_list =
40
+ py313
34
41
  py312
35
42
  py311
36
43
  py310
@@ -40,7 +47,7 @@ legacy_tox_ini = """
40
47
  [testenv]
41
48
  deps =
42
49
  pytest
43
- git+https://github.com/g5t/mccode-to-kafka.git
50
+ mccode-to-kafka
44
51
  commands = pytest tests
45
52
 
46
53
  [testenv:type]
@@ -150,7 +150,7 @@ def register_translator(name, translator):
150
150
  Your translator must be a function with one input, the NXInstance object, and one output, a NeXus object.
151
151
  After you have defined your translator function, you can register it with this function.
152
152
 
153
- >>> import eniius
153
+ >>> import moreniius
154
154
  >>>
155
155
  >>> def my_translator(instance):
156
156
  >>> from nexusformat.nexus import NXguide
@@ -14,13 +14,13 @@ class NXInstr:
14
14
  def __post_init__(self):
15
15
  """Start the C translation to ensure McCode-oddities are handled before any C-code parsing."""
16
16
  from mccode_antlr.common import ShapeType, DataType, Value
17
- from mccode_antlr.translators.target import MCSTAS_GENERATOR
17
+ from mccode_antlr import Flavor
18
18
  from mccode_antlr.translators.c import CTargetVisitor
19
19
  from mccode_antlr.translators.c_listener import CDeclarator
20
20
  from mccode_antlr.translators.c_listener import evaluate_c_defined_expressions
21
21
  config = dict(default_main=True, enable_trace=False, portable=False, include_runtime=True,
22
22
  embed_instrument_file=False, verbose=False, output=None)
23
- translator = CTargetVisitor(self.instr, generate=MCSTAS_GENERATOR, config=config)
23
+ translator = CTargetVisitor(self.instr, flavor=Flavor.MCSTAS, config=config)
24
24
  # translator.instrument_uservars is a list of `CDeclaration` objects, which are named tuples with
25
25
  # fields: name type init is_pointer is_array orig
26
26
  # translator.component_uservars is a dictionary of lists for each component type of `CDeclaration` objects.
@@ -1,14 +1,20 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: moreniius
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  Classifier: License :: OSI Approved :: BSD License
6
6
  Classifier: Development Status :: 2 - Pre-Alpha
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
7
14
  Description-Content-Type: text/markdown
8
15
  Requires-Dist: zenlog>=1.1
9
16
  Requires-Dist: platformdirs>=3.11
10
- Requires-Dist: importlib_metadata; python_version < "3.8"
11
- Requires-Dist: mccode-antlr[hdf5]>=0.9.2
17
+ Requires-Dist: mccode-antlr[hdf5]>=0.13.0
12
18
  Requires-Dist: nexusformat>=1.0.6
13
19
 
14
20
  # moreniius
@@ -0,0 +1,4 @@
1
+ zenlog>=1.1
2
+ platformdirs>=3.11
3
+ mccode-antlr[hdf5]>=0.13.0
4
+ nexusformat>=1.0.6
@@ -1,7 +0,0 @@
1
- zenlog>=1.1
2
- platformdirs>=3.11
3
- mccode-antlr[hdf5]>=0.9.2
4
- nexusformat>=1.0.6
5
-
6
- [:python_version < "3.8"]
7
- importlib_metadata
File without changes
File without changes
File without changes