Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[build-system]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"

# Copyright (c) 2014 SeatGeek
# This file is part of thefuzz.

[project]
name = "thefuzz"
authors = [{name = "Adam Cohen", email = "adam@seatgeek.com"}]
license = {text = "GPL-2.0-only"}
description = "Fuzzy string matching in python"
readme = "README.rst"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python",
"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 :: 3 :: Only",
]
urls = {Homepage = "https://github.com/seatgeek/thefuzz"}
dynamic = ["version"]

[project.optional-dependencies]
speedup = ["python-levenshtein>=0.12"]

[tool.setuptools]
packages = ["thefuzz"]
zip-safe = true
include-package-data = false

[tool.setuptools_scm]
14 changes: 10 additions & 4 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ YELLOW="\033[0;33m" # yellow
MAGENTA="\033[0;35m" # magenta
CYAN="\033[0;36m" # cyan

# ensure wheel is available
pip install wheel > /dev/null
# ensure the needed deps are available
pip install --upgrade wheel build setuptools setuptools_scm > /dev/null

if [[ "$PUBLIC" == "true" ]]; then
pip install --upgrade twine > /dev/null
fi


# ensure Pygment is available
pip install Pygments > /dev/null
Expand Down Expand Up @@ -134,11 +139,12 @@ git push -q origin master && git push -q --tags
if [[ "$PUBLIC" == "true" ]]; then
echo -e "${YELLOW}--->${COLOR_OFF} Creating python release"
cp README.rst README
python setup.py sdist bdist_wheel upload > /dev/null
python -m build > dev.null
twine upload ./dist/* > /dev/null
rm README
else
echo -e "${YELLOW}--->${COLOR_OFF} Creating local python dist and wheel for manual release"
python setup.py sdist bdist_wheel > /dev/null
python -m build > dev.null

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the thinking with this writing to dev.null instead of /dev/null?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like mostly like a typo to me. Is that the case, @KOLANICH?

fi

echo -e "\n${CYAN}RELEASED VERSION ${next_version}${COLOR_OFF}\n"
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.