Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use versioneer for automatically bookkeeping versions based on tags #126

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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