sphinx_storymaker/setup.py

78 lines
2.2 KiB
Python
Raw Normal View History

2020-06-27 02:10:10 +02:00
#!/usr/bin/env python3
from setuptools import setup, find_packages
2020-07-08 01:25:39 +02:00
import distutils
class TranslateCommand(distutils.cmd.Command):
description = "Translation"
user_options = []
sub_commands = [
('extract_messages', None),
('update_catalog', None),
('compile_catalog', None),
]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
for cmd_name in self.get_sub_commands():
self.run_command(cmd_name)
with open("README.rst", "r") as fh:
long_description = fh.read()
2020-06-27 02:10:10 +02:00
setup(
name='sphinx_storymaker',
2020-07-08 01:25:39 +02:00
version='0.1.0',
url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_storymaker",
license="EUPL 1.2",
author="Kujiu",
author_email="kujiu-pypi@kujiu.org",
descrption="Make your book and visual novel with Sphinx and Escoria",
keywords="novel sphinx escoria",
long_description=long_description,
long_description_content_type="text/x-rst",
packages=["sphinx_storymaker"],
cmdclass={
'translate': TranslateCommand,
},
package_data={
"sphinx_storymaker": [
"locale/*/LC_MESSAGES/*.mo",
"locale/*/LC_MESSAGES/*.po",
]
},
2020-06-27 02:10:10 +02:00
entry_points={
'sphinx.builders': [
'escoria = sphinx_storymaker.escoria_builder.EscoriaBuilder',
]
},
2020-07-08 01:25:39 +02:00
install_requires=[
"Sphinx>=3.0.0",
"sphinxcontrib-blockdiag"
],
2020-06-27 02:10:10 +02:00
license_files=["LICENSE", "LICENSE-de", "LICENSE-fr", "LICENSE-nl"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console :: Curses",
"Environment :: X11 Applications :: Qt",
"Framework :: Sphinx :: Extension",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Programming Language :: Python :: 3",
"Topic :: Artistic Software",
"Topic :: Games/Entertainment :: Role-Playing",
2020-07-08 01:25:39 +02:00
],
project_urls={
"Source": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_storymaker",
"Issues": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_storymaker/issues",
},
2020-06-27 02:10:10 +02:00
)