Added Babel commands to setup.py for #32

This commit is contained in:
Balthasar Reuter
2018-08-23 16:44:17 +02:00
parent 70511c68ca
commit c8c3f78216
11 changed files with 173 additions and 104 deletions

View File

@@ -28,9 +28,21 @@ from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
# To compile message catalogs
from setuptools.command.sdist import sdist
here = path.abspath(path.dirname(__file__))
class Sdist(sdist):
"""Custom ``sdist`` command to ensure that mo files are always created."""
def run(self):
self.run_command('compile_catalog')
# sdist is an old style class so super cannot be used.
sdist.run(self)
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
@@ -196,6 +208,7 @@ setup(
#
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
# data_files=[('my_data', ['data/data_file'])], # Optional
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow