Use flit
instead of setuptools
Mostly just a simple move from `setup.cfg` -> `pyproject.toml`. Had to reformat the description in `__init__` a little though.
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
include LICENSE
|
|
||||||
include CONTRIBUTING.rst
|
|
||||||
include README.rst
|
|
@@ -27,17 +27,18 @@ or jump right into the code by viewing the `examples <https://github.com/carpedm
|
|||||||
|
|
||||||
Installation:
|
Installation:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block::
|
||||||
|
|
||||||
$ pip install fbchat
|
$ pip install fbchat
|
||||||
|
|
||||||
You can also install from source, by using `setuptools` (You need at least version 30.3.0):
|
You can also install from source, by using `flit`:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block::
|
||||||
|
|
||||||
|
$ pip install flit
|
||||||
$ git clone https://github.com/carpedm20/fbchat.git
|
$ git clone https://github.com/carpedm20/fbchat.git
|
||||||
$ cd fbchat
|
$ cd fbchat
|
||||||
$ python setup.py install
|
$ flit install
|
||||||
|
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
pytest
|
|
||||||
six
|
|
@@ -1,12 +1,7 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
|
"""Facebook Chat (Messenger) for Python
|
||||||
|
|
||||||
"""
|
:copyright: (c) 2015 - 2019 by Taehoon Kim
|
||||||
fbchat
|
|
||||||
~~~~~~
|
|
||||||
|
|
||||||
Facebook Chat (Messenger) for Python
|
|
||||||
|
|
||||||
:copyright: (c) 2015 - 2018 by Taehoon Kim
|
|
||||||
:license: BSD 3-Clause, see LICENSE for more details.
|
:license: BSD 3-Clause, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -18,7 +13,7 @@ __title__ = 'fbchat'
|
|||||||
__version__ = '1.5.0'
|
__version__ = '1.5.0'
|
||||||
__description__ = 'Facebook Chat (Messenger) for Python'
|
__description__ = 'Facebook Chat (Messenger) for Python'
|
||||||
|
|
||||||
__copyright__ = 'Copyright 2015 - 2018 by Taehoon Kim'
|
__copyright__ = 'Copyright 2015 - 2019 by Taehoon Kim'
|
||||||
__license__ = 'BSD 3-Clause'
|
__license__ = 'BSD 3-Clause'
|
||||||
|
|
||||||
__author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart'
|
__author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart'
|
||||||
|
52
pyproject.toml
Normal file
52
pyproject.toml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["flit"]
|
||||||
|
build-backend = "flit.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.metadata]
|
||||||
|
module = "fbchat"
|
||||||
|
author = "Taehoon Kim"
|
||||||
|
author-email = "carpedm20@gmail.com"
|
||||||
|
maintainer = "Mads Marquart"
|
||||||
|
maintainer-email = "madsmtm@gmail.com"
|
||||||
|
home-page = "https://github.com/carpedm20/fbchat/"
|
||||||
|
requires = [
|
||||||
|
"aenum",
|
||||||
|
"requests",
|
||||||
|
"beautifulsoup4",
|
||||||
|
]
|
||||||
|
description-file = "README.rst"
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 3 - Alpha",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Intended Audience :: Information Technology",
|
||||||
|
"License :: OSI Approved :: BSD License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Natural Language :: English",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 2.7",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.4",
|
||||||
|
"Programming Language :: Python :: 3.5",
|
||||||
|
"Programming Language :: Python :: 3.6",
|
||||||
|
"Programming Language :: Python :: 3.7",
|
||||||
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
|
"Topic :: Communications :: Chat",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
||||||
|
"Topic :: Software Development :: Libraries",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
|
]
|
||||||
|
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4.0"
|
||||||
|
keywords = "Facebook FB Messenger Library Chat Api Bot"
|
||||||
|
license = "BSD 3-Clause"
|
||||||
|
|
||||||
|
[tool.flit.metadata.urls]
|
||||||
|
Documentation = "https://fbchat.readthedocs.io/"
|
||||||
|
Repository = "https://github.com/carpedm20/fbchat/"
|
||||||
|
|
||||||
|
[tool.flit.metadata.requires-extra]
|
||||||
|
test = [
|
||||||
|
"pytest",
|
||||||
|
"six",
|
||||||
|
]
|
@@ -1,3 +0,0 @@
|
|||||||
requests
|
|
||||||
beautifulsoup4
|
|
||||||
aenum
|
|
48
setup.cfg
48
setup.cfg
@@ -1,48 +0,0 @@
|
|||||||
[metadata]
|
|
||||||
name = fbchat
|
|
||||||
version = attr: fbchat.__version__
|
|
||||||
license = BSD 3-Clause
|
|
||||||
license_file = LICENSE
|
|
||||||
|
|
||||||
author = Taehoon Kim
|
|
||||||
author_email = carpedm20@gmail.com
|
|
||||||
maintainer = Mads Marquart
|
|
||||||
maintainer_email = madsmtm@gmail.com
|
|
||||||
|
|
||||||
description = Facebook Chat (Messenger) for Python
|
|
||||||
long_description = file: README.rst
|
|
||||||
long_description_content_type = text/x-rst
|
|
||||||
|
|
||||||
keywords = Facebook FB Messenger Chat Api Bot
|
|
||||||
classifiers =
|
|
||||||
Development Status :: 3 - Alpha
|
|
||||||
Intended Audience :: Developers
|
|
||||||
Intended Audience :: Information Technology
|
|
||||||
License :: OSI Approved :: BSD License
|
|
||||||
Operating System :: OS Independent
|
|
||||||
Natural Language :: English
|
|
||||||
Programming Language :: Python
|
|
||||||
Programming Language :: Python :: 2.7
|
|
||||||
Programming Language :: Python :: 3.4
|
|
||||||
Programming Language :: Python :: 3.5
|
|
||||||
Programming Language :: Python :: 3.6
|
|
||||||
Programming Language :: Python :: Implementation :: CPython
|
|
||||||
Programming Language :: Python :: Implementation :: PyPy
|
|
||||||
Topic :: Communications :: Chat
|
|
||||||
Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
||||||
Topic :: Software Development :: Libraries :: Python Modules
|
|
||||||
|
|
||||||
url = https://github.com/carpedm20/fbchat/
|
|
||||||
project_urls =
|
|
||||||
Documentation = https://fbchat.readthedocs.io/
|
|
||||||
Repository = https://github.com/carpedm20/fbchat/
|
|
||||||
|
|
||||||
[options]
|
|
||||||
zip_safe = True
|
|
||||||
include_package_data = True
|
|
||||||
packages = find:
|
|
||||||
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4.0
|
|
||||||
install_requires =
|
|
||||||
aenum
|
|
||||||
requests
|
|
||||||
beautifulsoup4
|
|
Reference in New Issue
Block a user