-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
53 lines (47 loc) · 1.64 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
import os
from setuptools import setup, find_packages
import shutil
version = '0.10'
# get documentation from the README
try:
here = os.path.dirname(os.path.abspath(__file__))
description = file(os.path.join(here, 'README.md')).read()
except (OSError, IOError):
description = ''
# dependencies
deps = ['marionette_client==0.5.27', 'mozdevice']
# copy atoms directory over
setupdir = os.path.dirname(__file__)
jsdir = os.path.join(setupdir, os.pardir, 'atoms')
pythondir = os.path.join(setupdir, 'gaiatest', 'atoms')
if os.path.isdir(jsdir):
if os.path.isdir(pythondir):
shutil.rmtree(pythondir)
print 'copying JS atoms from %s to %s' % (jsdir, pythondir)
shutil.copytree(jsdir, pythondir)
else:
if os.path.isdir(pythondir):
print 'using JS atoms from %s' % pythondir
else:
raise Exception('JS atoms not found in %s or %s!' % (jsdir, pythondir))
setup(name='gaiatest',
version=version,
description="Marionette test automation client for Gaia",
long_description=description,
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='mozilla',
author='Jonathan Griffin',
author_email='[email protected]',
url='https://developer.mozilla.org/en-US/docs/Marionette',
license='MPL',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
package_data={'gaiatest': ['atoms/*.js']},
include_package_data=True,
zip_safe=False,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
gaiatest = gaiatest.runtests:main
""",
install_requires=deps,
)