Skip to content

Custom subpackage name in poetry #6258

@renardeinside

Description

@renardeinside
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Hi everyone, I was looking for the following behaviour that could be done with setup.py:

setup(
    name="some_pkg",
    package_dir={
        "some_pkg": "some_pkg",
        "some_pkg.tests": "tests"
    },

There are some use-cases where this might be useful.
Is it something that could be achieved with poetry?
I would assume this behaviour could be done via:

[tool.poetry]
# ...
packages = [
    { include = "some_pkg" },
    { include = "some_pkg", from = "tests", name="some_pkg.tests" },
]

But I haven't seen such option in the docs. Is it something that could be done with poetry?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/build-systemRelated to PEP 517 packaging (see poetry-core)area/coreRelated to the poetry-core librarykind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions