From 686c8666d31d932ed42d3cd7319f249fc75e89a9 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Sun, 26 Apr 2020 07:17:04 -0700 Subject: [PATCH] version 0.2.0 Summary: Update version number for version 0.2.0. Reviewed By: nikhilaravi Differential Revision: D21157358 fbshipit-source-id: 32a5b93e5dc65a31a806a5ce7231f8603fe02e85 --- docs/conf.py | 4 ++-- pytorch3d/__init__.py | 2 +- setup.py | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) 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":