source: pyenvjasmine/setup.py

tip
Last change on this file was 49:ce9136f79ee6, checked in by Borja Lopez <borja@…>, 13 months ago

Import setup from setuptools, fixing some problems using distutils setup and
install_requires

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