diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c02db5..7307c4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,7 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace + - repo: https://github.com/asottile/setup-cfg-fmt + rev: v1.20.1 + hooks: + - id: setup-cfg-fmt diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..54da0bd --- /dev/null +++ b/setup.cfg @@ -0,0 +1,22 @@ +[metadata] +name = customtkinter +version = 3.12 +description = Create modern looking GUIs with tkinter and Python +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/TomSchimansky/CustomTkinter +author = Tom Schimansky +license = Creative Commons Zero v1.0 Universal +license_file = LICENSE +classifiers = + License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication + Operating System :: OS Independent + Programming Language :: Python :: 3 :: Only + +[options] +packages = + customtkinter + customtkinter.widgets +install_requires = + darkdetect +include_package_data = True diff --git a/setup.py b/setup.py deleted file mode 100644 index e61ef8b..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -from setuptools import setup -import os - -# Update on pypi: -# -# 1. delete old /dist -# 2 increase both version numbers -# 3. python -m pip install --upgrade build -# 4. python -m build -# 5. python -m twine upload dist/* -# - - -setup(name="customtkinter", - version="3.12", - author="Tom Schimansky", - license="Creative Commons Zero v1.0 Universal", - url="https://github.com/TomSchimansky/CustomTkinter", - description="Create modern looking gui with tkinter and python", - long_description_content_type="text/markdown", - long_description="# CustomTkinter UI-Library\n\nDetailed Information: https://github.com/TomSchimansky/CustomTkinter", - include_package_data=True, - packages=["customtkinter", "customtkinter.widgets"], - classifiers=["Operating System :: OS Independent", - "Programming Language :: Python :: 3", - "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication"], - install_requires=["darkdetect"])