Skip to content

Commit

Permalink
make version dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
yehoshuadimarsky committed Nov 24, 2024
1 parent 5195850 commit 7517eaa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
9 changes: 0 additions & 9 deletions bcpandas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
from subprocess import DEVNULL, run
import warnings

import pkg_resources

from bcpandas.main import SqlCreds, to_sql
from bcpandas.utils import bcp

name = "bcpandas"
try:
__version__ = pkg_resources.get_distribution(__name__).version
except Exception:
__version__ = "unknown"


# BCP check
try:
run(["bcp", "-v"], stdout=DEVNULL, stderr=DEVNULL, stdin=DEVNULL)
Expand Down
1 change: 1 addition & 0 deletions bcpandas/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "2.6.7"
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ dependencies = [
]
requires-python = ">=3.8.1,<=3.11"

[tool.setuptools.dynamic]
version = {attr = "bcpandas.__version__.version"}

[dependency-groups]
dev = [
"pre-commit",
Expand Down
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 7517eaa

Please sign in to comment.