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