Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream version 0.8.2 #9

Merged
merged 70 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
071d273
Fix jobs flags handling (#655)
timonegk Feb 23, 2021
c4718f6
import cleanup (#651)
timonegk Feb 23, 2021
2e78d2f
Fix cleaning jobs flags with --no-make-args (#656)
timonegk Feb 25, 2021
3f08efd
escape whitespaces in `catkin config` printout (#657)
pseyfert Feb 25, 2021
471f223
Fixes for extending profiles (#658)
timonegk Feb 26, 2021
78a039a
remove hack (#659)
timonegk Feb 26, 2021
ea32f1c
Fix handling of invalid package.xml files (#660)
timonegk Mar 2, 2021
cca4c41
Use PYTHONASYNCIODEBUG instead of TROLLIUSDEBUG (#661)
timonegk Mar 2, 2021
5e57348
Evaluate conditional dependencies in package.xml (#662)
timonegk Mar 2, 2021
1cfdd7d
Use standard python function to determine terminal width (#653)
timonegk Mar 11, 2021
95d1a62
Fix Blank lines in build output (#666)
MatthijsBurgh Mar 17, 2021
fe1bec6
Fix shell completion install locations (#652)
timonegk Mar 19, 2021
5a133fa
Remove superfluous argument to sys.exit
timonegk Mar 19, 2021
50cc55d
Use loadavg over the last 1 minute (#668)
mobangjack Mar 23, 2021
5860b7f
Support building from a symlinked workspace (#669)
timonegk Mar 23, 2021
a3a9c97
Fix `catkin create pkg` without license parameter (#671)
timonegk Mar 24, 2021
fc555e7
Fix catkin clean --all-profiles when not at workspace root (#673)
zig-for Apr 8, 2021
3d06964
Fix placeholders for cmake warning and error coloring (#678)
timonegk Apr 19, 2021
11da5e0
Fix stdeb for python 3 (#648)
timonegk Jul 17, 2021
f5a4a0a
Regenerate setup files when the install space was cleaned (#682)
timonegk Jul 17, 2021
404ed5f
Switch from Travis CI to GitHub actions (#684)
timonegk Jul 18, 2021
cffdf51
Make it possible to clean individual packages with isolated layout (#…
timonegk Jul 18, 2021
a32d2b3
Avoid that catkin build --this can create a new workspace (#685)
timonegk Jul 18, 2021
132d8ab
Update changelog
timonegk Jul 18, 2021
7ed2ee2
catkin test: initial commit
timonegk Apr 16, 2021
53649cd
catkin test: fix output of live stdout/stderr
timonegk Apr 16, 2021
ae7d311
catkin test: split test jobs in cmake and catkin test job generators
timonegk Apr 17, 2021
fe10c71
catkin test: add CMakeMakeRunTestsIOBufferProtocol
timonegk Apr 17, 2021
bc0d186
catkin test: add some command line arguments
timonegk Apr 17, 2021
88b62d8
catkin test: add run_tests alias for backwards compatibility
timonegk Apr 17, 2021
8a8cd2b
catkin test: better output filtering
timonegk Apr 17, 2021
6d2d1b2
catkin test: add result of catkin_test_results
timonegk Apr 17, 2021
ac9eebc
catkin test: update tests
timonegk Apr 17, 2021
0f2044d
catkin test: add more options for package selection
timonegk Apr 17, 2021
2984af4
catkin test: add --continue-on-failure
timonegk Apr 17, 2021
61d4e60
catkin test: parallel execution
timonegk Apr 17, 2021
4431f5f
catkin test: add --interleave-output
timonegk Apr 17, 2021
14638bf
catkin test: add --summarize
timonegk Apr 17, 2021
056c8e4
catkin test: PEP8
timonegk Apr 17, 2021
abbc436
catkin test: show error message when unbuilt packages are requested
timonegk Apr 17, 2021
c19e43b
prevent nosetests from executing functions starting with test_ in source
timonegk Apr 17, 2021
388d5d3
add tests for catkin test
timonegk Apr 18, 2021
fe15d87
catkin test: show complete output of ctest for cmake packages
timonegk Apr 18, 2021
520ddbb
catkin test: report success when no tests exist
timonegk Apr 18, 2021
3645adf
catkin test: add option to manually specify test target
timonegk Apr 18, 2021
8f11788
catkin test: add shell completion
timonegk Apr 19, 2021
bbb4799
catkin test: add documentation
timonegk Apr 19, 2021
c4b2c7b
catkin test: fix --verbose
timonegk Apr 19, 2021
a8bc55d
catkin test: improve filtering of run_tests output
timonegk Apr 20, 2021
fc65a6b
catkin test: check for circular dependencies
timonegk Jul 18, 2021
e3f9f7c
catkin test: add --make-args
timonegk Jul 18, 2021
a3cab74
catkin test: call cmake_check_build_system before running the tests
timonegk Jul 18, 2021
142dfa1
Fix environment variable parsing (#686)
timonegk Jul 27, 2021
5d9d272
Update installation docs for python 3 (#687)
timonegk Aug 3, 2021
bbe4eff
catkin test: fix parsing of make arguments
timonegk Oct 3, 2021
0d546c2
Merge pull request #676 from catkin/catkin_test
timonegk Oct 3, 2021
e83062f
https in docs, properties over vars, sphinx cleanup (#690)
MatthijsBurgh Oct 14, 2021
9f81a46
More cleanup (#692)
MatthijsBurgh Oct 15, 2021
6895d4b
add arguments to catkin_test for backwards compatibility (#693)
timonegk Oct 15, 2021
116e203
Improve wording in documentation (#694)
balint-bg Oct 17, 2021
e8cd5a2
Add changelog of version 0.7.2
timonegk Nov 18, 2021
374febc
Added doc for custom build, devel, install dirs (#697)
jimaldon Nov 26, 2021
5163ee2
Some space fixes (#691)
MatthijsBurgh Nov 29, 2021
cd83bb1
0.8.0
timonegk Nov 29, 2021
3b4034c
test: add --limit-status-rate option (#699)
timonegk Nov 30, 2021
6d9f6fd
0.8.1
timonegk Nov 30, 2021
6f7c54d
Add back flags that were removed in #691 (#702)
timonegk Dec 1, 2021
6b78bec
update CLI documentation
timonegk Dec 1, 2021
fd856e4
0.8.2
timonegk Dec 1, 2021
7657efd
Merge tag '0.8.2' into merge/upstream/0.8.2
meyerj Dec 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
### Build / Run Issue

[//]: # (If you are migrating from catkin_make, please follow the migration guide:)
[//]: # (http://catkin-tools.readthedocs.org/en/latest/migration.html)
[//]: # (https://catkin-tools.readthedocs.org/en/latest/migration.html)

[//]: # (Please also check for solved issues here:)
[//]: # (http://catkin-tools.readthedocs.org/en/latest/troubleshooting.html)
[//]: # (https://catkin-tools.readthedocs.org/en/latest/troubleshooting.html)

[//]: # (And check for open issues here:)
[//]: # (https://github.com/catkin/catkin_tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build

on: [push, pull_request]

jobs:
build:
strategy:
matrix:
versions:
- dist: ubuntu-18.04
python: 3.6
catkin: indigo-devel
- dist: ubuntu-18.04
python: 3.7
catkin: indigo-devel
- dist: ubuntu-18.04
python: 3.8
catkin: indigo-devel
- dist: ubuntu-20.04
python: 3.9
catkin: indigo-devel

runs-on: ${{ matrix.versions.dist }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.versions.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.versions.python }}
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install --upgrade empy sphinx_rtd_theme sphinxcontrib-spelling nose coverage flake8 mock
- name: Set up catkin
run: |
git clone https://github.com/ros/catkin.git -b ${{ matrix.versions.catkin }} /tmp/catkin_source
mkdir /tmp/catkin_source/build
pushd /tmp/catkin_source/build
cmake .. && make
popd
- name: Test catkin_tools
run: |
source /tmp/catkin_source/build/devel/setup.bash
nosetests -s tests
- name: Build documentation
run: |
pushd docs
make html
sphinx-build -b spelling . build -t use_spelling
popd
15 changes: 0 additions & 15 deletions .travis.before_install.bash

This file was deleted.

7 changes: 0 additions & 7 deletions .travis.before_script.bash

This file was deleted.

51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

82 changes: 82 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,88 @@
Changelog for package catkin_tools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Upcoming
--------

0.8.2 (2021-12-01)
------------------

* Add back flags that were removed in #691 (#702)
* Documentation: Update CLI documentation

0.8.1 (2021-11-30)
------------------

* catkin test: add --limit-status-rate option (#699)

0.8.0 (2021-11-30)
------------------

* Add catkin test verb (#676)
* Code cleanup (#692)
* Documentation: https in docs, properties over vars, sphinx cleanup (#690)
* Documentation: Improve wording (#694)
* Documentation: Add custom build, devel, install dirs (#697)
* Contributors: Balint, Jim Aldon D'Souza, Matthijs van der Burgh, mobangjack, pseyfert, Timon Engelke

0.7.2 (2021-11-18)
------------------

* Update installation docs for python 3 (#687)
* Fix environment variable parsing (#686)
* Switch from Travis CI to GitHub actions (#684)
* Regenerate setup files when the install space was cleaned (#682)
* Add possibility to clean individual package with isolated devel space (#683)
* Fix regeneration of setup file when the install space was cleaned (#682)
* Fix workspace generation with catkin build --this and --start-with-this (#685)

0.7.1 (2021-07-17)
------------------
* Fixes in the build system requiring a version increase

0.7.0 (2021-03-01)
------------------
* Fix placeholders for cmake warning and error coloring (#678)
* Fix catkin clean --all-profiles when not at workspace root (#673)
* Fix `catkin create pkg` without license parameter (#671)
* Support building from a symlinked workspace (#669)
* Use loadavg over the last 1 minute (#668)
* Fix shell completion install locations (#652)
* Fix blank lines in build output (#666)
* Use standard python function to determine terminal width (#653)
* Fix handling of invalid package.xml files (#660)
* Fixes for extending profiles (#658)
* escape whitespaces in `catkin config` printout (#657)
* updates to zsh completion (#609)
* Ignore catkin_tools_prebuild package in build space (#650)
* fix 'catkin locate' for symlinked pkgs inside workspace (#624)
* Report circular dependencies detected by topological_order_packages() (#617)
* Add `--this` option to `clean` verb (#623)
* In catkin build, preserve original job list topological ordering (#626)
* Fail build if jobs were abandoned (#644)
* Fix installation of new cmake files (#615)
* Abort with error message on circular dependency. (#641)
* Changed yield from lock to await for Python 3.9 compat (#635)
* Remove older py35+xenial config and add py39+focal (#637)
* Install python2 before travis runs on Focal. (#639)
* Bump cmake min ver to 2.8.12 (#634)
* Fix byte decoding for python 3 (Issue #625) (#627)
* Cleanup of jobs flag parsing (#610, #656, #655)
* Fix get_python_install_dir for Python 2/3 (#601)
* Minor cleanup:
- import cleanup (#651)
- remove hack (#659)
- Add missing space in devel layout error message
- fix TypeError on executing catkin env (#649)
- Put a space between 'workspace' and 'and' (#619)
- Remove redundant 'configuration' in mechanics.rst (#646)
- Use PYTHONASYNCIODEBUG instead of TROLLIUSDEBUG (#661)
* Contributors: Akash Patel, Guglielmo Gemignani, Ivor Wanders, Kevin Jaget, Lucas Walter, Mathias Lüdtke, Matthijs van der Burgh, Mike Purvis, Robert Haschke, Simon Schmeisser, Tim Rakowski, Timon Engelke, Vojtech Spurny, ckurtz22, mobangjack, pseyfert, xiaxi, zig-for

0.6.0 (2020-06-03)
------------------
* This release restores the 0.4.5 state due to an accident with the 0.5.0 release where we pushed it to Python2 users which it doesn't support.

0.5.0 (2020-06-02)
------------------
* Revert "jobs: Fixing environment required to run catkin test targets on pre-indigo catkin" (`#600 <https://github.com/catkin/catkin_tools/issues/600>`_)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# catkin_tools [![Build Status](https://travis-ci.org/catkin/catkin_tools.svg?branch=master)](https://travis-ci.org/catkin/catkin_tools)
# catkin_tools [![Build Status](https://github.com/catkin/catkin_tools/actions/workflows/workflow.yml/badge.svg)](https://github.com/catkin/catkin_tools/actions/workflows/workflow.yml)

Command line tools for working with [catkin](https://github.com/ros/catkin)

Documentation: http://catkin-tools.readthedocs.org/
Documentation: https://catkin-tools.readthedocs.org/
14 changes: 7 additions & 7 deletions catkin_tools/argument_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

import argparse
import os
import re
Expand Down Expand Up @@ -254,7 +252,7 @@ def extract_jobs_flags(mflags):
:rtype: list
"""
if not mflags:
return []
return None

# Each line matches a flag type, i.e. -j, -l, --jobs, --load-average
# (?:^|\s) and (?=$|\s) make sure that the flag is surrounded by whitespace
Expand Down Expand Up @@ -324,14 +322,16 @@ def configure_make_args(make_args, jobs_args, use_internal_make_jobserver):

:param make_args: arguments to be passed to GNU Make
:type make_args: list
:param jobs_args: job arguments overriding make flags
:type jobs_args: list
:param use_internal_make_jobserver: if true, use the internal jobserver
:type make_args: bool
:rtype: tuple (final make_args, using makeflags, using cliflags, using jobserver)
"""

# Configure default jobs options: use all CPUs in each package
try:
# NOTE: this will yeild greater than 100% CPU utilization
# NOTE: this will yield greater than 100% CPU utilization
n_cpus = cpu_count()
jobs_flags = {
'jobs': n_cpus,
Expand Down Expand Up @@ -378,7 +378,7 @@ def argument_preprocessor(args):

:param args: system arguments from which special arguments need to be extracted
:type args: list
:returns: a tuple contianing a list of the arguments which can be handled
:returns: a tuple containing a list of the arguments which can be handled
by argparse and a dict of the extra arguments which this function has
extracted
:rtype: tuple
Expand All @@ -394,12 +394,12 @@ def argument_preprocessor(args):
jobs_args = extract_jobs_flags(' '.join(args))
if jobs_args:
# Remove jobs flags from cli args if they're present
args = re.sub(' '.join(jobs_args), '', ' '.join(args)).split()
args = [arg for arg in args if arg not in jobs_args]
elif make_args is not None:
jobs_args = extract_jobs_flags(' '.join(make_args))
if jobs_args:
# Remove jobs flags from cli args if they're present
make_args = re.sub(' '.join(jobs_args), '', ' '.join(make_args)).split()
make_args = [arg for arg in make_args if arg not in jobs_args]

extras = {
'cmake_args': cmake_args,
Expand Down
12 changes: 3 additions & 9 deletions catkin_tools/commands/catkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

import argparse
from datetime import date
import os
import pkg_resources
import sys

try:
from shlex import quote as cmd_quote
except ImportError:
from pipes import quote as cmd_quote
from datetime import date
from shlex import quote as cmd_quote

from catkin_tools.common import is_tty

Expand Down Expand Up @@ -195,7 +189,7 @@ def catkin_main(sysargs):
date.today().year)
)
print('catkin_tools is released under the Apache License,'
' Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)')
' Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0)')
print('---')
print('Using Python {}'.format(''.join(sys.version.split('\n'))))
sys.exit(0)
Expand Down
Loading