2021-01-31 01:03:50 +01:00
|
|
|
from setuptools import setup
|
|
|
|
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()
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="sphinx_gemini_builder",
|
2021-02-01 20:39:16 +01:00
|
|
|
version="1.1.0",
|
2021-01-31 01:03:50 +01:00
|
|
|
url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_gemini_builder",
|
|
|
|
license="EUPL 1.2",
|
|
|
|
author="Kujiu",
|
|
|
|
author_email="kujiu-pypi@kujiu.org",
|
|
|
|
description="Build gemini blog",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/x-rst",
|
|
|
|
packages=["sphinx_gemini_builder"],
|
|
|
|
cmdclass={
|
|
|
|
'translate': TranslateCommand,
|
|
|
|
},
|
|
|
|
package_data={
|
|
|
|
"sphinx_gemini_builder": [
|
|
|
|
"locale/*/LC_MESSAGES/*.po",
|
|
|
|
"locale/*/LC_MESSAGES/*.mo",
|
2021-02-02 03:07:17 +01:00
|
|
|
"templates/*.gmi",
|
2021-01-31 01:03:50 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
entry_points={
|
|
|
|
'sphinx.builders': [
|
|
|
|
'gemini = sphinx_gemini_builder',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
install_requires=["sphinx>=2.0.0"],
|
|
|
|
classifiers=[
|
|
|
|
"Framework :: Sphinx",
|
|
|
|
"Framework :: Sphinx :: Extension",
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.5",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Topic :: Documentation",
|
|
|
|
"Topic :: Software Development :: Documentation",
|
|
|
|
],
|
|
|
|
keywords="sphinx gemini gemlog",
|
|
|
|
project_urls={
|
|
|
|
"Source": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_gemini_builder",
|
|
|
|
"Issues": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_gemini_builder/issues",
|
|
|
|
},
|
|
|
|
)
|