#167 Migrate to poetry.

This commit is contained in:
Joshua Salzedo 2022-06-19 13:10:50 -07:00
parent 83a5bc6930
commit 1d217a5a6a
3 changed files with 35 additions and 37 deletions

View File

@ -26,6 +26,9 @@ Basic Usage
From there, you can `import pydle` and subclass `pydle.Client` for your own functionality. 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: Setting a nickname and starting a connection over TLS:
```python ```python
import pydle import pydle

32
pyproject.toml Normal file
View File

@ -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 <hi@shiz.me>"]
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"

View File

@ -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'
)