-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support entry points #36
Comments
So… a relatively complex project where I used two kinds of entry point is this little private project… just created the
This project defines a CLI script, and a couple of "plug-ins" for a MQTT server library. I presume the GUI scripts work much the same way as CLI ones. {
"properties": {
"entry_points": {
"console_scripts": [
"wicen-rfid-api=wicenrfidapi.main:main"
],
"wicenrfidapi.amqtt.plugins": [
"auth_wicen=wicenrfidapi.amqtt.plugins.wicenauth:WICENAuthPlugin",
"event_logger_plugin=amqtt.plugins.logging:EventLoggerPlugin",
"packet_logger_plugin=amqtt.plugins.logging:PacketLoggerPlugin",
"topic_wicen=wicenrfidapi.amqtt.plugins.wicenacl:WICENACLPlugin",
"msg_wicen=wicenrfidapi.amqtt.plugins.wicenmsg:WICENMessagingPlugin",
"broker_sys=amqtt.plugins.sys.broker:BrokerSysPlugin"
]
}
}
} That at least tells me where the entry points are hiding. https://setuptools.pypa.io/en/latest/userguide/entry_point.html documents how |
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "wicenrfidapi"
version = "0.2.1"
dependencies = ["PyMySQL", "aiohttp", "aiohttp_cors", "amqtt", "argon2_cffi", "iso8601", "passlib", "pytz", "pyyaml", "signalslot", "sqlalchemy"]
[project.scripts]
wicen-rfid-api = "wicenrfidapi.main:main"
[project.entry-points."wicenrfidapi.amqtt.plugins"]
auth_wicen = "wicenrfidapi.amqtt.plugins.wicenauth:WICENAuthPlugin"
event_logger_plugin = "amqtt.plugins.logging:EventLoggerPlugin"
packet_logger_plugin = "amqtt.plugins.logging:PacketLoggerPlugin"
topic_wicen = "wicenrfidapi.amqtt.plugins.wicenacl:WICENACLPlugin"
msg_wicen = "wicenrfidapi.amqtt.plugins.wicenmsg:WICENMessagingPlugin"
broker_sys = "amqtt.plugins.sys.broker:BrokerSysPlugin" … looks pretty close. |
This issue entails adding support for writing the
entry-points
,gui-scripts
, andscripts
fields inpyproject.toml
when they are defined statically in the setuptools configuration.The text was updated successfully, but these errors were encountered: