Skip to content

Commit

Permalink
Package for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-de-vries committed Oct 21, 2017
1 parent ad689e3 commit 1785ee6
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,7 @@ test_elsapy.py
*.log
/data
/test_data
/logs
/logs
/dist
/build
/elsapy.egg-info
2 changes: 1 addition & 1 deletion 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:

Expand Down
7 changes: 4 additions & 3 deletions elsapy/log_util.py
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions 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.
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
24 changes: 24 additions & 0 deletions 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']
)

0 comments on commit 1785ee6

Please sign in to comment.