Mercurial > hg > MakeItSo
view makeitso/python_package/setup.py @ 265:d3852c5beff9
https://docs.pytest.org/en/latest/goodpractices.html
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 01 Sep 2017 09:34:56 -0700 |
parents | 1c6807a22cea |
children |
line wrap: on
line source
""" setup packaging script for {{project}} """ import os version = "0.0" dependencies = {{dependencies}} # allow use of setuptools/distribute or distutils kw = {} try: from setuptools import setup kw['entry_points'] = """ {{console_scripts}} """ kw['install_requires'] = dependencies except ImportError: from distutils.core import setup kw['requires'] = dependencies try: here = os.path.dirname(os.path.abspath(__file__)) description = open(os.path.join(here, 'README.txt')).read() except IOError: description = '' setup(name='{{project}}', version=version, description="{{description}}", long_description=description, classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers author='{{author}}', author_email='{{email}}', url='{{url}}', license='', packages=['{{package}}'], include_package_data=True, setup_requires=['pytest-runner'], tests_require=['tox', 'pytest'], zip_safe=False, **kw )