Skip to content

Adjust packaging scheme #907

Open
Open

Description

@Grimpper

Hello!

We just packaged python-zulip-api for Guix. However, there is an issue with how this project is organized for use to produce a complete package.

We've noticed that the integrations are not listed in pyproject.toml as binary scripts therefore they are not installed under the /bin directory of the package.

Would you consider making this adjustment so it's simpler to package in Linux distributions?

Thanks!

Activity

  1. Hellseher commented on Mar 11, 2026

    @Hellseher

    Hi,

    Usually any scripts which require execution permission are defined in

    [project.scripts]

    Then the build backed move it there and applies execution permission.

    See: https://setuptools.pypa.io/en/latest/userguide/quickstart.html#entry-points-and-automatic-script-creation

  2. timabbott commented on Mar 23, 2026

    @timabbott
    SponsorMember

    We're definitely open to tweaking this. Could you stop by #integrations in chat.zulip.org and describe with some more detail why you need this change? That's where we make decisions and can bring in the folks needed to approve a change, and I don't off the top of my head know which specific scripts you have in mind.

  3. Hellseher commented on Mar 29, 2026

    @Hellseher

    Hello @timabbott

    I see some scripts are present in setupt.py

        entry_points={
            "console_scripts": [
                "zulip-send=zulip.send:main",
                "zulip-api-examples=zulip.api_examples:main",
                "zulip-matrix-bridge=integrations.bridge_with_matrix.matrix_bridge:main",
                "zulip-api=zulip.cli:cli",
            ],
        },

    May you just add all scripts from integration instead of trying to invoke them directly?

    ./irc-mirror.py --irc-server=IRC_SERVER --channel= --nick-prefix= --stream= [optional args]

    Each package in integration would require additional work to make it a proper Python package with main() entry point and __init__.py similar like integrations.bridge_with_matrix.matrix_bridge:main

    We started adding it on Guix package side, but it feels the wrong way so better upstream it first ;-)

    https://codeberg.org/guix/guix/pulls/7418

  4. Grimpper commented on Mar 30, 2026

    @Grimpper
    Author

    We're definitely open to tweaking this. Could you stop by #integrations in chat.zulip.org and describe with some more detail why you need this change? That's where we make decisions and can bring in the folks needed to approve a change, and I don't off the top of my head know which specific scripts you have in mind.

    As requested I described what @Hellseher suggest here: #integrations > Adjust packaging scheme @ 💬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions