Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (40 sloc) 1.29 KB
import os
import re
from setuptools import find_packages, setup
def get_version(package):
path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
package, '__init__.py')
with open(path, 'r') as file:
source = file.read()
m = re.search(r'__version__ = ["\'](.+)["\']', source)
if m:
return m.group(1)
else:
return '0.0.0'
setup(
name='takuhai',
version=get_version('takuhai'),
description='A Pelican server',
url='https://github.com/daizutabi/takuhai',
author='daizutabi',
author_email='daizutabi@gmail.com',
license='MIT',
packages=find_packages(exclude=['tests', 'docs']),
include_package_data=True,
install_requires=['pelican', 'livereload', 'click'],
entry_points={
'console_scripts': [
'takuhai = takuhai.main:cli',
]
},
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Documentation',
],
)
# https://pypi.python.org/pypi?%3Aaction=list_classifiers