pubs/setup.py
Olivier Mangin c21659eb98
Update dependencies and test to drop python 3.5 support.
The reason for dropping python 3.5 support is that it is not compatible
with the feedparser dependency. The version is anyway not supported any
more (security fixes stopped on 2020/09).
2020-11-07 17:27:58 -08:00

69 lines
1.9 KiB
Python

#!/usr/bin/env python
import os
import unittest
from setuptools import setup
with open('pubs/version.py') as f:
exec(f.read()) # defines __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'readme.md'), 'r') as fd:
long_description = fd.read()
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',
long_description=long_description,
long_description_content_type='text/markdown',
packages=['pubs',
'pubs.config',
'pubs.commands',
'pubs.templates',
'pubs.plugs',
'pubs.plugs.alias',
'pubs.plugs.git'],
entry_points={
'console_scripts': [
'pubs=pubs.pubs_cmd:execute',
],
},
include_package_data=True,
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
extras_require={'autocompletion': ['argcomplete'],
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
],
test_suite='tests',
tests_require=['pyfakefs>=3.4', 'mock', 'ddt==1.3.1', 'certifi', 'pytest'],
# in order to avoid 'zipimport.ZipImportError: bad local file header'
zip_safe=False,
)