Create a real module kiwixbuild and make it installable. Split files.

Make kiwix-build installable using pip.
Module is now called `kiwixbuild` because `kiwix-build` is not a valid
python identifier.

Also split toolchains in separated directory.
This commit is contained in:
Matthieu Gautier
2018-03-27 16:03:33 +02:00
parent 1513204f42
commit 97666b0fc9
36 changed files with 459 additions and 368 deletions

42
setup.py Normal file
View File

@ -0,0 +1,42 @@
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Doc: http://pythonhosted.org/setuptools/setuptools.html#including-data-files.
setup(
name='kiwix-build',
version="0.1",
description=('A tool to build kiwix and openzim projects.'),
long_description=long_description,
url='https://github.com/kiwix/kiwix-build/',
author='Matthieu Gautier',
author_email='mgautier@kymeria.fr',
license='GPLv3',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'kiwix-build = kiwixbuild:main'
]
}
)