Fix #173: add MANIFEST.in with readme. Also add package data for test fixtures.

main
Olivier Mangin 6 years ago
parent 41de8b5aab
commit d931b977e4
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884

@ -0,0 +1 @@
include readme.md

@ -4,6 +4,7 @@ import unittest
from setuptools import setup
with open('pubs/version.py') as f:
exec(f.read()) # defines __version__
@ -11,11 +12,13 @@ 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__,
@ -40,6 +43,8 @@ setup(
],
},
include_package_data=True,
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
extras_require={'autocompletion': ['argcomplete'],
@ -54,7 +59,7 @@ setup(
'Intended Audience :: Science/Research',
],
test_suite= 'tests',
test_suite='tests',
tests_require=['pyfakefs>=3.4', 'mock', 'ddt'],
# in order to avoid 'zipimport.ZipImportError: bad local file header'

Loading…
Cancel
Save