diff --git a/.gitignore b/.gitignore index 242eb58..abdaec8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ test_elsapy.py *.log /data /test_data -/logs \ No newline at end of file +/logs +/dist +/build +/elsapy.egg-info \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md index c659853..926d164 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -## Copyright (c) 2016, Elsevier Inc. All rights reserved. +## Copyright (c) 2016-2017, Elsevier Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/elsapy/log_util.py b/elsapy/log_util.py index 5b20940..6219cf8 100644 --- a/elsapy/log_util.py +++ b/elsapy/log_util.py @@ -4,10 +4,11 @@ * https://dev.elsevier.com * https://api.elsevier.com""" -__version__ = '0.2' - import time, logging -from pathlib import Path +try: + from pathlib import Path +except ImportError: + from pathlib2 import Path ## Following adapted from https://docs.python.org/3/howto/logging-cookbook.html diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..926d164 --- /dev/null +++ b/license.txt @@ -0,0 +1,11 @@ +## Copyright (c) 2016-2017, Elsevier Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..224a779 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..71154d7 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from distutils.core import setup +from setuptools import find_packages +from elsapy.__init__ import version + +setup( + name = 'elsapy', + version = version, + description = "A Python module for use with Elsevier's APIs: Scopus, ScienceDirect, others - see https://api.elsevier.com", + author = 'Elsevier, Inc.', + author_email = 'integrationsupport@elsevier.com', + url = 'https://github.com/ElsevierDev/elsapy', + license = 'License :: OSI Approved :: BSD License', + download_url = 'https://github.com/peterldowns/mypackage/archive/0.1.tar.gz', # I'll explain this in a second + keywords = ['elsevier api', 'sciencedirect api', 'scopus api'], # arbitrary keywords + classifiers = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'License :: BSD 3-clause', + 'Programming Language :: Python :: 3', + ], + packages = find_packages(exclude=['contrib', 'docs', 'tests*']), + install_requires = ['requests'] +) \ No newline at end of file