Skip to content

Commit 8fd2d98

Browse files
committed
Add version check and update links in setup.py
1 parent 100de09 commit 8fd2d98

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Copyright (c) 2020-2021 RedFantom
55
"""
66
import sys
7+
from tkinter import TkVersion
8+
9+
10+
if TkVersion >= 8.7:
11+
message = "Tk 8.7 or higher detected. You do not need tksvg, SVG support is included in your Tkinter version."
12+
raise RuntimeError(message)
713

814

915
def read(file_name):
@@ -175,8 +181,8 @@ def copy_to_target(self, target: str):
175181
packages=["tksvg"],
176182
description="SVG support for PhotoImage in Tk 8.6",
177183
author="The tksvg authors",
178-
url="https://github.com/RedFantom/tksvg",
179-
download_url="https://github.com/RedFantom/python-tksvg/releases",
184+
url="https://github.com/TkinterEP/tksvg",
185+
download_url="https://github.com/TkinterEP/tksvg/releases",
180186
license="GNU GPLv3",
181187
long_description=read("README.md"),
182188
zip_safe=False,

0 commit comments

Comments
 (0)