-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
40 lines (37 loc) · 1.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import re
import pathlib
from setuptools import setup
README = (pathlib.Path(__file__).parent / "README.md").read_text(encoding="utf-8")
VERSIONFILE="pyfuzzyrenamer/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name="PyFuzzy-renamer",
version=verstr,
description="Uses a list of input strings and will rename each one with the most similar string from another list of strings",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/pcjco/PyFuzzy-renamer",
author="pcjco",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"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",
],
packages=["pyfuzzyrenamer", "wxautocompletectrl"],
include_package_data=False,
python_requires=">=3.8",
install_requires=["wxPython>=4.2.1", "python-Levenshtein-wheels>=0.13.1", "thefuzz>=0.20.0",],
entry_points={"console_scripts": ["pyfuzzyrenamer = pyfuzzyrenamer.__main__:main"]},
)