Milestone Version 1.0: setup.py

File setup.py, 1.7 KB (added by frankl, 10 months ago)
Line 
1"""
2Author: RedFantom
3License: GNU GPLv3
4Copyright (c) 2017-2018 RedFantom
5"""
6import os
7from tkinter import TkVersion
8from setuptools import setup
9
10
11if TkVersion <= 8.5:
12 message = "This version of ttkthemes does not support Tk 8.5 and earlier. Please install a later version."
13 raise RuntimeError(message)
14
15
16def read(fname):
17 return open(os.path.join(os.path.dirname(__file__), fname)).read()
18
19
20setup(
21 name="ttkthemes",
22 packages=["ttkthemes"],
23 package_data={"ttkthemes": ["themes/*", "png/*", "gif/*", "advanced/*"]},
24 version="3.2.2",
25 description="A group of themes for the ttk extensions of Tkinter with a Tkinter.Tk wrapper",
26 author="The ttkthemes authors",
27 author_email="redfantom@outlook.com",
28 url="https://github.com/RedFantom/ttkthemes",
29 download_url="https://github.com/RedFantom/ttkthemes/releases",
30 include_package_data=True,
31 keywords=["tkinter", "ttk", "gui", "tcl", "theme"],
32 license="GPLv3",
33 long_description=read("README.md"),
34 long_description_content_type="text/markdown",
35 classifiers=[
36 "Programming Language :: Python :: 3.5",
37 "Programming Language :: Python :: 3.6",
38 "Programming Language :: Python :: 3.7",
39 "Programming Language :: Python :: 3.8",
40 "Environment :: Win32 (MS Windows)",
41 "Environment :: X11 Applications",
42 "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
43 "Topic :: Software Development :: Libraries :: Tcl Extensions",
44 "Topic :: Software Development :: Libraries :: Python Modules"
45 ],
46 zip_safe=False,
47 install_requires=["pillow"],
48 has_ext_modules=lambda: True,
49 python_requires=">=3.5"
50)