Unverified Commit 91cec854 authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Automatic versioning (#152)

parent f73d8ae1
...@@ -5,8 +5,8 @@ project = 'TorchANI' ...@@ -5,8 +5,8 @@ project = 'TorchANI'
copyright = '2018, Roitberg Group' copyright = '2018, Roitberg Group'
author = 'Xiang Gao' author = 'Xiang Gao'
version = '0.1' version = torchani.__version__
release = '0.1alpha' release = torchani.__version__
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
......
...@@ -2,7 +2,6 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,6 @@ from setuptools import setup, find_packages
setup_attrs = { setup_attrs = {
'name': 'torchani', 'name': 'torchani',
'version': '0.1',
'description': 'PyTorch implementation of ANI', 'description': 'PyTorch implementation of ANI',
'url': 'https://github.com/zasdfgbnm/torchani', 'url': 'https://github.com/zasdfgbnm/torchani',
'author': 'Xiang Gao', 'author': 'Xiang Gao',
...@@ -10,6 +9,8 @@ setup_attrs = { ...@@ -10,6 +9,8 @@ setup_attrs = {
'license': 'MIT', 'license': 'MIT',
'packages': find_packages(), 'packages': find_packages(),
'include_package_data': True, 'include_package_data': True,
'use_scm_version': True,
'setup_requires': ['setuptools_scm'],
'install_requires': [ 'install_requires': [
'torch-nightly', 'torch-nightly',
'pytorch-ignite-nightly', 'pytorch-ignite-nightly',
......
...@@ -31,6 +31,13 @@ from . import ignite ...@@ -31,6 +31,13 @@ from . import ignite
from . import utils from . import utils
from . import neurochem from . import neurochem
from . import data from . import data
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
__all__ = ['AEVComputer', 'EnergyShifter', 'ANIModel', 'Ensemble', __all__ = ['AEVComputer', 'EnergyShifter', 'ANIModel', 'Ensemble',
'ignite', 'utils', 'neurochem', 'data'] 'ignite', 'utils', 'neurochem', 'data']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment