Changeset 17:10ac53c60f3a in pyenvjasmine for setup.py


Ignore:
Timestamp:
Apr 24, 2015, 12:42:46 PM (9 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Bumped to version 0.1.2:

  • Removed setuptools import (was breaking the generation of source dist files, preventing additional package data files from being included)
  • Added a method to automatically find additional data files when generating source dist files
  • Added the author's email + maintainer information
  • Added README link to README.rst (distutils was complaining about it)
  • Added MANIFEST (autogenerated by distutils)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r16 r17  
    11import os
    2 import setuptools
    32from distutils.core import setup
    43
    5 version = '0.1.1'
     4version = '0.1.2'
    65
    76requires = [
     
    98    'coverage'
    109]
     10
     11def 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
    1122
    1223setup(
     
    1627    long_description=open('README.rst').read(),
    1728    author='Sascha Welter',
    18     author_email='',
     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        },
    1937    url='https://bitbucket.org/codigo23/pyenvjasmine',
    2038    download_url='http://pypi.python.org/pypi/pyenvjasmine#downloads',
    2139    license='BSD licence, see LICENSE',
    22     install_requires=requires,
     40    requires=requires,
    2341    classifiers=[
    2442        'Development Status :: 5 - Production/Stable',
Note: See TracChangeset for help on using the changeset viewer.