Skip to content

Commit

Permalink
Merge pull request #126 from asogaard/versioning
Browse files Browse the repository at this point in the history
Use versioneer for automatically bookkeeping versions based on tags
  • Loading branch information
asogaard authored Jan 11, 2022
2 parents d406b2a + 7db39b1 commit 25253cd
Show file tree
Hide file tree
Showing 8 changed files with 2,774 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/graphnet/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include src/graphnet/_version.py
4 changes: 2 additions & 2 deletions misc/badges/pylint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/graphnet/_version.py
versionfile_build = graphnet/_version.py
tag_prefix = v
parentdir_prefix = graphnet-
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
import sys
from setuptools import setup, find_packages
import versioneer

# Utility method(s)
def install(package):
Expand All @@ -15,6 +16,7 @@ def install(package):
'anybadge',
'sphinx',
'sphinx_rtd_theme',
'versioneer',
],
}

Expand All @@ -41,11 +43,12 @@ def install(package):

setup(
name='graphnet',
version='0.1.1',
version=versioneer.get_version(),
description='A common library for using graph neural networks (GNNs) in netrino telescope experiments.',
url='https://github.com/icecube/graphnet',
author='The IceCube Collaboration',
license='Apache 2.0',
author='The IceCube Collaboration',
url='https://github.com/icecube/graphnet',
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(where='src'),
package_dir={'': 'src'},
install_requires=INSTALL_REQUIRES,
Expand Down
3 changes: 3 additions & 0 deletions src/graphnet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

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

0 comments on commit 25253cd

Please sign in to comment.