From 489561e773e9ad7212a12a21af2b62340610089a Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Sat, 7 Sep 2019 17:07:47 +0200 Subject: [PATCH 1/2] Fix underline length in `README.rst` --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f350409..b11919e 100644 --- a/README.rst +++ b/README.rst @@ -33,7 +33,7 @@ Notes This README might be slightly outdated. You can help by submitting a pull request. Exception handling --------------- +------------------ The methods of this library might throw client or server errors. An error is an exception coming from the proven From 5400f38c9c9f02e4f48724a852f013ec6a73494b Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Sat, 7 Sep 2019 17:14:43 +0200 Subject: [PATCH 2/2] Use standard library instead of some external dependencies --- orcid/orcid.py | 10 ++++++---- setup.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/orcid/orcid.py b/orcid/orcid.py index 9bd79ff..8557fe5 100644 --- a/orcid/orcid.py +++ b/orcid/orcid.py @@ -1,10 +1,12 @@ """Implementation of python-orcid library.""" -from bs4 import BeautifulSoup -import requests -import simplejson as json +import json import sys -from lxml import etree +from xml.etree import ElementTree as etree + +import requests +from bs4 import BeautifulSoup + if sys.version_info[0] == 2: from urllib import urlencode string_types = basestring, diff --git a/setup.py b/setup.py index 52ebef8..d504cf6 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ def run_tests(self): ], cmdclass={'test': PyTest}, description='A python wrapper over the ORCID API', - install_requires=['html5lib', 'beautifulsoup4', 'requests', 'simplejson', 'lxml'], + install_requires=['html5lib', 'beautifulsoup4', 'requests'], keywords=['orcid', 'api', 'wrapper'], license='BSD', long_description=open('README.rst', 'r').read(),