Compare commits

...
Sign in to create a new pull request.

29 commits

Author SHA1 Message Date
Scott K Logan
25a40ea1a5 Ignore warnings during pytest
Some of these tests capture stdout, and the warning output to stdout
breaks the asserts.
2025-11-19 16:11:21 -06:00
Python Maint
6b564486a0 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:43:20 +02:00
Python Maint
ccb4bee364 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:07:18 +02:00
Fedora Release Engineering
c8c627932d Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 11:01:51 +00:00
Python Maint
7ccb7f8f97 Rebuilt for Python 3.14 2025-06-02 23:24:41 +02:00
Fedora Release Engineering
340169b1d0 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 20:32:51 +00:00
Miroslav Suchý
befb791516 convert ASL 2.0 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-24 17:48:33 +02:00
Fedora Release Engineering
c893949e57 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 16:54:03 +00:00
Python Maint
95bd11b958 Rebuilt for Python 3.13 2024-06-07 10:59:20 +02:00
Fedora Release Engineering
bb6419bd54 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 12:33:29 +00:00
Fedora Release Engineering
41b1bab071 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 08:49:51 +00:00
Fedora Release Engineering
567084bbda Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 15:09:08 +00:00
Python Maint
2eefb44506 Rebuilt for Python 3.12 2023-06-13 23:05:29 +02:00
Fedora Release Engineering
d60468f4d7 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 18:15:06 +00:00
Scott K Logan
7d1639f4f7 Update to 0.3.0
Also drop Python 2 subpackage, which is no longer supported upstream
2022-10-16 16:10:46 -07:00
Fedora Release Engineering
27645f4661 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:16:59 +00:00
Python Maint
f43bed1174 Rebuilt for Python 3.11 2022-06-13 17:17:06 +02:00
Fedora Release Engineering
8d38e6efe9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 16:20:31 +00:00
Fedora Release Engineering
039f281357 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-27 08:30:20 +00:00
Python Maint
981ed650a8 Rebuilt for Python 3.10 2021-06-04 21:07:48 +02:00
Fedora Release Engineering
a0e5237089 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 14:04:34 +00:00
Scott K Logan
2efe543388 Update to 0.2.15 2020-11-02 12:04:29 -08:00
Scott K Logan
515d9da493 Update to 0.2.14 2020-08-16 14:23:04 -07:00
Scott K Logan
60f5dd5aaa Update to 0.2.13 2020-07-27 10:25:23 -07:00
Scott K Logan
e9c16550c2 Update to 0.2.12 2020-07-02 08:41:59 -07:00
Scott K Logan
f37b2733b1 Update to 0.2.11 2020-06-18 11:44:47 -07:00
Scott K Logan
9449b2c35d Update to 0.2.10 2020-06-15 17:07:37 -07:00
Scott K Logan
7274119a5c Update to 0.2.9 2020-05-29 10:52:07 -07:00
Miro Hrončok
1fb26c2175 Rebuilt for Python 3.9 2020-05-26 03:44:59 +02:00
5 changed files with 105 additions and 164 deletions

8
.gitignore vendored
View file

@ -6,3 +6,11 @@
/vcstool-0.2.4.tar.gz
/vcstool-0.2.7.tar.gz
/vcstool-0.2.8.tar.gz
/vcstool-0.2.9.tar.gz
/vcstool-0.2.10.tar.gz
/vcstool-0.2.11.tar.gz
/vcstool-0.2.12.tar.gz
/vcstool-0.2.13.tar.gz
/vcstool-0.2.14.tar.gz
/vcstool-0.2.15.tar.gz
/vcstool-0.3.0.tar.gz

View file

@ -1,61 +0,0 @@
From 247a7480aaa4b0d71289855f8fd8e1ae566b092b Mon Sep 17 00:00:00 2001
From: Scott K Logan <logans@cottsay.net>
Date: Sun, 10 May 2020 02:24:12 -0700
Subject: [PATCH] Make tests compatible with git back to 1.8.3.1
---
test/test_commands.py | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/test/test_commands.py b/test/test_commands.py
index 6374b3d..eff1b82 100644
--- a/test/test_commands.py
+++ b/test/test_commands.py
@@ -92,7 +92,11 @@ def test_pull(self):
with self.assertRaises(subprocess.CalledProcessError) as e:
run_command('pull', args=['--workers', '1'])
expected = get_expected_output('pull')
- self.assertEqual(e.exception.output, expected)
+ # replace message from older git versions
+ output = e.exception.output.replace(
+ b'anch. Please specify which\nbranch you want to merge with. See',
+ b'anch.\nPlease specify which branch you want to merge with.\nSee')
+ self.assertEqual(output, expected)
def test_pull_api(self):
try:
@@ -131,8 +135,12 @@ def test_pull_api(self):
os.chdir(cwd_bck)
assert rc == 1
+ # replace message from older git versions
+ output = stdout_stderr.getvalue().replace(
+ 'anch. Please specify which\nbranch you want to merge with. See',
+ 'anch.\nPlease specify which branch you want to merge with.\nSee')
expected = get_expected_output('pull').decode()
- assert stdout_stderr.getvalue() == expected
+ assert output == expected
def test_reimport(self):
cwd_vcstool = os.path.join(TEST_WORKSPACE, 'vcstool')
@@ -261,6 +269,20 @@ def run_command(command, args=None, subfolder=None):
[sys.executable, script] + (args or []),
stderr=subprocess.STDOUT, cwd=cwd, env=env)
# replace message from older git versions
+ output = output.replace(
+ b'git checkout -b new_branch_name',
+ b'git checkout -b <new-branch-name>')
+ output = output.replace(
+ b'(detached from ', b'(HEAD detached at ')
+ output = output.replace(
+ b"ady on 'master'\n=",
+ b"ady on 'master'\nYour branch is up-to-date with 'origin/master'.\n=")
+ output = output.replace(
+ b'# HEAD detached at ',
+ b'HEAD detached at ')
+ output = output.replace(
+ b'# On branch master',
+ b"On branch master\nYour branch is up-to-date with 'origin/master'.\n")
# the following seems to have changed between git 2.17.1 and 2.25.1
output = output.replace(
b"Note: checking out '", b"Note: switching to '")

View file

@ -1,6 +1 @@
# MANUAL PAGES
addFilter(r'no-manual-page-for-binary (vcs|vcs-.*)( |$)')
# SPELLING ERRORS
addFilter(r'spelling-error .* en_US (vcstools)( |$)')
addFilter(r'spelling-error Summary\(en_US\) (vcs)( |$)')

View file

@ -1,20 +1,15 @@
%{?!_without_python2:%global with_python2 0%{?_with_python2:1} || !(0%{?fedora} >= 30 || 0%{?rhel} >= 8)}
%{?!_without_python3:%global with_python3 0%{?_with_python3:1} || !0%{?rhel} || 0%{?rhel} >= 7}
%global srcname vcstool
Name: python-%{srcname}
Version: 0.2.8
Release: 1%{?dist}
Version: 0.3.0
Release: 15%{?dist}
Summary: Tool to invoke vcs commands on multiple repositories
License: ASL 2.0
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
License: Apache-2.0
URL: https://github.com/dirk-thomas/%{srcname}
Source0: https://github.com/dirk-thomas/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
# Submitted upstream as dirk-thomas/vcstool#138
Patch0: %{name}-0.2.8-old-git-syntax.patch
BuildArch: noarch
%description
@ -33,43 +28,6 @@ The biggest differences between the two are:
command line tools built on top.
%if 0%{?with_python2}
%package -n python2-%{srcname}
Summary: %{summary}
BuildRequires: git
BuildRequires: python2-devel
BuildRequires: python2-pytest
BuildRequires: python2-pyyaml
BuildRequires: python2-setuptools
%{?python_provide:%python_provide python2-%{srcname}}
%if %{undefined __pythondist_requires}
Requires: python2-pyyaml
Requires: python2-setuptools
%endif
%if !0%{?rhel} || 0%{?rhel} >= 8
Recommends: git
%endif
%description -n python2-%{srcname}
Vcstool is a version control system (VCS) tool, designed to make working with
multiple repositories easier.
Note: This tool should not be confused with vcstools (with a trailing s) which
provides a Python API for interacting with different version control systems.
The biggest differences between the two are:
- vcstool doesn't use any state beside the repository working copies available
in the filesystem.
- The file format of vcstool export uses the relative paths of the repositories
as keys in YAML which avoids collisions by design.
- vcstool has significantly less lines of code than vcstools including the
command line tools built on top.
%endif
%if 0%{?with_python3}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
BuildRequires: git
@ -102,7 +60,6 @@ The biggest differences between the two are:
as keys in YAML which avoids collisions by design.
- vcstool has significantly less lines of code than vcstools including the
command line tools built on top.
%endif
%prep
@ -110,13 +67,7 @@ The biggest differences between the two are:
%build
%if 0%{?with_python2}
%py2_build
%endif
%if 0%{?with_python3}
%py3_build
%endif
%install
@ -127,27 +78,6 @@ The biggest differences between the two are:
install -d %{buildroot}%{_datadir}/bash-completion/completions %{buildroot}%{_bindir}
%if 0%{?with_python2}
%py2_install -- --install-scripts %{_bindir}2
echo -n "" > py2_bins
for f in `ls %{buildroot}%{_bindir}2`; do
mv %{buildroot}%{_bindir}2/$f %{buildroot}%{_bindir}/$f-%{python2_version}
ln -s $f-%{python2_version} %{buildroot}%{_bindir}/$f-2
%if !(0%{?with_python3})
ln -s $f-%{python2_version} %{buildroot}%{_bindir}/$f
echo "%{_bindir}/$f" >> py2_bins
%endif
echo -e "%{_bindir}/$f-2\n%{_bindir}/$f-%{python2_version}" >> py2_bins
done
# Integrate bash completion with the bash-completion package
cp -f %{buildroot}%{_datadir}/%{srcname}-completion/vcs.bash %{buildroot}%{_datadir}/bash-completion/completions/vcs
ln -sf vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-2
ln -s vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-%{python2_version}
%endif
%if 0%{?with_python3}
%py3_install -- --install-scripts %{_bindir}%{python3_pkgversion}
echo -n "" > py3_bins
@ -159,10 +89,9 @@ for f in `ls %{buildroot}%{_bindir}%{python3_pkgversion}`; do
done
# Integrate bash completion with the bash-completion package
cp -f %{buildroot}%{_datadir}/%{srcname}-completion/vcs.bash %{buildroot}%{_datadir}/bash-completion/completions/vcs
cp -af %{buildroot}%{_datadir}/%{srcname}-completion/vcs.bash %{buildroot}%{_datadir}/bash-completion/completions/vcs
ln -sf vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-3
ln -s vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-%{python3_version}
%endif
%check
@ -174,28 +103,10 @@ ln -s vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-%{python3_vers
--ignore test/test_commands.py \\\
test
%if 0%{?with_python2}
%{__python2} -m pytest %pytest_options
%endif
%if 0%{?with_python3}
%{__python3} -m pytest %pytest_options
%endif
PYTHONWARNINGS=ignore \
%{__python3} -m pytest %pytest_options
%if 0%{?with_python2}
%files -n python2-%{srcname} -f py2_bins
%license LICENSE
%doc CONTRIBUTING.md README.rst
%{python2_sitelib}/%{srcname}/
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info/
%{_datadir}/%{srcname}-completion
%{_datadir}/bash-completion/completions/vcs
%{_datadir}/bash-completion/completions/vcs-2
%{_datadir}/bash-completion/completions/vcs-%{python2_version}
%endif
%if 0%{?with_python3}
%files -n python%{python3_pkgversion}-%{srcname} -f py3_bins
%license LICENSE
%doc CONTRIBUTING.md README.rst
@ -205,10 +116,98 @@ ln -s vcs %{buildroot}%{_datadir}/bash-completion/completions/vcs-%{python3_vers
%{_datadir}/bash-completion/completions/vcs
%{_datadir}/bash-completion/completions/vcs-3
%{_datadir}/bash-completion/completions/vcs-%{python3_version}
%endif
%changelog
* Wed Nov 19 2025 Scott K Logan <logans@cottsay.net> - 0.3.0-15
- Ignore warnings during pytest (rhbz#2403567)
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.3.0-14
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.3.0-13
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 0.3.0-11
- Rebuilt for Python 3.14
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 0.3.0-9
- convert license to SPDX
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.3.0-7
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.3.0-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Oct 16 2022 Scott K Logan <logans@cottsay.net> - 0.3.0-1
- Update to 0.3.0 (rhbz#1991775)
- Drop Python 2 subpackage, which is no longer supported upstream
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.15-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.15-6
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.15-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.15-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.15-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 02 2020 Scott K Logan <logans@cottsay.net> - 0.2.15-1
- Update to 0.2.15 (rhbz#1891662)
* Sun Aug 16 2020 Scott K Logan <logans@cottsay.net> - 0.2.14-1
- Update to 0.2.14 (rhbz#1862412)
* Mon Jul 27 2020 Scott K Logan <logans@cottsay.net> - 0.2.13-1
- Update to 0.2.13 (rhbz#1859022)
* Thu Jul 02 2020 Scott K Logan <logans@cottsay.net> - 0.2.12-1
- Update to 0.2.12 (rhbz#1853214)
* Thu Jun 18 2020 Scott K Logan <logans@cottsay.net> - 0.2.11-1
- Update to 0.2.11 (rhbz#1847809)
* Mon Jun 15 2020 Scott K Logan <logans@cottsay.net> - 0.2.10-1
- Update to 0.2.10 (rhbz#1846217)
* Fri May 29 2020 Scott K Logan <logans@cottsay.net> - 0.2.9-1
- Update to 0.2.9 (rhbz#1838404)
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.8-2
- Rebuilt for Python 3.9
* Sun May 10 2020 Scott K Logan <logans@cottsay.net> - 0.2.8-1
- Update to 0.2.8 (rhbz#1833742)

View file

@ -1 +1 @@
SHA512 (vcstool-0.2.8.tar.gz) = 251acbfe6122206b0ececb5306b963eec9089c20aac39da8ff0ab7f5b0512d56a153636731f376014912df9d06126392bac9a0fcdaa992938e83e270991afa3f
SHA512 (vcstool-0.3.0.tar.gz) = f50ec4c23fce65f71ec0070b709840150f6a90b0620dd937c234c408951b4eb6ad9d53d841d3862ce7ece54c15458fd9db434341fd4a1eabb40a7084fb71b101