-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework class / namespace discovery #456
Open
Wuestengecko
wants to merge
2
commits into
master
Choose a base branch
from
class-discovery
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wuestengecko
force-pushed
the
class-discovery
branch
3 times, most recently
from
October 14, 2024 15:07
ab8e8a6
to
12d008f
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
4 times, most recently
from
October 18, 2024 08:01
bf99b03
to
98e903d
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
3 times, most recently
from
November 14, 2024 09:03
7e13af6
to
e6a3963
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
from
November 14, 2024 11:23
e6a3963
to
1bb1abe
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
3 times, most recently
from
November 18, 2024 13:18
1ca4fa8
to
bb63451
Compare
This was referenced Nov 18, 2024
Wuestengecko
force-pushed
the
class-discovery
branch
from
November 19, 2024 15:05
bb63451
to
2b0b8c2
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
3 times, most recently
from
November 27, 2024 14:12
58ce90d
to
c1cf3c0
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
6 times, most recently
from
December 13, 2024 13:41
c3f5125
to
43f0f85
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
from
December 13, 2024 14:20
43f0f85
to
ee2c6de
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
5 times, most recently
from
December 16, 2024 17:40
e701888
to
9394970
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
from
December 16, 2024 18:35
9394970
to
4cfea11
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
2 times, most recently
from
December 18, 2024 09:04
bcd22a4
to
deb8e14
Compare
Wuestengecko
force-pushed
the
class-discovery
branch
from
December 18, 2024 10:14
deb8e14
to
f4b51b0
Compare
This commit reworks the discovery of metamodel classes and namespaces. It introduces the `Namespace` object, whose instances keep track of the contained classes. Namespace objects are discovered through the Python entrypoint system. This makes extending the metamodel significantly easier. It's no longer necessary to add weirdly formatted entries into barely documented dictionaries, with errors only appearing at some arbitrary later point. Discovery of classes now happens via a custom metaclass by simply inheriting from `ModelElement`. This also allows additional metadata to be specified at subclassing time, which is especially relevant for namespace versioning. Due to this, the following decorators are now no longer needed and have been deprecated: - `@xtype_handler`: Was used to register classes for discovery, which is now done by the metaclass. - `@attr_equal`: This overwrites the `__eq__` method to compare against an attribute. Now handled by the `eq=...` class keyword argument.
Wuestengecko
force-pushed
the
class-discovery
branch
from
December 18, 2024 10:17
f4b51b0
to
2a340d5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.