Skip to content

Commit

Permalink
add no-vendor installation of versioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
andhus committed Jan 7, 2024
1 parent 50d4453 commit 8d07193
Show file tree
Hide file tree
Showing 7 changed files with 700 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[run]
branch = True
source = scantree
omit = _version.py
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/scantree/_version.py export-subst
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "versioneer==0.29"]
build-backend = "setuptools.build_meta"
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = src/scantree/_version.py
versionfile_build = scantree/_version.py
tag_prefix =
parentdir_prefix = scantree-
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from setuptools import setup, find_packages

VERSION = '0.0.1'
import versioneer

DESCRIPTION = (
'Flexible recursive directory iterator: scandir meets glob("**", recursive=True)'
Expand All @@ -17,7 +17,7 @@

setup(
name='scantree',
version=VERSION,
version=versioneer.get_version(),
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
3 changes: 3 additions & 0 deletions src/scantree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
scantree,
SymlinkRecursionError
)

from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 8d07193

Please sign in to comment.