Skip to content

Commit

Permalink
0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EcmaXp committed Sep 20, 2024
1 parent 1c05652 commit 4437d7a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
19 changes: 19 additions & 0 deletions __reloader__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
import os
import sys

root = os.path.join(os.path.dirname(__file__))
sys.modules.pop("reloader", None)
sys.path.insert(0, root)

try:
from reloader import * # noqa
from reloader import __author__, __version__, __license__, __url__, __all__, main # noqa
finally:
sys.path.remove(root)

del os, sys, root


if __name__ == "__main__":
main()
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reloader.py"
version = "0.16.1"
version = "0.16.2"
description = "A simple script reloader"
license = "MIT"
authors = [{ name = "EcmaXp", email = "[email protected]" }]
Expand All @@ -27,16 +27,16 @@ classifiers = [
Repository = "https://github.com/EcmaXp/reloader.py"

[project.scripts]
"reloader" = "reloader:main"
"reloader-py" = "reloader:main"
"reloader.py" = "reloader:main"
"reloader" = "__reloader__:main"
"reloader-py" = "__reloader__:main"
"reloader.py" = "__reloader__:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["reloader.py"]
packages = ["reloader.py", "__reloader__.py"]

[tool.hatch.build.targets.sdist]
packages = ["reloader.py"]
packages = ["reloader.py", "__reloader__.py"]
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4437d7a

Please sign in to comment.