From 43fc887cce981da4113546c27bb72a449f514983 Mon Sep 17 00:00:00 2001 From: Alex Dutton Date: Tue, 12 Jan 2021 11:36:04 +0000 Subject: [PATCH] Move from setuptools to poetry --- poetry.lock | 18 ++++++++++++++++++ pyproject.toml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 46 ---------------------------------------------- 3 files changed, 67 insertions(+), 46 deletions(-) create mode 100644 poetry.lock create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..ce547c2 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,18 @@ +[[package]] +name = "httplib2" +version = "0.18.1" +description = "A comprehensive HTTP client library." +category = "main" +optional = false +python-versions = "*" + +[metadata] +lock-version = "1.1" +python-versions = "^3.8.6" +content-hash = "016d2073eb647ec80f875ee0ca5fdd8be6a6ad98062baf25c89edba344365ab1" + +[metadata.files] +httplib2 = [ + {file = "httplib2-0.18.1-py3-none-any.whl", hash = "sha256:ca2914b015b6247791c4866782fa6042f495b94401a0f0bd3e1d6e0ba2236782"}, + {file = "httplib2-0.18.1.tar.gz", hash = "sha256:8af66c1c52c7ffe1aa5dc4bcd7c769885254b0756e6e69f953c7f0ab49a70ba3"}, +] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..cfdf013 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,49 @@ +[tool.poetry] +name = "python-client-sword2" +version = "0.2.1" +description = "SWORDv2 Python client" +authors = [ + "Ben O'Steen ", + "Cottage Labs ", +] +maintainers = [ + "Cottage Labs ", +] +readme = "README.md" +license = "Apache-2.0" + +homepage = "http://swordapp.org/" +repository = "https://github.com/swordapp/python-client-sword2" +documentation = "https://github.com/swordapp/python-client-sword2/wiki" + +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Topic :: Communications", + "Topic :: Internet", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Software Development :: Libraries :: Python Modules", +] + +keywords=[ "sword-app", "atom", "sword2", "http" ] + +packages = [ + { include = "sword2" }, +] + +[tool.poetry.dependencies] +python = ">=3.7" +httplib2 = "^0.18.1" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/setup.py b/setup.py deleted file mode 100644 index 0b56e8c..0000000 --- a/setup.py +++ /dev/null @@ -1,46 +0,0 @@ -from setuptools import setup, find_packages -import sys, os - -version = '0.2.1' - -setup( - name='sword2', - version=version, - description="SWORD v2 python client", - long_description="""\ -SWORD v2 python client""", - # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", - "Environment :: Web Environment", - "Intended Audience :: Developers", - "Intended Audience :: Information Technology", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: Apache Software License", - "Natural Language :: English", - "Operating System :: OS Independent", - "Programming Language :: Python :: 2 :: Only", - "Topic :: Communications", - "Topic :: Internet", - "Topic :: Internet :: WWW/HTTP", - "Topic :: Software Development :: Libraries :: Python Modules", - ], - keywords="sword-app atom sword2 http", - author="Ben O'Steen, Cottage Labs", - author_email='us@cottagelabs.com', - url="http://swordapp.org/", - license='Apache', - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), - include_package_data=True, - zip_safe=False, - install_requires=[ - "httplib2", - ], - # Following left in as a memory aid for later- - #entry_points=""" - # # -*- Entry points: -*- - # [console_scripts] - # cmd=module.path:func_name - #""", -)