-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch project builds to hatch (#259)
* Adopt Hatch for packaging * Add black config * Formatting * Replicate requirements in pyproject.toml * Update project file * Order classifiers * Use hatch for PyPI publishing * Update tox to use hatch, extra dependencies
- Loading branch information
Showing
14 changed files
with
103 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
History | ||
======= | ||
|
||
2.4.0 | ||
----- | ||
|
||
* Adopted Hatch as packaging tool with pyproject.toml | ||
|
||
2.3.1 | ||
----- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
[project] | ||
name = "django-organizations" | ||
authors = [ | ||
{ name="Ben Lopatin", email="[email protected]" }, | ||
] | ||
description = "Group accounts for Django" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = {text = "BSD License"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
] | ||
dependencies = [ | ||
"Django>=3.2", | ||
"django-extensions>=2.0.8", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
"Source" = "https://github.com/bennylope/django-organizations" | ||
"Issues" = "https://github.com/bennylope/django-organizations/issues" | ||
"Documentation" = "https://django-organizations.readthedocs.io/en/latest/" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest>=6.0", | ||
"coverage", | ||
"pytest-django>=3.0.0", | ||
"pytest-cov>=2.4.0", | ||
# Required to test default models | ||
"django-extensions>=2.0.8", | ||
"django-autoslug>=1.9.8,", | ||
# Required for mocking signals | ||
"mock-django==0.6.9", | ||
] | ||
docs = [ | ||
"Sphinx==3.5.4", | ||
"furo==2021.4.11b34", | ||
] | ||
dev = [ | ||
"django-organizations[tests]", | ||
"tox", | ||
"black", | ||
"ruff", | ||
] | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build] | ||
sources = ["src"] | ||
directory = "dist/" | ||
|
||
[tool.hatch.version] | ||
path = "src/organizations/__init__.py" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
only-include = ["src/organizations"] | ||
packages = ["src/oranizations"] | ||
|
||
[tool.black] | ||
target-version = ["py311"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
__author__ = "Ben Lopatin" | ||
__email__ = "[email protected]" | ||
__version__ = "2.3.1" | ||
__version__ = "2.4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
|
||
class OwnershipRequired(Exception): | ||
""" | ||
Exception to raise if the owner is being removed before the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters