From 3eb2ed77a4cc8096cf832c7e5af2f58017ab68e5 Mon Sep 17 00:00:00 2001 From: Stephen Anyango Date: Fri, 18 Sep 2020 21:12:13 +0100 Subject: [PATCH] Make into package for installation --- .gitignore | 1 + setup.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index b129bf6..4787f13 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ sample_data/* local-test.py .DS_Store *.pyc +**/*egg-info diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..860ac1c --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +from setuptools import setup + + +def readme(): + with open("README.md") as f: + return f.read() + + +setup( + name="funpdbe_validator", + version="0.1.0", + description="Validate JSON by FunPDBe Schema", + long_description=readme(), + classifiers=[ + "Development Status :: 3 - Beta", + "License :: OSI Approved :: Apache 2 License", + "Programming Language :: Python :: 3", + ], + keywords="json validator", + url="https://gitlab.ebi.ac.uk/pdbe-kb/funpdbe/funpdbe-validator", + author="Mihaly Varadi", + author_email="mvaradi@ebi.ac.uk", + license="Apache 2", + packages=["validator"], + install_requires=["jsonschema", "requests"], + test_suite="tests", + tests_require=["pytest", "pytest-cov"], + include_package_data=True, + zip_safe=True, +) +