diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4b7054d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,35 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "django-adminlogentries" +authors = [ + { name="Adam Taylor", email="ataylor32@gmail.com" }, +] +description = "A Django app that provides a ModelAdmin for django.contrib.admin's LogEntry model (with everything except the list disabled)" +readme = "README.rst" +dynamic = ["version"] +dependencies = [ + "Django", +] +classifiers = [ + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/ataylor32/django-adminlogentries" +Repository = "https://github.com/ataylor32/django-adminlogentries.git" +Issues = "https://github.com/ataylor32/django-adminlogentries/issues" +Changelog = "https://github.com/ataylor32/django-adminlogentries/blob/master/CHANGELOG.md" + +[tool.hatch.build] +include = [ + "/admin_log_entries", +] + +[tool.hatch.version] +path = "admin_log_entries/__init__.py" diff --git a/setup.py b/setup.py deleted file mode 100644 index 5795a2f..0000000 --- a/setup.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -from setuptools import setup, find_packages -from admin_log_entries import __version__ - -setup( - name='django-adminlogentries', - version=__version__, - description=( - 'A Django app that provides a ModelAdmin for django.contrib.admin\'s ' - 'LogEntry model (with everything except the list disabled)' - ), - author='Adam Taylor', - author_email='ataylor32@gmail.com', - url='https://github.com/ataylor32/django-adminlogentries', - packages=find_packages(), - include_package_data=True, -)