From 141cc16e783cec01f99061267ca7f7a23d50d67f Mon Sep 17 00:00:00 2001 From: Lauren Ko Date: Wed, 14 Aug 2019 11:15:03 -0500 Subject: [PATCH 1/5] Update setup.py for first release --- setup.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 90d9f78..ec642ef 100644 --- a/setup.py +++ b/setup.py @@ -3,15 +3,22 @@ from setuptools import setup +with open('README.md', 'r') as readme_f: + long_description = readme_f.read() + + setup( name='py-wasapi-client', - version='0.1', + version='1.0.0', url='https://github.com/unt-libraries/py-wasapi-client', author='University of North Texas Libraries', + author_email='lauren.ko@unt.edu', license='BSD', py_modules=['wasapi_client'], scripts=['wasapi_client.py'], description='A client for the [Archive-It] WASAPI Data Transer API', + long_description=long_description, + long_description_content_type='text/markdown', install_requires=['requests>=2.18.1'], entry_points={ 'console_scripts': [ @@ -28,6 +35,7 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Topic :: Communications :: File Sharing', ], ) From 5e2a02be616b39fcacbd29787c62596cf2096e60 Mon Sep 17 00:00:00 2001 From: Lauren Ko Date: Wed, 14 Aug 2019 11:15:59 -0500 Subject: [PATCH 2/5] Explicitly run flake8 in py37 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 0ab10bc..ce9763b 100644 --- a/tox.ini +++ b/tox.ini @@ -2,13 +2,13 @@ max-line-length = 99 [tox] -envlist = py34,py35,py36,py37,flake8 +envlist = py34,py35,py36,py37,py37-flake8 [testenv] usedevelop=True deps = -r{toxinidir}/requirements-test.txt commands = py.test -[testenv:flake8] +[testenv:py37-flake8] deps = flake8 commands = flake8 wasapi_client.py tests setup.py From a371b3f65956fd7dec974c212ee47031601bb012 Mon Sep 17 00:00:00 2001 From: Lauren Ko Date: Wed, 14 Aug 2019 11:27:26 -0500 Subject: [PATCH 3/5] Update README for pip install and py37 --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 726129c..20cbb7d 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,23 @@ is being developed according to the [ait-specification](https://github.com/WASAP ## Requirements -* Python 3.4, 3.5, or 3.6 +* Python 3.4-3.7 ## Installation -The WASAPI client may be installed with: +To run the latest code, the WASAPI client may be installed with: ``` $ python setup.py install ``` +Alternatively, the most recent release (not guaranteed to be the latest +code) may be installed from [PyPi](https://pypi.org/): + +``` + $ pip install py-wasapi-client +``` + Once installed, run the client at the command line with: ``` @@ -196,5 +203,6 @@ $ python setup.py test or ``` +$ pip install tox $ tox ``` From 7b5357fa817f97be21a189a2a58f3c596f4c08dd Mon Sep 17 00:00:00 2001 From: Lauren Ko Date: Wed, 14 Aug 2019 14:13:14 -0500 Subject: [PATCH 4/5] Update README.md Use a PyPi link directly to py-wasapi-client Co-Authored-By: Gio Gottardi --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 20cbb7d..e1560ec 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To run the latest code, the WASAPI client may be installed with: ``` Alternatively, the most recent release (not guaranteed to be the latest -code) may be installed from [PyPi](https://pypi.org/): +code) may be installed from [PyPi](https://pypi.org/project/py-wasapi-client/): ``` $ pip install py-wasapi-client From 568c3f3710b2b30aa0fea669163eb85b44289d88 Mon Sep 17 00:00:00 2001 From: Lauren Ko Date: Wed, 14 Aug 2019 15:04:36 -0500 Subject: [PATCH 5/5] Tweak installation instructions --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1560ec..8da4dbe 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ is being developed according to the [ait-specification](https://github.com/WASAP ## Installation -To run the latest code, the WASAPI client may be installed with: +To run the latest code, the WASAPI client may be downloaded or cloned +from [GitHub](https://github.com/unt-libraries/py-wasapi-client). From inside the top-level of the py-wasapi-client directory, +install with: ``` $ python setup.py install