offlate/setup.py

setup.py

1
from setuptools import setup, find_packages
2
import distutils
3
4
class LocalesCommand(distutils.cmd.Command):
5
    description='compile locale files'
6
    def run(self):
7
        command = ["make" "update-langs"]
8
        subprocess.check_call(command)
9
10
setup (
11
    name="offlate",
12
    version="0.4.0",
13
    packages=find_packages(exclude=['.guix-profile*']),
14
    python_requires = '>=3',
15
    install_requires=['polib', 'ruamel.yaml', 'python-dateutil', 'PyQt5', 'pygit2',
16
        'python-gitlab', 'translation-finder', 'android-stringslib', 'watchdog',
17
        'PyGithub'],
18
    entry_points={
19
        'gui_scripts': [
20
            'offlate=offlate.ui.main:main',
21
        ]
22
    },
23
24
    package_data={'offlate': ['data.json', 'locales/*.qm', 'locales/*.ts', 'icon.png']},
25
    cmdclass={
26
        'locales': LocalesCommand,
27
    },
28
29
    author="Julien Lepiller",
30
    author_email="julien@lepiller.eu",
31
    description="Offline translation interface for online translation tools.",
32
    license="GPLv3+",
33
    keywords="translation",
34
    url="https://framagit.org/tyreunom/offlate",
35
    classifiers=[
36
    # How mature is this project? Common values are
37
    #   3 - Alpha
38
    #   4 - Beta
39
    #   5 - Production/Stable
40
    'Development Status :: 3 - Alpha',
41
42
    # Indicate who your project is intended for
43
    'Intended Audience :: End Users/Desktop',
44
    'Topic :: Software Development :: Localization',
45
46
    # Pick your license as you wish (should match "license" above)
47
    'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
48
49
    # Specify the Python versions you support here. In particular, ensure
50
    # that you indicate whether you support Python 2, Python 3 or both.
51
    'Programming Language :: Python :: 3',
52
],
53
)
54