Skip to content

Commit a0c71da

Browse files
Replaced vcstools with vcs2l.
Signed-off-by: Leander Stephen D'Souza <[email protected]>
1 parent 6199b2a commit a0c71da

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

bloom/commands/export_upstream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
from bloom.util import temporary_directory
6060

6161
try:
62-
from vcstools.vcs_abstraction import get_vcs_client
62+
from vcs2l.clients import get_vcs_client
6363
except ImportError:
6464
debug(traceback.format_exc())
65-
error("vcstools was not detected, please install it.", file=sys.stderr,
65+
error("vcs2l was not detected, please install it.", file=sys.stderr,
6666
exit=True)
6767

6868

bloom/commands/git/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
from bloom.util import safe_input
7575

7676
try:
77-
from vcstools.vcs_abstraction import get_vcs_client
77+
from vcs2l.clients import get_vcs_client
7878
except ImportError:
7979
debug(traceback.format_exc())
80-
error("vcstools was not detected, please install it.", file=sys.stderr,
80+
error("vcs2l was not detected, please install it.", file=sys.stderr,
8181
exit=True)
8282

8383
upstream_repos = {}

bloom/commands/release.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@
110110
from bloom.util import to_unicode
111111

112112
try:
113-
import vcstools
113+
import vcs2l
114114
except ImportError:
115115
debug(traceback.format_exc())
116-
error("vcstools was not detected, please install it.", file=sys.stderr,
116+
error("vcs2l was not detected, please install it.", file=sys.stderr,
117117
exit=True)
118-
import vcstools.__version__
119-
from vcstools.vcs_abstraction import get_vcs_client
118+
from vcs2l.clients import get_vcs_client
120119

121120
from rosdistro import DistributionFile
122121
from rosdistro import get_distribution_files
@@ -854,7 +853,7 @@ def update_summary(track, repository, distro):
854853
- catkin_pkg version: `{catkin_pkg_v}`
855854
- rosdep version: `{rosdep_v}`
856855
- rosdistro version: `{rosdistro_v}`
857-
- vcstools version: `{vcstools_v}`
856+
- vcs2l version: `{vcs2l_v}`
858857
""".format(
859858
repo=repository,
860859
upstream_repo_url=track_dict['vcs_uri'],
@@ -867,7 +866,7 @@ def update_summary(track, repository, distro):
867866
# Until https://github.com/ros-infrastructure/rosdistro/issues/16
868867
rosdistro_v=pkg_resources.require("rosdistro")[0].version,
869868
rosdep_v=rosdep2.__version__,
870-
vcstools_v=vcstools.__version__.version
869+
vcs2l_v=vcs2l.__version__,
871870
)
872871
summary_file.write(msg)
873872

bloom/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class code(object):
117117
INVALID_VERSION = 30
118118
INVALID_UPSTREAM_TAG = 31
119119
INVALID_BRANCH_ARGS = 40
120-
VCSTOOLS_NOT_FOUND = 50
120+
VCS2L_NOT_FOUND = 50
121121
ROSDEP_NOT_FOUND = 51
122122
EMPY_NOT_FOUND = 52
123123
ROSDEP_FAILED = 53

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'PyYAML',
2727
'rosdep >= 0.15.0',
2828
'rosdistro >= 0.8.0',
29-
'vcstools >= 0.1.22',
29+
'vcs2l @ git+https://github.com/ros-infrastructure/vcs2l.git@leander-dsouza/vcstools-port',
3030
],
3131
extras_require={
3232
'test': [

stdeb.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[DEFAULT]
22
; release with a high debinc to avoid conflict with upstream debian of the same release version
33
Debian-Version: 100
4-
Depends3: python3-yaml, python3-empy, python3-packaging, python3-rosdep (>= 0.15.0), python3-rosdistro (>= 0.8.0), python3-vcstools (>= 0.1.22), python3-setuptools, python3-catkin-pkg (>= 0.4.3)
4+
Depends3: python3-yaml, python3-empy, python3-packaging, python3-rosdep (>= 0.15.0), python3-rosdistro (>= 0.8.0), python3-vcs2l, python3-setuptools, python3-catkin-pkg (>= 0.4.3)
55
Conflicts3: python-bloom
66
Copyright-File: LICENSE.txt
77
Suite3: focal jammy noble bookworm trixie

test/system_tests/test_catkin_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import sys
1010

1111
try:
12-
from vcstools.vcs_abstraction import get_vcs_client
12+
from vcs2l.clients import get_vcs_client
1313
except ImportError:
14-
print("vcstools was not detected, please install it.", file=sys.stderr)
14+
print("vcs2l was not detected, please install it.", file=sys.stderr)
1515
sys.exit(1)
1616

1717
from .common import create_release_repo

0 commit comments

Comments
 (0)