diff --git a/pyproject.toml b/pyproject.toml index 11c1b4a..ce5dc8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,66 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" +[project] +name = "django-admin-interface" +description = "django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features." +authors = [ + { name = "Fabio Caccamo", email = "fabio.caccamo@gmail.com" }, +] +keywords = [ + "django", + "admin", + "interface", + "responsive", + "flat", + "theme", + "custom", + "ui", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 3.0", + "Framework :: Django :: 3.1", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.0", + "Framework :: Django :: 4.1", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Topic :: Software Development :: Build Tools", +] +dependencies = [ + "django-colorfield >= 0.8.0, < 1.0.0", +] +dynamic = ["version"] +maintainers = [ + { name = "Fabio Caccamo", email = "fabio.caccamo@gmail.com" }, +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.license] +file = "LICENSE.txt" +content-type = "text/plain" + +[project.urls] +Homepage = "https://github.com/fabiocaccamo/django-admin-interface" +Download = "https://github.com/fabiocaccamo/django-admin-interface/releases" +Documentation = "https://github.com/fabiocaccamo/django-admin-interface#readme" +Issues = "https://github.com/fabiocaccamo/django-admin-interface/issues" +Funding = "https://github.com/sponsors/fabiocaccamo/" +Twitter = "https://twitter.com/fabiocaccamo" + [tool.black] line-length = 88 include = '\.pyi?$' @@ -23,14 +83,13 @@ exclude = ''' [tool.ruff] ignore = [] line-length = 88 -select = [ - "B", - "B9", - "C", - "E", - "F", - "W", -] +select = ["B", "B9", "C", "E", "F", "W"] [tool.ruff.mccabe] max-complexity = 10 + +[tool.setuptools.packages.find] +include = ["admin_interface*"] + +[tool.setuptools.dynamic.version] +attr = "admin_interface.metadata.__version__" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 9418be2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,59 +0,0 @@ -[metadata] -name = django-admin-interface -version = attr: admin_interface.metadata.__version__ -author = Fabio Caccamo -author_email = fabio.caccamo@gmail.com -maintainer = Fabio Caccamo -maintainer_email = fabio.caccamo@gmail.com -description = django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features. -keywords = - django - admin - interface - responsive - flat - theme - custom - ui -url = https://github.com/fabiocaccamo/%(name)s -download_url = https://github.com/fabiocaccamo/%(name)s/releases -license = MIT -long_description = file: README.md -long_description_content_type = text/markdown -classifiers = - Development Status :: 5 - Production/Stable - Environment :: Web Environment - Framework :: Django - Framework :: Django :: 3.0 - Framework :: Django :: 3.1 - Framework :: Django :: 3.2 - Framework :: Django :: 4.0 - Framework :: Django :: 4.1 - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Natural Language :: English - Operating System :: OS Independent - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Topic :: Software Development :: Build Tools -requires = django (>= 3.0) -project_urls = - Documentation = https://github.com/fabiocaccamo/%(name)s#readme - Issues = https://github.com/fabiocaccamo/%(name)s/issues - Funding = https://github.com/sponsors/fabiocaccamo/ - Twitter = https://twitter.com/fabiocaccamo - -[options] -packages = find: -install_requires = django-colorfield >= 0.8.0, < 1.0.0 -include_package_data = True - -[options.packages.find] -exclude = - docs* - images* - scripts* - tests*