diff --git a/docs/conf.py b/docs/conf.py index 87ed6a23..bf139755 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -82,10 +82,10 @@ copyright = "2019, facebookresearch" author = "facebookresearch" # The short X.Y version -version = "0.1" +version = "0.2.0" # The full version, including alpha/beta/rc tags -release = version + ".1" +release = version # -- General configuration --------------------------------------------------- diff --git a/pytorch3d/__init__.py b/pytorch3d/__init__.py index fb1f32e2..1ae38a79 100644 --- a/pytorch3d/__init__.py +++ b/pytorch3d/__init__.py @@ -1,3 +1,3 @@ # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. -__version__ = "0.1.1" +__version__ = "0.2.0" diff --git a/setup.py b/setup.py index 35895f21..ee678ee1 100755 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ import glob import os +import runpy import torch from setuptools import find_packages, setup @@ -67,10 +68,8 @@ def get_extensions(): return ext_modules -__version__ = "" # Retrieve __version__ from the package. -with open("pytorch3d/__init__.py", "r") as init: - exec(init.read()) +__version__ = runpy.run_path("pytorch3d/__init__.py")["__version__"] if os.getenv("PYTORCH3D_NO_NINJA", "0") == "1":