Skip to content

Commit

Permalink
chore: cleanup VCS versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Jan 19, 2024
1 parent dae0f1f commit 6103b3d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ venv.bak/
.idea
.servicex
dask-worker-space/

# VCS versioning
src/coffea/_version.py
12 changes: 3 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,9 @@ dev = [
#[project.entry-points."dask.sizeof"]
#coffea = "coffea.sizeof:register"

[tool.hatch.version]
source = "vcs"
path = "src/coffea/__init__.py"

[tool.hatch.build.hooks.vcs]
version-file = "src/coffea/version.py"

[tool.setuptools_scm]
write_to = "src/coffea/_version.py"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/coffea/_version.py"

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down
4 changes: 2 additions & 2 deletions src/coffea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from . import version
from . import _version

__version__ = version.__version__
__version__ = _version.__version__

# control severity for utils.deprecate
deprecations_as_errors = False
Expand Down
4 changes: 4 additions & 0 deletions src/coffea/version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from __future__ import annotations

version: str
version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]

0 comments on commit 6103b3d

Please sign in to comment.