sysmlpy 0.33.5__tar.gz → 0.34.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.
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/PKG-INFO +12 -1
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/README.md +11 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/pyproject.toml +1 -1
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/__init__.py +5 -7
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr_parser.py +5 -20
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/plantuml.py +169 -1335
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/semantic.py +44 -22
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/LICENSE +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/__main__.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/README.md +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Parser.interp +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Parser.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2Parser.tokens +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2ParserListener.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/SysMLv2ParserVisitor.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/antlr_visitor.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/definition.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/examples/attribute_values.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/examples/part_attributes.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/examples/tuples_sequences.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/formatting.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/README.md +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.g4 +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.g4 +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.interp +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.tokens +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2ParserListener.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/SysMLv2ParserVisitor.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/desc.xml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/examples/camera.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/examples/toaster-system.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/examples/vehicle-model.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/antlr4/pom.xml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/grammar/classes.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/LICENSE +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/README.md +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/__init__.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Analysis/AnalysisTooling.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Analysis/SampledFunctions.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Analysis/StateSpaceRepresentation.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Analysis/TradeStudies.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Cause and Effect/CausationConnections.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Cause and Effect/CauseAndEffect.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Geometry/ShapeItems.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Geometry/SpatialItems.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Metadata/ImageMetadata.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Metadata/ModelingMetadata.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Metadata/ParametersOfInterestMetadata.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Metadata/RiskMetadata.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQ.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQAcoustics.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQAtomicNuclear.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQBase.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQCharacteristicNumbers.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQChemistryMolecular.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQCondensedMatter.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQElectromagnetism.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQInformation.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQLight.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQMechanics.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQSpaceTime.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/ISQThermodynamics.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/MeasurementRefCalculations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/MeasurementReferences.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/Quantities.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/QuantityCalculations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/SI.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/SIPrefixes.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/TensorCalculations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/Time.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/USCustomaryUnits.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Quantities and Units/VectorCalculations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Requirement Derivation/DerivationConnections.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/domain/Requirement Derivation/RequirementDerivation.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Base.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/BaseFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/BooleanFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Clocks.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/CollectionFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Collections.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/ComplexFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/ControlFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/ControlPerformances.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/DataFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/FeatureReferencingPerformances.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/IntegerFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/KerML.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Links.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Metaobjects.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/NaturalFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/NumericalFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Objects.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Observation.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/OccurrenceFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Occurrences.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Performances.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/RationalFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/RealFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/ScalarFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/ScalarValues.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/SequenceFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/SpatialFrames.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/StatePerformances.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/StringFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Transfers.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/TransitionPerformances.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/TrigFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/Triggers.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/VectorFunctions.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/kernel/VectorValues.kerml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Actions.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Allocations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/AnalysisCases.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Attributes.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Calculations.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Cases.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Connections.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Constraints.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Flows.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Interfaces.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Items.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Metadata.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Parts.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Ports.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Requirements.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/StandardViewDefinitions.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/States.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/SysML.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/UseCases.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/VerificationCases.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/library/systems/Views.sysml +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/navigate.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/project.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/store.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/us_customary_units.txt +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/usage.py +0 -0
- {sysmlpy-0.33.5 → sysmlpy-0.34.0}/src/sysmlpy/validator.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sysmlpy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.34.0
|
|
4
4
|
Summary:
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Jon R. Fox (mycr0ft)
|
|
@@ -838,6 +838,17 @@ See [`docs/plantuml-examples/`](docs/plantuml-examples/) for all rendered exampl
|
|
|
838
838
|
4. Added `load_from_grammar` handler for `PortionUsage` in `usage.py`.
|
|
839
839
|
5. PlantUML `_get_stereotype()` now includes `individual`/`timeslice`/`snapshot` prefixes (e.g. `<<timeslice part>>`, `<<individual part>>`).
|
|
840
840
|
|
|
841
|
+
- **v0.34.0** — Remove deprecated SysML v1.x diagram functions — BREAKING:
|
|
842
|
+
1. Removed `as_block_definition_view()`, `as_internal_block_diagram()`, `as_parametric_view()`, `as_requirement_view()`, `as_package_diagram_view()`.
|
|
843
|
+
2. Removed orphan helpers: `_extract_constraint_parameters()`, `_extract_requirement_relationships()`, `_extract_connection_endpoints()`.
|
|
844
|
+
3. Added `as_browser_view()` using PlantUML `@startwbs` syntax for hierarchical model tree.
|
|
845
|
+
4. Removed 34 corresponding tests.
|
|
846
|
+
5. All standard SysML v2 views remain: GV, IV, AV, STV, SV, GRV, BV, GEV.
|
|
847
|
+
|
|
848
|
+
- **v0.33.6** — Fix library import resolution with custom library paths:
|
|
849
|
+
1. Threaded `lib_roots` through `build_from_model()` → `_resolve_imports()` → `_resolve_membership_import()` / `_resolve_namespace_import()` for `LibrarySymbolIndex` fallback.
|
|
850
|
+
2. `import CustomTypes::*` now resolves correctly when `CustomTypes` is in a user-provided library path.
|
|
851
|
+
|
|
841
852
|
- **v0.33.5** — Fix `DefaultInterfaceEnd` keyword injection:
|
|
842
853
|
1. Removed spurious `part` keyword from interface ends without explicit `part`/`item`/`port` prefix.
|
|
843
854
|
2. Bare `end e1 : Type;` now round-trips correctly as `end e1: Type;` (no extraneous `part`).
|
|
@@ -813,6 +813,17 @@ See [`docs/plantuml-examples/`](docs/plantuml-examples/) for all rendered exampl
|
|
|
813
813
|
4. Added `load_from_grammar` handler for `PortionUsage` in `usage.py`.
|
|
814
814
|
5. PlantUML `_get_stereotype()` now includes `individual`/`timeslice`/`snapshot` prefixes (e.g. `<<timeslice part>>`, `<<individual part>>`).
|
|
815
815
|
|
|
816
|
+
- **v0.34.0** — Remove deprecated SysML v1.x diagram functions — BREAKING:
|
|
817
|
+
1. Removed `as_block_definition_view()`, `as_internal_block_diagram()`, `as_parametric_view()`, `as_requirement_view()`, `as_package_diagram_view()`.
|
|
818
|
+
2. Removed orphan helpers: `_extract_constraint_parameters()`, `_extract_requirement_relationships()`, `_extract_connection_endpoints()`.
|
|
819
|
+
3. Added `as_browser_view()` using PlantUML `@startwbs` syntax for hierarchical model tree.
|
|
820
|
+
4. Removed 34 corresponding tests.
|
|
821
|
+
5. All standard SysML v2 views remain: GV, IV, AV, STV, SV, GRV, BV, GEV.
|
|
822
|
+
|
|
823
|
+
- **v0.33.6** — Fix library import resolution with custom library paths:
|
|
824
|
+
1. Threaded `lib_roots` through `build_from_model()` → `_resolve_imports()` → `_resolve_membership_import()` / `_resolve_namespace_import()` for `LibrarySymbolIndex` fallback.
|
|
825
|
+
2. `import CustomTypes::*` now resolves correctly when `CustomTypes` is in a user-provided library path.
|
|
826
|
+
|
|
816
827
|
- **v0.33.5** — Fix `DefaultInterfaceEnd` keyword injection:
|
|
817
828
|
1. Removed spurious `part` keyword from interface ends without explicit `part`/`item`/`port` prefix.
|
|
818
829
|
2. Bare `end e1 : Type;` now round-trips correctly as `end e1: Type;` (no extraneous `part`).
|
|
@@ -14,15 +14,14 @@ __all__ = [
|
|
|
14
14
|
"Store", "InMemoryStore", "NetworkXStore", "KuzuStore", "CayleyStore", "create_store", "new_id",
|
|
15
15
|
"to_plantuml", "PlantUMLGenerator",
|
|
16
16
|
"as_action_flow_view", "as_interconnection_view", "as_state_transition_view",
|
|
17
|
-
"as_general_view", "as_package_view",
|
|
18
|
-
"as_parametric_view", "as_requirement_view",
|
|
17
|
+
"as_general_view", "as_package_view",
|
|
19
18
|
"as_tabular_view", "as_data_value_tabular_view", "as_relationship_matrix_view",
|
|
20
|
-
"as_sequence_view", "as_case_view",
|
|
19
|
+
"as_sequence_view", "as_case_view", "as_browser_view",
|
|
21
20
|
"analyze", "AnalysisResult", "SemanticIssue", "SemanticAnalyzer",
|
|
22
21
|
"SysMLSyntaxError",
|
|
23
22
|
]
|
|
24
23
|
__author__ = "Jon Fox"
|
|
25
|
-
__version__ = "0.
|
|
24
|
+
__version__ = "0.34.0"
|
|
26
25
|
|
|
27
26
|
from sysmlpy.usage import (
|
|
28
27
|
Item, Attribute, Part, Port, Action, Reference, UseCase, Requirement, Interface, Message,
|
|
@@ -260,10 +259,9 @@ def load_antlr(fp) -> Model:
|
|
|
260
259
|
|
|
261
260
|
from sysmlpy.plantuml import (to_plantuml, PlantUMLGenerator,
|
|
262
261
|
as_action_flow_view, as_interconnection_view, as_state_transition_view,
|
|
263
|
-
as_general_view, as_package_view,
|
|
264
|
-
as_parametric_view, as_requirement_view,
|
|
262
|
+
as_general_view, as_package_view,
|
|
265
263
|
as_tabular_view, as_data_value_tabular_view, as_relationship_matrix_view,
|
|
266
|
-
as_sequence_view, as_case_view)
|
|
264
|
+
as_sequence_view, as_case_view, as_browser_view)
|
|
267
265
|
|
|
268
266
|
from sysmlpy.semantic import analyze, AnalysisResult, SemanticIssue, SemanticAnalyzer
|
|
269
267
|
|
|
@@ -67,26 +67,11 @@ def parse(source, library=None):
|
|
|
67
67
|
else:
|
|
68
68
|
content = source
|
|
69
69
|
|
|
70
|
-
#
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for lib_path in library_paths:
|
|
76
|
-
lib_path = Path(lib_path)
|
|
77
|
-
if lib_path.exists() and lib_path.is_dir():
|
|
78
|
-
# Load all .sysml and .kerml files from library directory
|
|
79
|
-
for ext in ['*.sysml', '*.kerml']:
|
|
80
|
-
for lib_file in lib_path.glob(f'**/{ext}'):
|
|
81
|
-
try:
|
|
82
|
-
lib_content = lib_file.read_text(encoding='utf-8')
|
|
83
|
-
library_content.append(lib_content)
|
|
84
|
-
except Exception:
|
|
85
|
-
pass # Skip files that can't be read
|
|
86
|
-
|
|
87
|
-
# Prepend library content to main content
|
|
88
|
-
if library_content:
|
|
89
|
-
content = '\n\n'.join(library_content) + '\n\n' + content
|
|
70
|
+
# Library parameter — previously prepended library files to the parse input.
|
|
71
|
+
# Bundled library files use KerML syntax (datatype, classifier, standard library package)
|
|
72
|
+
# which the SysML v2 ANTLR grammar cannot parse. Library symbol resolution is handled
|
|
73
|
+
# by LibrarySymbolIndex (regex scanning) during semantic analysis (analyze()).
|
|
74
|
+
# The library parameter is accepted for API compatibility but the content is not prepended.
|
|
90
75
|
|
|
91
76
|
# Create input stream
|
|
92
77
|
input_stream = InputStream(content)
|