pubs/setup.py
Fabien C. Y. Benureau 938a53b8f5
python setup.py test + no connection case
- Make `python setup.py test work`. remove test/requirements.txt.
  fix #154
- Detect if no connection is present, and skip tests if not.
  stop-gap measure for issue #147
2018-08-06 11:20:50 +09:00

56 lines
1.6 KiB
Python

#!/usr/bin/env python
import unittest
from setuptools import setup
with open('pubs/version.py') as f:
exec(f.read()) # defines __version__
def pubs_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
setup(
name='pubs',
version=__version__,
author='Fabien Benureau, Olivier Mangin, Jonathan Grizou',
author_email='fabien.benureau@gmail.com',
maintainer='Olivier Mangin',
url='https://github.com/pubs/pubs',
description='command-line scientific bibliography manager',
packages=['pubs',
'pubs.config',
'pubs.commands',
'pubs.templates',
'pubs.plugs',
'pubs.plugs.alias'],
entry_points={
'console_scripts': [
'pubs=pubs.pubs_cmd:execute',
],
},
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
extras_require={'autocompletion': ['argcomplete'],
},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
],
test_suite= 'tests',
tests_require=['pyfakefs>=3.4', 'mock', 'ddt'],
# in order to avoid 'zipimport.ZipImportError: bad local file header'
zip_safe=False,
)