Skip to content

What is setup.py py_modules equivalent for poetry ? #4114

Closed Answered by aahnik
aahnik asked this question in Q&A
Discussion options

You must be logged in to vote

The thing is quite simple, I figured out with a little experimentation.

The file structure needs to be

your_module.py
pyproject.toml

Inside pyproject.toml, under [tool.poetry]

packages = [
	    { include = "your_module.py"},
]

I had thought the packages list could only contain packages (folder with proper __init__.py). But I was mistaken. You could also include modules directly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aahnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant