Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing Manifest.in with pyproject.toml

Previously, when defining how to build a Python package, you can include folders using a line in Manifest.in:

recursive-include my_package/assets *

However, I would like to poetry and the associated pyproject.toml, instead of Manifest.in.

Can pyproject.toml replace Manifest.in? Alternatively, how can poetry be used with Manifest.in?

like image 360
Seanny123 Avatar asked Mar 02 '23 22:03

Seanny123


1 Answers

Yes, poetry aims to completely obsolete the use of Manifest.in files. The assumption is that every file that is part of your package should also be part of the distributable. So, as long as you follow a more or less standard project structure, Things Should Just Work™.

And if your package happens to be structured in a strange way, or you want to package files that for some reason aren't in the source folder, you can use the include and exclude sections for that.

like image 110
Arne Avatar answered May 17 '23 13:05

Arne