1
0
Fork 0
forked from github/pelican

Include the tests package in the source distribution

Fixes #2635
This commit is contained in:
Jason K. Moore 2019-10-13 11:58:41 -07:00 committed by Justin Mayer
commit 0731d061f9

View file

@ -3,7 +3,7 @@
from os import walk from os import walk
from os.path import join, relpath from os.path import join, relpath
from setuptools import setup from setuptools import setup, find_packages
version = "4.2.0" version = "4.2.0"
@ -44,19 +44,14 @@ setup(
keywords='static web site generator SSG reStructuredText Markdown', keywords='static web site generator SSG reStructuredText Markdown',
license='AGPLv3', license='AGPLv3',
long_description=description, long_description=description,
packages=['pelican', 'pelican.tools', 'pelican.plugins'], packages=find_packages(),
package_data={ include_package_data=True, # includes all in MANIFEST.in if in package
# we manually collect the package data, as opposed to using, # NOTE : This will collect any files that happen to be in the themes
# include_package_data=True because we don't want the tests to be # directory, even though they may not be checked into version control.
# included automatically as package data (MANIFEST.in is too greedy) package_data={ # pelican/themes is not a package, so include manually
'pelican': [relpath(join(root, name), 'pelican') 'pelican': [relpath(join(root, name), 'pelican')
for root, _, names in walk(join('pelican', 'themes')) for root, _, names in walk(join('pelican', 'themes'))
for name in names], for name in names],
'pelican.tools': [relpath(join(root, name), join('pelican', 'tools'))
for root, _, names in walk(join('pelican',
'tools',
'templates'))
for name in names],
}, },
install_requires=requires, install_requires=requires,
extras_require={ extras_require={