Skip to content

Commit cadaf56

Browse files
committed
fix the missing __version__, covers issues #6
1 parent 7d441a6 commit cadaf56

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

are/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# Meta Platforms, Inc. and affiliates. Confidential and proprietary.
2+
3+
from importlib.metadata import PackageNotFoundError, version
4+
5+
try:
6+
__version__ = version("meta-agents-research-environments")
7+
except PackageNotFoundError:
8+
# package is not installed
9+
__version__ = "unknown"

docs/user_guide/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
..
22
Copyright (c) Meta Platforms, Inc. and affiliates.
33
All rights reserved.
4-
4+
55
This source code is licensed under the terms described in the LICENSE file in
66
the root directory of this source tree.
77

@@ -122,8 +122,8 @@ To verify your installation works correctly:
122122

123123
.. code-block:: python
124124
125-
import are.simulation
126-
print(are.simulation.__version__)
125+
import are
126+
print(are.__version__)
127127
128128
2. **Run a Simple Scenario**
129129

0 commit comments

Comments
 (0)