Skip to content
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

Custom subpackage name in poetry #6258

Closed
2 tasks done
renardeinside opened this issue Aug 28, 2022 · 1 comment · Fixed by #8791
Closed
2 tasks done

Custom subpackage name in poetry #6258

renardeinside opened this issue Aug 28, 2022 · 1 comment · Fixed by #8791
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) area/core Related to the poetry-core library kind/feature Feature requests/implementations

Comments

@renardeinside
Copy link

  • 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?

@renardeinside renardeinside added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Aug 28, 2022
@renardeinside renardeinside changed the title Custom package name in poetry Custom subpackage name in poetry Aug 28, 2022
@radoering radoering added area/build-system Related to PEP 517 packaging (see poetry-core) area/core Related to the poetry-core library and removed status/triage This issue needs to be triaged labels Dec 18, 2023
Copy link

github-actions bot commented Mar 4, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) area/core Related to the poetry-core library kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants