Commit 75f1f453 authored by rusty1s's avatar rusty1s
Browse files

fixed version call

parent 90916b8b
...@@ -2,12 +2,10 @@ from os import path as osp ...@@ -2,12 +2,10 @@ from os import path as osp
from setuptools import setup, find_packages from setuptools import setup, find_packages
filename = osp.join(osp.dirname(__file__), 'VERSION')
with open(filename, 'r') as f:
version = f.read().strip()
import build # noqa import build # noqa
__version__ = '0.1.0'
install_requires = ['cffi'] install_requires = ['cffi']
setup_requires = ['pytest-runner', 'cffi'] setup_requires = ['pytest-runner', 'cffi']
tests_require = ['pytest', 'pytest-cov'] tests_require = ['pytest', 'pytest-cov']
...@@ -15,7 +13,7 @@ docs_require = ['Sphinx', 'sphinx_rtd_theme'] ...@@ -15,7 +13,7 @@ docs_require = ['Sphinx', 'sphinx_rtd_theme']
setup( setup(
name='torch_scatter', name='torch_scatter',
version=version, version=__version__,
description='PyTorch extension for various scatter methods', description='PyTorch extension for various scatter methods',
url='https://github.com/rusty1s/pytorch_scatter', url='https://github.com/rusty1s/pytorch_scatter',
author='Matthias Fey', author='Matthias Fey',
......
from os import path as osp
from .functions.add import scatter_add_, scatter_add from .functions.add import scatter_add_, scatter_add
from .functions.sub import scatter_sub_, scatter_sub from .functions.sub import scatter_sub_, scatter_sub
from .functions.mul import scatter_mul_, scatter_mul from .functions.mul import scatter_mul_, scatter_mul
...@@ -8,9 +6,7 @@ from .functions.mean import scatter_mean_, scatter_mean ...@@ -8,9 +6,7 @@ from .functions.mean import scatter_mean_, scatter_mean
from .functions.max import scatter_max_, scatter_max from .functions.max import scatter_max_, scatter_max
from .functions.min import scatter_min_, scatter_min from .functions.min import scatter_min_, scatter_min
filename = osp.join(osp.dirname(__file__), '..', 'VERSION') __version__ = '0.1.0'
with open(filename, 'r') as f:
__version__ = f.read().strip()
__all__ = [ __all__ = [
'scatter_add_', 'scatter_add', 'scatter_sub_', 'scatter_sub', 'scatter_add_', 'scatter_add', 'scatter_sub_', 'scatter_sub',
......
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