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