Skip to content

Commit 0cf5f0b

Browse files
committed
feat: modify to include setupcm
1 parent b54cd81 commit 0cf5f0b

File tree

2 files changed

+20
-30
lines changed

2 files changed

+20
-30
lines changed

pyproject.toml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[project]
2-
32
name = "tqdm-pandas"
4-
version = "0.1.0.dev1"
5-
description = "Progress bar for pandas file reading operationa"
3+
dynamic = ["version"] # Version comes from git tags
4+
description = "Progress bar for pandas file reading operations"
65
authors = [
7-
{name = "IshaanJolly",email = "ijolly1997@gmail.com"}
6+
{name = "IshaanJolly", email = "ijolly1997@gmail.com"}
87
]
98
keywords = ["pandas", "progress", "tqdm"]
109
license = {text = "MIT"}
@@ -14,44 +13,31 @@ dependencies = [
1413
"pandas>=1.0.0",
1514
"tqdm>=4.0.0",
1615
]
17-
[tool.setuptools.packages.find]
18-
where = ["tqdm_pandas"]
19-
20-
[tool.setuptools.package-dir]
21-
"" = "tqdm_pandas"
2216

2317
[build-system]
24-
requires = ["setuptools>=45", "wheel"]
18+
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
2519
build-backend = "setuptools.build_meta"
2620

27-
[tool.semantic_release]
28-
# Version management
29-
version_toml = ["pyproject.toml:tool.poetry.version"]
30-
version_variables = [
31-
"tqdm_pandas/__init__.py:__version__"]
21+
[tool.setuptools.packages.find]
22+
where = ["."]
23+
include = ["tqdm_pandas*"]
24+
25+
[tool.setuptools_scm]
26+
write_to = "tqdm_pandas/_version.py"
3227

33-
# Branch configuration
28+
[tool.semantic_release]
29+
# No version_toml or version_variables needed!
30+
# semantic-release will just create tags, setuptools_scm reads them
3431
branch = "main"
3532
upload_to_vcs_release = true
36-
37-
# Changelog configuration
3833
changelog_file = "CHANGELOG.md"
39-
40-
# Commit message parsing
4134
commit_parser = "angular"
4235
logging_use_named_masks = false
4336

44-
# Remote configuration
4537
[tool.semantic_release.remote]
4638
name = "origin"
4739
type = "github"
4840

49-
# Commit message template
50-
[tool.semantic_release.commit_author]
51-
env = "GIT_COMMIT_AUTHOR"
52-
default = "semantic-release <semantic-release>"
53-
54-
# Version pattern
5541
[tool.semantic_release.commit_parser_options]
5642
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
5743
minor_tags = ["feat"]
@@ -60,5 +46,3 @@ patch_tags = ["fix", "perf"]
6046
[tool.semantic_release.publish]
6147
dist_glob_patterns = ["dist/*"]
6248
upload_to_vcs_release = true
63-
64-

tqdm_pandas/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
from .patcher import patch_pandas, unpatch_pandas
1+
from .patcher import patch_pandas, unpatch_pandas
2+
3+
try:
4+
from ._version import version as __version__
5+
except ImportError:
6+
# Fallback if _version.py doesn't exist
7+
__version__ = "unknown"

0 commit comments

Comments
 (0)