Skip to content

Commit

Permalink
Merge pull request #289 from lovetox/master
Browse files Browse the repository at this point in the history
Migrate to pyproject.toml
  • Loading branch information
TahirJalilov authored Apr 27, 2024
2 parents 2be59bc + e8d7425 commit 90f5a46
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 114 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pythonTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Test install
run: |
python -m pip install -e .[dev]
python -m pip install .[dev]
- name: Test with pytest
run: |
pytest
- name: Test install
run: |
python -m pip install .
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ include LICENSE.txt
include MANIFEST.in
include README.rst
include CHANGES.md
include setup.cfg
include setup.py
recursive-include tests *.py
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ emoji

Release v\ |version|. (:ref:`Installation <install>`)

emoji supports Python 3.6+. The last version to support Python 2.7 and 3.5 was v2.4.0.
emoji supports Python 3.7+. The last version to support Python 2.7 and 3.5 was v2.4.0.

.. contents:: Table of Contents

Expand Down
20 changes: 3 additions & 17 deletions emoji/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
"""
emoji for Python
~~~~~~~~~~~~~~~~
emoji terminal output for Python.
>>> import emoji
>>> print(emoji.emojize('Python is :thumbsup:', language='alias'))
Python is 👍
>>> print(emoji.emojize('Python is :thumbs_up:'))
Python is 👍
"""


from emoji.core import *
from emoji.unicode_codes import *

__all__ = [
# emoji.core
'emojize', 'demojize', 'analyze', 'config',
Expand Down Expand Up @@ -60,3 +43,6 @@
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'''

from emoji.core import *
from emoji.unicode_codes import *
55 changes: 54 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
[build-system]
requires = ["setuptools>=59.6.0"]
requires = ["setuptools>=65.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "emoji"
description = "Emoji for Python"
readme = "README.rst"
requires-python = ">=3.7"
authors = [
{name = "Taehoon Kim", email = "carpedm20@gmail.com"},
{name = "Kevin Wurster", email = "wursterk@gmail.com"},
]
keywords = ["emoji"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Multimedia :: Graphics :: Presentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
dependencies = []
dynamic = ["version"]

[project.urls]
homepage = "https://github.com/carpedm20/emoji/"
repository = "https://github.com/carpedm20/emoji/"

[project.optional-dependencies]
dev = [
"pytest",
"coverage",
"coveralls",
]

[tool.setuptools.packages.find]
include = ["emoji*"]

[tool.setuptools.package-data]
emoji = ["py.typed"]

[tool.setuptools.dynamic]
version = {attr = "emoji.__version__"}
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

82 changes: 0 additions & 82 deletions setup.py

This file was deleted.

0 comments on commit 90f5a46

Please sign in to comment.