From 1d217a5a6a7433c5b596912118078f9c73ff67ea Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Sun, 19 Jun 2022 13:10:50 -0700 Subject: [PATCH] #167 Migrate to poetry. --- README.md | 3 +++ pyproject.toml | 32 ++++++++++++++++++++++++++++++++ setup.py | 37 ------------------------------------- 3 files changed, 35 insertions(+), 37 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/README.md b/README.md index 68ea357..ae15510 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,9 @@ Basic Usage From there, you can `import pydle` and subclass `pydle.Client` for your own functionality. +> To enable SSL support, install the `sasl` extra. +> `pip install pydle[sasl]` + Setting a nickname and starting a connection over TLS: ```python import pydle diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..994f06c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,32 @@ +[tool.poetry] +name = "pydle" +version = "1.0.0.a1" +description = "A compact, flexible, and standards-abiding IRC library for python3." +authors = ["Shiz "] +repository = "https://github.com/Shizmob/pydle" +keywords = ["irc", "library","python3","compact","flexible"] +license = "BSD" + +[tool.poetry.dependencies] +python = ">=3.6;<3.10" + +[tool.poetry.dependencies.pure-sasl] +version = "^0.6.2" +optional = true + +# Stuff needed for development, but not for install&usage +[tool.poetry.dev-dependencies] +sphinx-rtd-theme = "^1.0.0" +Sphinx = "^5.0.2" + + +[tool.poetry.extras] +sasl = ["pure-sasl"] + +[tool.poetry.scripts] +pydle = "pydle.utils.run:main" +pydle-irccat = 'pydle.utils.irccat:main' + +[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 8e574a3..0000000 --- a/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -from setuptools import setup - -setup( - name='pydle', - version='0.9.4', - python_requires=">=3.5", - packages=[ - 'pydle', - 'pydle.features', - 'pydle.features.rpl_whoishost', - 'pydle.features.rfc1459', - 'pydle.features.ircv3', - 'pydle.utils' - ], - extras_require={ - 'sasl': 'pure-sasl >=0.1.6', # for pydle.features.sasl - 'docs': 'sphinx_rtd_theme', # the Sphinx theme we use - 'tests': 'pytest', # collect and run tests - 'coverage': 'pytest-cov' # get test case coverage - }, - entry_points={ - 'console_scripts': [ - 'pydle = pydle.utils.run:main', - 'pydle-irccat = pydle.utils.irccat:main' - ] - }, - - author='Shiz', - author_email='hi@shiz.me', - url='https://github.com/Shizmob/pydle', - keywords='irc library python3 compact flexible', - description='A compact, flexible and standards-abiding IRC library for Python 3.', - license='BSD', - - zip_safe=True, - test_suite='tests' -)