python packaging: data files (intermediate) anthony explains #071

preview_player
Показать описание
today I talk about packaging data / build files for python packages! This covers MANIFEST.in, include_package_data, package_data, source distributions and wheels!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Looked in several pages around, but only your tuto worked. Thanks!

lima
Автор

You make it look so easy 😂 it's confusing stuff, thanks for covering this

jackrorystaunton
Автор

Your tutorials are great, but I'm running into a problem that I don't see anywhere. My module (the main.py in your video) that has the script I'm trying to package isn't being included in the wheel or in the tar.gz dist
I have to put in an empty package above it, for it to be included... Every stackoverflow/packagingpython doc that I've seen lays it out like how you did and the main.py shows up. It just doesn't for me

foreyutoobe
Автор

So I uploaded a pygame to pypi using this kind of setup, but when I pip install it I'm getting a ModuleNotFound Error even though all my packages/package_data is in the site-library. Any advice?

foreyutoobe
Автор

How would I use the package_data option in setup.cfg to include a CSV file in a data directory at the root of the project (outside the package folder)? I tried

[options.package_data]
* = ../data/stuff.csv

but it had no effect.

jrib
Автор

As part of my package installation I need to download some binaries from a repo. These binaries are not part of my project!. Is there an alternative for `setuptools.command.install`?

talalkalai
Автор

I want to copy my 'doc' directory that is at the same level as setup.py inside 'pypkg' directory. Currently I subclass and do all the copying by hand, but that looks bad.

senyai