replace setup.py with setup.cfg

This commit is contained in:
demberto 2022-05-08 21:51:19 +05:30
parent d241131edf
commit f7cf408bf6
3 changed files with 26 additions and 27 deletions

View File

@ -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

22
setup.cfg Normal file
View File

@ -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

View File

@ -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"])