Fix #173: add MANIFEST.in with readme. Also add package data for test fixtures.
This commit is contained in:
parent
41de8b5aab
commit
d931b977e4
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include readme.md
|
5
setup.py
5
setup.py
@ -4,6 +4,7 @@ import unittest
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
with open('pubs/version.py') as f:
|
with open('pubs/version.py') as f:
|
||||||
exec(f.read()) # defines __version__
|
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:
|
with open(os.path.join(here, 'readme.md'), 'r') as fd:
|
||||||
long_description = fd.read()
|
long_description = fd.read()
|
||||||
|
|
||||||
|
|
||||||
def pubs_test_suite():
|
def pubs_test_suite():
|
||||||
test_loader = unittest.TestLoader()
|
test_loader = unittest.TestLoader()
|
||||||
test_suite = test_loader.discover('tests', pattern='test_*.py')
|
test_suite = test_loader.discover('tests', pattern='test_*.py')
|
||||||
return test_suite
|
return test_suite
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pubs',
|
name='pubs',
|
||||||
version=__version__,
|
version=__version__,
|
||||||
@ -40,6 +43,8 @@ setup(
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
include_package_data=True,
|
||||||
|
|
||||||
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
|
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'six',
|
||||||
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
|
'requests', 'configobj', 'beautifulsoup4', 'feedparser'],
|
||||||
extras_require={'autocompletion': ['argcomplete'],
|
extras_require={'autocompletion': ['argcomplete'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user