Skip to content

Commit

Permalink
Switch from setup.py to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 29, 2022
1 parent bda0a46 commit f2fb794
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 49 deletions.
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "django-enumfields"
dynamic = ["version"]
description = "Real Python Enums for Django."
readme = "README.rst"
license = "MIT"
authors = [
{ name = "HZDG", email = "webmaster@hzdg.com" },
]
maintainers = [
{ name = "Aarni Koskela", email = "akx@iki.fi" },
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP",
]

[project.urls]
Homepage = "https://github.com/hzdg/django-enumfields"

[tool.hatch.version]
path = "enumfields/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/enumfields",
]
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[bdist_wheel]
python-tag = py3

[pep8]
max-line-length = 120
exclude = *migrations*
Expand Down
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit f2fb794

Please sign in to comment.