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'], |
17 | entry_points={ |
18 | 'gui_scripts': [ |
19 | 'offlate=offlate.ui.main:main', |
20 | ] |
21 | }, |
22 | |
23 | package_data={'offlate': ['data.json', 'locales/*.qm', 'locales/*.ts', 'icon.png']}, |
24 | cmdclass={ |
25 | 'locales': LocalesCommand, |
26 | }, |
27 | |
28 | author="Julien Lepiller", |
29 | author_email="julien@lepiller.eu", |
30 | description="Offline translation interface for online translation tools.", |
31 | license="GPLv3+", |
32 | keywords="translation", |
33 | url="https://framagit.org/tyreunom/offlate", |
34 | classifiers=[ |
35 | # How mature is this project? Common values are |
36 | # 3 - Alpha |
37 | # 4 - Beta |
38 | # 5 - Production/Stable |
39 | 'Development Status :: 3 - Alpha', |
40 | |
41 | # Indicate who your project is intended for |
42 | 'Intended Audience :: End Users/Desktop', |
43 | 'Topic :: Software Development :: Localization', |
44 | |
45 | # Pick your license as you wish (should match "license" above) |
46 | 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', |
47 | |
48 | # Specify the Python versions you support here. In particular, ensure |
49 | # that you indicate whether you support Python 2, Python 3 or both. |
50 | 'Programming Language :: Python :: 3', |
51 | ], |
52 | ) |
53 |