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 | license="GPLv3+", |
38 | keywords="translation", |
39 | url="https://framagit.org/tyreunom/offlate", |
40 | classifiers=[ |
41 | # How mature is this project? Common values are |
42 | # 3 - Alpha |
43 | # 4 - Beta |
44 | # 5 - Production/Stable |
45 | 'Development Status :: 3 - Alpha', |
46 | |
47 | # Indicate who your project is intended for |
48 | 'Intended Audience :: End Users/Desktop', |
49 | 'Topic :: Software Development :: Localization', |
50 | |
51 | # Pick your license as you wish (should match "license" above) |
52 | 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', |
53 | |
54 | # Specify the Python versions you support here. In particular, ensure |
55 | # that you indicate whether you support Python 2, Python 3 or both. |
56 | 'Programming Language :: Python :: 3', |
57 | ], |
58 | ) |
59 |