offlate/setup.py

setup.py

1
from setuptools import setup, find_packages
2
import distutils
3
import os
4
5
class LocalesCommand(distutils.cmd.Command):
6
    description='compile locale files'
7
    def run(self):
8
        command = ["make" "update-langs"]
9
        subprocess.check_call(command)
10
11
12
version_file = open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'offlate', 'VERSION'))
13
version = version_file.read().strip()
14
15
setup (
16
    name="offlate",
17
    version=version,
18
    packages=find_packages(exclude=['.guix-profile*']),
19
    python_requires = '>=3',
20
    install_requires=['polib', 'ruamel.yaml', 'python-dateutil', 'PyQt5', 'pygit2',
21
        'python-gitlab', 'translation-finder', 'android-stringslib', 'watchdog',
22
        'PyGithub', 'lxml', 'pyenchant'],
23
    entry_points={
24
        'gui_scripts': [
25
            'offlate=offlate.ui.main:main',
26
        ]
27
    },
28
29
    package_data={'offlate': ['data.json', 'locales/*.qm', 'locales/*.ts', 'icon.png', 'VERSION']},
30
    cmdclass={
31
        'locales': LocalesCommand,
32
    },
33
34
    author="Julien Lepiller",
35
    author_email="julien@lepiller.eu",
36
    description="Offline translation interface for online translation tools.",
37
    long_description="""Offlate is a graphical interface designed for translators
38
of free and open source software.  Software projects in the free software community
39
use a wide range of online platforms (or no platform at all) to manage their
40
translations.  Offlate is able to connect to many different platforms, copy the
41
translations locally, and let you work on them on your computer, offline and in
42
a unified interface.""",
43
    license="GPLv3+",
44
    keywords="translation",
45
    url="https://framagit.org/tyreunom/offlate",
46
    classifiers=[
47
        # How mature is this project? Common values are
48
        #   3 - Alpha
49
        #   4 - Beta
50
        #   5 - Production/Stable
51
        'Development Status :: 3 - Alpha',
52
53
        # Indicate who your project is intended for
54
        'Intended Audience :: End Users/Desktop',
55
        'Topic :: Software Development :: Localization',
56
57
        # Pick your license as you wish (should match "license" above)
58
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
59
60
        # Specify the Python versions you support here. In particular, ensure
61
        # that you indicate whether you support Python 2, Python 3 or both.
62
        'Programming Language :: Python :: 3',
63
    ],
64
    project_urls={
65
        "Bug Tracker": "https://framagit.org/tyreunom/offlate/issues",
66
        "Source Code": "https://framagit.org/tyreunom/offlate",
67
        #"Documentation": "https://docs.example.com/HelloWorld/",
68
    },
69
)
70