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