Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from setup.py to pyproject.toml #31

Merged
merged 5 commits into from
May 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Replace versioneer with hatch-regex-commit
TaiSakuma committed May 3, 2024
commit 6dc7dacac0ce78a7371bb2508e4849fc77f5c42c
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions atpbar/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.4"
17 changes: 9 additions & 8 deletions atpbar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Tai Sakuma <[email protected]>
__all__ = [
"atpbar",
"find_reporter",
"register_reporter",
"flush",
"disable",
"__version__",
]
from .main import atpbar
from .funcs import find_reporter, register_reporter, flush, disable

##__________________________________________________________________||
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

##__________________________________________________________________||

from .__about__ import __version__
520 changes: 0 additions & 520 deletions atpbar/_version.py

This file was deleted.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"

[project]
@@ -37,7 +37,9 @@ tests = [
Homepage = "https://github.com/alphatwirl/atpbar"

[tool.hatch.version]
path = "atpbar/__init__.py"
source = "regex_commit"
path = "atpbar/__about__.py"
tag_sign = false

[tool.hatch.build.targets.sdist]
include = [
12 changes: 0 additions & 12 deletions setup.cfg

This file was deleted.

1,822 changes: 0 additions & 1,822 deletions versioneer.py

This file was deleted.