zulip_bots: Add custom command for generating MANIFEST.in.

We now have a custom command in zulip_bots/setup.py to generate
a MANIFEST.in. To generate a MANIFEST for a PyPA release, we
can now run:

python setup.py gen_manifest --release

To generate a non-release MANIFEST, we can run:

python setup.py gen_manifest

This allows us to automate the MANIFEST generation in our
release automation script.
This commit is contained in:
Eeshan Garg 2017-09-20 01:42:40 -02:30 committed by Tim Abbott
parent dfe4360108
commit 07edd4aa9b
3 changed files with 41 additions and 2 deletions

View file

@ -5,9 +5,7 @@ from __future__ import print_function
import sys
# Before anything, generate MANIFEST.in
import generate_manifest
generate_manifest.generate_dev_manifest()
# We should be installable with either setuptools or distutils.
package_info = dict(
@ -31,6 +29,9 @@ package_info = dict(
],
},
include_package_data=True,
cmdclass={
'gen_manifest': generate_manifest.GenerateManifest,
},
) # type: Dict[str, Any]
setuptools_info = dict(