forked from github/pelican
Fixes #2032
When following the steps in the Github contributor wiki flake8 reports PEP8 violation against setup.py and docs/conf.py.
This commit is contained in:
parent
b2231c40f7
commit
aa2c84a59c
2 changed files with 26 additions and 23 deletions
26
setup.py
26
setup.py
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
from os import walk
|
||||
from os.path import join, relpath, dirname
|
||||
from os.path import join, relpath
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
|
|
@ -31,22 +31,22 @@ setup(
|
|||
long_description=README + '\n' + CHANGELOG,
|
||||
packages=['pelican', 'pelican.tools'],
|
||||
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
|
||||
],
|
||||
# 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,
|
||||
entry_points=entry_points,
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||
'Operating System :: OS Independent',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue