2011-05-06 16:29:15 +06:00
|
|
|
#!/usr/bin/env python
|
2019-11-05 23:17:19 -08:00
|
|
|
|
2015-07-10 00:48:41 +03:00
|
|
|
from os import walk
|
2016-10-19 11:21:42 -06:00
|
|
|
from os.path import join, relpath
|
2015-07-10 00:48:41 +03:00
|
|
|
|
2020-08-20 19:20:51 +02:00
|
|
|
from setuptools import find_packages, setup
|
2010-12-19 01:30:08 +00:00
|
|
|
|
2019-07-03 23:31:38 +02:00
|
|
|
|
2022-07-11 17:51:01 +00:00
|
|
|
version = "4.8.0"
|
2019-07-03 23:31:38 +02:00
|
|
|
|
2021-03-23 08:06:58 +01:00
|
|
|
requires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments',
|
2019-11-17 20:30:07 +03:00
|
|
|
'docutils>=0.15', 'pytz >= 0a', 'blinker', 'unidecode',
|
2021-04-21 09:51:06 +02:00
|
|
|
'python-dateutil', 'rich']
|
2012-03-07 10:14:47 +00:00
|
|
|
|
2012-03-07 10:33:46 +00:00
|
|
|
entry_points = {
|
|
|
|
|
'console_scripts': [
|
2019-06-12 17:02:49 +10:00
|
|
|
'pelican = pelican.__main__:main',
|
2012-03-16 18:53:08 +00:00
|
|
|
'pelican-import = pelican.tools.pelican_import:main',
|
|
|
|
|
'pelican-quickstart = pelican.tools.pelican_quickstart:main',
|
2019-10-27 23:51:08 +03:00
|
|
|
'pelican-themes = pelican.tools.pelican_themes:main',
|
|
|
|
|
'pelican-plugins = pelican.plugins._utils:list_plugins'
|
2013-05-14 23:41:18 -07:00
|
|
|
]
|
2012-03-07 10:33:46 +00:00
|
|
|
}
|
2011-10-23 19:04:34 +02:00
|
|
|
|
2017-01-03 21:51:23 +03:00
|
|
|
README = open('README.rst', encoding='utf-8').read()
|
|
|
|
|
CHANGELOG = open('docs/changelog.rst', encoding='utf-8').read()
|
|
|
|
|
|
2019-11-05 23:17:19 -08:00
|
|
|
description = '\n'.join([README, CHANGELOG])
|
2012-12-04 01:53:52 +01:00
|
|
|
|
2010-08-19 04:23:07 +02:00
|
|
|
setup(
|
2016-12-12 14:00:11 -08:00
|
|
|
name='pelican',
|
2019-07-03 23:31:38 +02:00
|
|
|
version=version,
|
2018-04-11 19:08:33 +02:00
|
|
|
url='https://getpelican.com/',
|
2019-09-28 13:45:58 -07:00
|
|
|
author='Justin Mayer',
|
2012-12-04 01:21:57 +01:00
|
|
|
author_email='authors@getpelican.com',
|
2016-12-12 14:00:11 -08:00
|
|
|
description="Static site generator supporting reStructuredText and "
|
|
|
|
|
"Markdown source content.",
|
2019-09-28 13:45:58 -07:00
|
|
|
project_urls={
|
|
|
|
|
'Documentation': 'https://docs.getpelican.com/',
|
|
|
|
|
'Funding': 'https://donate.getpelican.com/',
|
|
|
|
|
'Source': 'https://github.com/getpelican/pelican',
|
|
|
|
|
'Tracker': 'https://github.com/getpelican/pelican/issues',
|
|
|
|
|
},
|
|
|
|
|
keywords='static web site generator SSG reStructuredText Markdown',
|
2018-04-11 19:08:33 +02:00
|
|
|
license='AGPLv3',
|
2017-01-03 21:51:23 +03:00
|
|
|
long_description=description,
|
2020-08-20 19:20:51 +02:00
|
|
|
long_description_content_type='text/x-rst',
|
2019-10-13 11:58:41 -07:00
|
|
|
packages=find_packages(),
|
|
|
|
|
include_package_data=True, # includes all in MANIFEST.in if in package
|
|
|
|
|
# NOTE : This will collect any files that happen to be in the themes
|
|
|
|
|
# directory, even though they may not be checked into version control.
|
|
|
|
|
package_data={ # pelican/themes is not a package, so include manually
|
2016-10-19 11:21:42 -06:00
|
|
|
'pelican': [relpath(join(root, name), 'pelican')
|
|
|
|
|
for root, _, names in walk(join('pelican', 'themes'))
|
|
|
|
|
for name in names],
|
2015-07-10 00:48:41 +03:00
|
|
|
},
|
2012-08-13 20:55:26 +02:00
|
|
|
install_requires=requires,
|
2019-10-09 11:08:39 +02:00
|
|
|
extras_require={
|
|
|
|
|
'Markdown': ['markdown~=3.1.1']
|
|
|
|
|
},
|
2012-08-13 20:55:26 +02:00
|
|
|
entry_points=entry_points,
|
|
|
|
|
classifiers=[
|
2017-04-26 10:34:47 -06:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
|
'Environment :: Console',
|
|
|
|
|
'Framework :: Pelican',
|
|
|
|
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Programming Language :: Python :: 3',
|
2018-04-11 19:08:33 +02:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2020-08-20 19:20:51 +02:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2021-10-06 09:51:00 +02:00
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2017-10-02 18:33:21 +03:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
2017-04-26 10:34:47 -06:00
|
|
|
'Topic :: Internet :: WWW/HTTP',
|
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
2012-08-13 20:55:26 +02:00
|
|
|
],
|
2013-03-06 00:41:27 -08:00
|
|
|
test_suite='pelican.tests',
|
2010-08-19 04:23:07 +02:00
|
|
|
)
|