Packaging/MANIFEST.in: Incude All, Exclude .gitignore

Albert-Jan Roskam sjeik_appie at hotmail.com
Sat Mar 13 09:47:08 EST 2021


   you could call a simple bash script in a git hook that syncs your
   MANIFEST.in with your .gitignore. Something like:
   echo -n "exclude " > MANIFEST.in
   cat .gitignore | tr '\n' ' ' >> MANIFEST.in
   echo "graft $(readlink -f ./keep/this)" >> MANIFEST.in
   https://docs.python.org/2/distutils/sourcedist.html#commands
   On 1 Mar 2021 06:05, Abdur-Rahmaan Janhangeer <arj.python at gmail.com>
   wrote:

     Greetings list,

     SInce i have a .gitignore, how do i exclude
     all files and folders listed by my gitignore?
     How do i include everything by default?

     Kind Regards,

     Abdur-Rahmaan Janhangeer
     about <https://compileralchemy.github.io/> | blog
     <https://www.pythonkitchen.com>
     github <https://github.com/Abdur-RahmaanJ>
     Mauritius
     --
     https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list