Skip to content

Commit

Permalink
Setup versioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJKoopman committed Sep 8, 2023
1 parent eeb2652 commit 478b492
Show file tree
Hide file tree
Showing 6 changed files with 2,975 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/schedlib/_version.py export-subst
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/schedlib/_version.py
versionfile_build = schedlib/_version.py
tag_prefix = v
parentdir_prefix = schedlib-
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from setuptools import find_packages, setup

import versioneer

setup(
name="schedlib",
version="0.1.0",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=[
Expand Down
4 changes: 3 additions & 1 deletion src/schedlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .core import *
from .core import *
from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 478b492

Please sign in to comment.