Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: move more options to setup.cfg
Browse files Browse the repository at this point in the history
And ignore the "annotations" future import
half-duplex committed Dec 30, 2019
1 parent 39bde7e commit 6fe32b1
Showing 2 changed files with 15 additions and 22 deletions.
18 changes: 14 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
name = sopel
version = 7.0.0-dev
description = Simple and extensible IRC bot
long_description = file: README.md
long_description_content_type = text/markdown
author = dgw
author_email = dgw@technobabbl.es
url = https://sopel.chat/
@@ -24,9 +26,18 @@ classifiers =
Topic :: Communications :: Chat :: Internet Relay Chat

[options]
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
packages = find:
zip_safe = false

[options.entry_points]
console_scripts =
sopel = sopel.cli.run:main
sopel-config = sopel.cli.config:main
sopel-plugins = sopel.cli.plugins:main
pytest11 =
pytest-sopel = sopel.tests.pytest_plugin

[flake8]
max-line-length = 79
ignore =
@@ -44,10 +55,9 @@ ignore =
# We ignore the error for missing generator_stop because it's only available
# in Python 3.5+ (switch this to FI55 in the above list when Sopel drops
# support for Python older than 3.5)
FI15
# flake8-future-import doesn't support (as of last update) the "annotations"
# feature added in Python 3.7, but it should be ignored too when/if this is
# ever released: https://github.com/xZise/flake8-future-import/pull/19
FI15,
# Ignore "annotations" future import, since it's not available before 3.7
FI18
exclude =
docs/*,
env/*,
19 changes: 1 addition & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -57,22 +57,5 @@ def read_reqs(path):
dev_requires = requires + read_reqs('dev-requirements.txt')

setup(
long_description=(
"Sopel is a simple, extensible IRC Utility bot, written in Python. "
"It's designed to be easy to use, easy to run, and easy to develop "
"new features for using its plugin system."
),
install_requires=requires,
extras_require={'dev': dev_requires},
entry_points={
'console_scripts': [
'sopel = sopel.cli.run:main',
'sopel-config = sopel.cli.config:main',
'sopel-plugins = sopel.cli.plugins:main',
],
'pytest11': [
'pytest-sopel = sopel.tests.pytest_plugin',
],
},
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
install_requires=requires, extras_require={"dev": dev_requires},
)

0 comments on commit 6fe32b1

Please sign in to comment.