1 | import os
|
---|
2 | from distutils.core import setup
|
---|
3 |
|
---|
4 | version = '0.1.3'
|
---|
5 |
|
---|
6 | requires = [
|
---|
7 | 'nose',
|
---|
8 | 'coverage'
|
---|
9 | ]
|
---|
10 |
|
---|
11 | def get_package_data(package, path):
|
---|
12 | """
|
---|
13 | Return a list of files to be added as package_data for the given path
|
---|
14 | """
|
---|
15 | data = []
|
---|
16 | full_path = os.path.join(package, path)
|
---|
17 | for root, dirs, files in os.walk(full_path):
|
---|
18 | for f in files:
|
---|
19 | data.append(os.path.join(root.replace(package+'/', ''), f))
|
---|
20 | return data
|
---|
21 |
|
---|
22 |
|
---|
23 | setup(
|
---|
24 | name='pyenvjasmine',
|
---|
25 | version=version,
|
---|
26 | description="A Python wrapper for envjasmine",
|
---|
27 | long_description=open('README').read(),
|
---|
28 | author='Sascha Welter',
|
---|
29 | author_email='sw@betabug-sirius.ch',
|
---|
30 | maintainer='Francisco de Borja Lopez Rio',
|
---|
31 | maintainer_email='borja@codigo23.net',
|
---|
32 | packages=['pyenvjasmine'],
|
---|
33 | package_data = {
|
---|
34 | 'pyenvjasmine': get_package_data('pyenvjasmine', 'envjasmine') + \
|
---|
35 | ['runner.html']
|
---|
36 | },
|
---|
37 | url='https://bitbucket.org/codigo23/pyenvjasmine',
|
---|
38 | download_url='http://pypi.python.org/pypi/pyenvjasmine#downloads',
|
---|
39 | license='BSD licence, see LICENSE',
|
---|
40 | requires=requires,
|
---|
41 | classifiers=[
|
---|
42 | 'Development Status :: 5 - Production/Stable',
|
---|
43 | 'Environment :: Console',
|
---|
44 | 'Intended Audience :: Developers',
|
---|
45 | 'License :: OSI Approved :: Zope Public License',
|
---|
46 | 'Natural Language :: English',
|
---|
47 | 'Operating System :: OS Independent',
|
---|
48 | 'Programming Language :: Python :: 2',
|
---|
49 | 'Programming Language :: Python :: 3',
|
---|
50 | 'Programming Language :: JavaScript',
|
---|
51 | 'Topic :: Software Development',
|
---|
52 | 'Topic :: Software Development :: Testing',
|
---|
53 | ]
|
---|
54 | )
|
---|