Skip to content

Commit

Permalink
Package versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pveigadecamargo committed Aug 14, 2024
1 parent ea95cc4 commit 695e190
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/source/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"version": "develop",
"url": "https://aequilibrae.com/python/develop/"
},
{
"name": "1.1.1",
"version": "1.1.1",
"url": "https://aequilibrae.com/python/V.1.1.1/"
},
{
"name": "1.1.0",
"version": "1.1.0",
"url": "https://aequilibrae.com/python/V.1.1.0/"
},
{
"name": "1.0.2",
"version": "1.0.2",
"url": "https://aequilibrae.com/python/V.1.0.2/"
},
{
"name": "1.0.1",
"version": "1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from datetime import datetime
from pathlib import Path
from sphinx_gallery.sorting import ExplicitOrder
import pkg_resources

project_dir = Path(__file__).parent.parent.parent
if str(project_dir) not in sys.path:
Expand All @@ -27,7 +28,7 @@
if str(project_dir) not in sys.path:
sys.path.insert(0, project_dir)

from __version__ import release_version
release_version = pkg_resources.get_distribution("aequilibrae").version

# -- Project information -----------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/website/redir.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os
import sys
import shutil
import pkg_resources

npth = os.path.abspath(".")
if npth not in sys.path:
sys.path.append(npth)

from __version__ import release_version

release_version = pkg_resources.get_distribution("aequilibrae").version

version = f"V.{release_version}"

Expand Down

0 comments on commit 695e190

Please sign in to comment.