mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Avoid adding the tests in bdists (like wheel bdist). Supersedes and closes #1618.
This commit is contained in:
parent
2332563bda
commit
bd5dfa0b3e
1 changed files with 16 additions and 3 deletions
19
setup.py
19
setup.py
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from os import walk
|
||||||
|
from os.path import join, relpath, dirname
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
requires = ['feedgenerator >= 1.6', 'jinja2 >= 2.7', 'pygments', 'docutils',
|
requires = ['feedgenerator >= 1.6', 'jinja2 >= 2.7', 'pygments', 'docutils',
|
||||||
|
|
@ -14,11 +17,9 @@ entry_points = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
README = open('README.rst').read()
|
README = open('README.rst').read()
|
||||||
CHANGELOG = open('docs/changelog.rst').read()
|
CHANGELOG = open('docs/changelog.rst').read()
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pelican",
|
name="pelican",
|
||||||
version="3.6.1.dev",
|
version="3.6.1.dev",
|
||||||
|
|
@ -29,7 +30,19 @@ setup(
|
||||||
"Markdown input files.",
|
"Markdown input files.",
|
||||||
long_description=README + '\n' + CHANGELOG,
|
long_description=README + '\n' + CHANGELOG,
|
||||||
packages=['pelican', 'pelican.tools'],
|
packages=['pelican', 'pelican.tools'],
|
||||||
include_package_data=True,
|
package_data={
|
||||||
|
# we manually collect the package data, as opposed to using include_package_data=True
|
||||||
|
# because we don't want the tests to be included automatically as package data
|
||||||
|
# (MANIFEST.in is too greedy)
|
||||||
|
'pelican': [
|
||||||
|
relpath(join(root, name), 'pelican')
|
||||||
|
for root, _, names in walk(join('pelican', 'themes')) 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,
|
||||||
entry_points=entry_points,
|
entry_points=entry_points,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue