source: pyenvjasmine/setup.py@ 49:ce9136f79ee6

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

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

File size: 1.7 KB
RevLine 
[1]1import os
[49]2
3from setuptools import setup
[0]4
[46]5version = '0.3.1'
[0]6
[7]7requires = [
[26]8 'coverage',
[37]9 'pyflakes',
[26]10 'pytest',
[29]11 'pytest-cov',
[37]12 'pytest-flakes',
[7]13]
14
[17]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
[1]27setup(
28 name='pyenvjasmine',
29 version=version,
30 description="A Python wrapper for envjasmine",
[18]31 long_description=open('README').read(),
[1]32 author='Sascha Welter',
[17]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') + \
[44]39 ['runner.html', 'runner3.html', 'run-jasmine3.js']
[17]40 },
[46]41 url='https://code.codigo23.net/trac/wiki/pyenvjasmine',
[1]42 download_url='http://pypi.python.org/pypi/pyenvjasmine#downloads',
[14]43 license='BSD licence, see LICENSE',
[29]44 install_requires=requires,
[1]45 classifiers=[
46 'Development Status :: 5 - Production/Stable',
47 'Environment :: Console',
48 'Intended Audience :: Developers',
[21]49 'License :: OSI Approved :: BSD License',
[1]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.