Skip to content

Commit

Permalink
chore: Migrate build config to pyproject.toml
Browse files Browse the repository at this point in the history
- Change: Move package build config to "pyproject.toml".
- Change: Remove "setup.py".
- Change: Update `build` make target.
- Change: Remove "setup.py" from list of source files for linting and
  formating.
  • Loading branch information
AnonymouX47 committed Dec 30, 2023
1 parent 0538897 commit cc739cb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 73 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ uninstall:

check: check-code

py_files := *.py src/ docs/source/conf.py tests/
py_files := src/ docs/source/conf.py tests/

## Code Checks

Expand Down Expand Up @@ -114,8 +114,7 @@ clean-docs:

# Packaging

build:
python -m pip install --upgrade pip
build: pip
python -m pip install --upgrade build
python -m build

Expand Down
70 changes: 69 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,75 @@
[build-system]
requires = ["setuptools", "wheel"]
# See:
# - https://setuptools.pypa.io/en/latest/history.html#v66-1-0
# - https://github.com/pypa/setuptools/issues/3779
requires = ["setuptools >= 66.1"]
build-backend = "setuptools.build_meta"

[project]
dynamic = ["version"]
name = "term-image"
dependencies = [
"pillow>=9.1,<11",
"requests>=2.23,<3",
"typing_extensions>=4.8,<5",
]
requires-python = ">=3.8"
authors = [
{name = "Toluwaleke Ogundipe", email = "anonymoux47@gmail.com"},
]
description = "Display images in the terminal"
readme = "README.md"
license = {text = "MIT License"}
keywords = [
"image",
"terminal",
"viewer",
"PIL",
"Pillow",
"console",
"xterm",
"library",
"cli",
"tui",
"ANSI",
"ASCII-Art",
"kitty",
"iterm2",
"sixel",
"graphics",
]
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Android",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
"Topic :: Terminals :: Terminal Emulators/X Terminals",
"Topic :: Multimedia :: Graphics :: Viewers",
]

[project.urls]
Homepage = "https://github.com/AnonymouX47/term-image"
Documentation = "https://term-image.readthedocs.io/"
Source = "https://github.com/AnonymouX47/term-image"
Repository = "https://github.com/AnonymouX47/term-image.git"
Issues = "https://github.com/AnonymouX47/term-image/issues"
Changelog = "https://github.com/AnonymouX47/term-image/blob/main/CHANGELOG.md"
Funding = "https://github.com/AnonymouX47/term-image#sponsor-this-project"

[tool.setuptools.dynamic]
version = {attr = "term_image.version_info"}

[tool.mypy]
strict = true
show_column_numbers = true
Expand Down
69 changes: 0 additions & 69 deletions setup.py

This file was deleted.

0 comments on commit cc739cb

Please sign in to comment.