From 3c68d5c7722199b6c77c27e4966a27cbfbab1507 Mon Sep 17 00:00:00 2001 From: Sebastian Bassi Date: Fri, 22 Dec 2017 17:04:40 -0500 Subject: [PATCH 1/3] Adding data to setup.py --- allofplos/seed_corpus/__init__.py | 0 setup.py | 11 +++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 allofplos/seed_corpus/__init__.py diff --git a/allofplos/seed_corpus/__init__.py b/allofplos/seed_corpus/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index 66186128..62427a35 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name='allofplos', # https://packaging.python.org/en/latest/single_source_version.html - version='0.9.5', + version='0.9.6', description='Get and analyze all PLOS articles', long_description=long_description, url='https://github.com/PLOS/allofplos', @@ -55,9 +55,12 @@ # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. - ##package_data={ - ## 'sample': ['package_data.dat'], - ##}, + package_data={ + 'allofplos':['seed.db'], + 'seed_corpus': ['*.xml'], + }, + + #include_package_data=True, # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: From 8d4d900777a0faea5d2b78b2b1c3d5793370b0f0 Mon Sep 17 00:00:00 2001 From: Sebastian Bassi Date: Fri, 22 Dec 2017 17:49:15 -0500 Subject: [PATCH 2/3] Adding data to setup.py --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 62427a35..f4012037 100644 --- a/setup.py +++ b/setup.py @@ -32,8 +32,7 @@ 'Programming Language :: Python :: 3.6', ], keywords='science PLOS publishing', - #packages=find_packages(exclude=['contrib', 'docs', 'tests']), - packages=['allofplos'], + packages=find_packages(), # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: @@ -57,7 +56,7 @@ # have to be included in MANIFEST.in as well. package_data={ 'allofplos':['seed.db'], - 'seed_corpus': ['*.xml'], + 'allofplos.seed_corpus': ['*.xml'], }, #include_package_data=True, From 2b83c88ae98d3860251f83be9def64e2a15ac35d Mon Sep 17 00:00:00 2001 From: Sebastian Bassi Date: Fri, 22 Dec 2017 17:50:51 -0500 Subject: [PATCH 3/3] delete comment --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index f4012037..dae590ce 100644 --- a/setup.py +++ b/setup.py @@ -59,8 +59,6 @@ 'allofplos.seed_corpus': ['*.xml'], }, - #include_package_data=True, - # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa