Skip to content

Commit

Permalink
Moving to hatch for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zohaib Sibte Hassan committed Dec 25, 2023
1 parent 84254bc commit d1b21d0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ env.bak/
venv.bak/
.vscode/


# Spyder project settings
.spyderproject
.spyproject
Expand Down Expand Up @@ -159,4 +160,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/

.DS_Store
1 change: 0 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .htmx import *
1 change: 1 addition & 0 deletions htmxido/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .htmx import *
File renamed without changes.
19 changes: 13 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[build-system]
requires = ["setuptools>=61.2", "wheel"]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "htmxido"
version = "0.1.0"
version = "0.1.3"
authors = [
{ name="Zohaib Sibte Hassan", email="[email protected]" },
]
Expand All @@ -21,8 +22,14 @@ classifiers = [
Homepage = "https://github.com/maxpert/htmxido"
Issues = "https://github.com/maxpert/htmxido/issues"

[tool.setuptools]
include-package-data = false
[tool.hatch.build.targets.sdist]
ignore-vcs = true
include = [
"/htmxido"
]
exclude = [
"test_*"
]

[tool.setuptools.packages.find]
exclude = ["test*"]
[tool.hatch.build.targets.wheel]
packages = ["."]
2 changes: 1 addition & 1 deletion test_htmx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from . import domx, HTMXError
from .htmxido import domx, HTMXError


def test_body_escapes_special_characters():
Expand Down

0 comments on commit d1b21d0

Please sign in to comment.