Version number in one place in the code.

Summary:
This isn't the whole task, but it gets the version number into far fewer places.

The doc / website are separate.

Reviewed By: nikhilaravi

Differential Revision: D20426113

fbshipit-source-id: 5810d1eca58b443fcd5f46991dc2f0f26adedbd8
This commit is contained in:
Jeremy Reizenstein
2020-03-13 04:33:36 -07:00
committed by Facebook GitHub Bot
parent 2361845548
commit 4d3c886677
6 changed files with 12 additions and 22 deletions

View File

@@ -66,9 +66,14 @@ def get_extensions():
return ext_modules
__version__ = ""
# Retrieve __version__ from the package.
with open("pytorch3d/__init__.py", "r") as init:
exec(init.read())
setup(
name="pytorch3d",
version="0.1.1",
version=__version__,
author="FAIR",
url="https://github.com/facebookresearch/pytorch3d",
description="PyTorch3d is FAIR's library of reusable components "