From 6119ff8451ea874c4d4610452ec8855a33ac10c5 Mon Sep 17 00:00:00 2001 From: jessamynsmith Date: Sat, 23 Sep 2017 21:36:24 -0400 Subject: [PATCH] Made package pip-installable --- .gitignore | 54 ++++++++++++++++++++++++++++++++ scholar/__init__.py | 0 scholar.py => scholar/scholar.py | 0 setup.py | 15 +++++++++ 4 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 scholar/__init__.py rename scholar.py => scholar/scholar.py (100%) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..db4561e --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ diff --git a/scholar/__init__.py b/scholar/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/scholar.py b/scholar/scholar.py similarity index 100% rename from scholar.py rename to scholar/scholar.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0839bac --- /dev/null +++ b/setup.py @@ -0,0 +1,15 @@ +from setuptools import setup + +setup(name='scholar', + version='0.1', + description='Get Google Scholar results', + url='https://github.com/ckreibich/scholar.py', + author='Christian Kreibich', + author_email='', + license='BSD', + packages=['scholar'], + install_requires=[ + 'beautifulsoup4', + ], + scripts=['scholar/scholar.py'], + zip_safe=False) \ No newline at end of file