-
Notifications
You must be signed in to change notification settings - Fork 76
/
setup.py
executable file
·80 lines (72 loc) · 2.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
import io
from setuptools import setup
import txclib
readme_file = io.open('README.rst', 'rt', encoding='UTF-8')
long_description = readme_file.read()
readme_file.close()
package_data = {
'': ['LICENSE', 'README.rst'],
'txclib': ['*.pem'],
}
scripts = ['tx']
install_requires = []
extra_args = {}
import platform
if platform.system() == 'Windows':
from py2exe.build_exe import py2exe as build_exe
class MediaCollector(build_exe):
# See http://crazedmonkey.com/blog/python/pkg_resources-with-py2exe.html
def copy_extensions(self, extensions):
build_exe.copy_extensions(self, extensions)
self.copy_file(
'txclib/cacert.pem',
os.path.join(self.collect_dir, 'txclib/cacert.pem')
)
self.compiled_files.append('txclib/cacert.pem')
extra_args = {
'console': ['tx'],
'options': {'py2exe': {'bundle_files': 1}},
'zipfile': None,
'cmdclass': {'py2exe': MediaCollector},
}
setup(
name="transifex-client",
version=txclib.__version__,
scripts=scripts,
description="A command line interface for Transifex",
long_description=long_description,
author="Transifex",
author_email="[email protected]",
url="https://www.transifex.com",
license="GPLv2",
dependency_links=[
],
setup_requires=[
],
install_requires=install_requires,
tests_require=["mock", ],
data_files=[
],
test_suite="tests",
zip_safe=False,
packages=[
'txclib', 'txclib.packages', 'txclib.packages.urllib3',
'txclib.packages.urllib3.contrib',
'txclib.packages.urllib3.packages',
'txclib.packages.urllib3.packages.ssl_match_hostname',
],
include_package_data=True,
package_data=package_data,
keywords=('translation', 'localization', 'internationalization',),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
],
**extra_args
)