Skip to content

Commit

Permalink
Use Hatchling for package build
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Apr 16, 2024
1 parent d38a346 commit 0b9368c
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 84 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.toml]
indent_size = 2

[*.ini]
indent_size = 4

[*.py]
indent_size = 4
max_line_length = 100

[{*.yml,*.yaml}]
indent_size = 2

[*.ini]
indent_size = 4
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

77 changes: 74 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,79 @@
[build-system]
requires = ["setuptools >= 42", "wheel", "setuptools-scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.setuptools_scm]
[project]
name = "django-composed-configuration"
description = "Turnkey Django settings for data management applications."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Apache 2.0" }
maintainers = [{ name = "Kitware, Inc.", email = "kitware@kitware.com" }]
keywords = [
"django",
"girder",
"configuration",
"configurations",
"setting",
"settings",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django :: 4",
"Framework :: Django :: 4.2",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python",
]
dependencies = [
"django>=4.2",
# Required for "allauth.account.middleware.AccountMiddleware"
"django-allauth>=0.56.0",
"django-auth-style",
"django-configurations[database,email]",
"django-cors-headers",
"django-extensions",
"django-filter",
"django-girder-utils>=0.9.0",
# django-oauth-toolkit==1.3.3 doesn't have working PKCE
"django-oauth-toolkit>=1.4.0",
"drf-yasg",
"psycopg",
"rich",
"whitenoise[brotli]",
]
dynamic = ["version"]

[project.urls]
Repository = "https://github.com/girder/django-composed-configuration"
"Bug Reports" = "https://github.com/girder/django-composed-configuration/issues"

[project.optional-dependencies]
dev = [
"django-debug-toolbar",
"django-minio-storage",
"psycopg[binary]",
]
prod = [
"django-storages[boto3]",
"psycopg[c]",
"sentry-sdk",
]

[tool.hatch.build]
packages = [
"composed_configuration",
]

[tool.hatch.version]
source = "vcs"

[tool.black]
line-length = 100
Expand Down
77 changes: 0 additions & 77 deletions setup.py

This file was deleted.

0 comments on commit 0b9368c

Please sign in to comment.