Conversation
clalancette
left a comment
There was a problem hiding this comment.
One thing to note: in the past we had been avoiding these kinds of cleanups in https://github.com/ros2/geometry2 in the hope that we could share code with https://github.com/ros/geometry2 . I think these two forks have diverged enough that that is no longer a viable option, so I'm approving. But before merging please get confirmation from @tfoote that this is OK.
tfoote
left a comment
There was a problem hiding this comment.
I think we've diverged enough to let this cleanup happen.
I had a few notes about the license headers though.
tf2_py/test/test_buffer_core.py
Outdated
There was a problem hiding this comment.
This is changing the license and the year. That doesn't look right.
tf2_py/test/__init__.py
Outdated
There was a problem hiding this comment.
This is changing the license not linting it.
tf2_py/src/tf2_py.cpp
Outdated
There was a problem hiding this comment.
This should have the BSD license to match the origin's license.
tf2_py/src/python_compat.h
Outdated
There was a problem hiding this comment.
This should have the BSD header as it's from the legacy code base.
tf2_py/tf2_py/__init__.py
Outdated
There was a problem hiding this comment.
What's the BSD License 2.0? This is the 3-Clause BSD if you want a proper name.
3007bef to
b79d1d1
Compare
|
@tfoote I have reviewed again the licenses I have seen that the licenses are The 3-Clause BSD License. But the only bsd license accepted is BSD 2.0 according with the code ament_copyright https://github.com/ament/ament_lint/blob/master/ament_copyright/ament_copyright/licenses.py#L41 |
|
I don't know where @clalancette got that copy of the license for ament/ament_lint@767257f There's no such things at "Version 2" listed at https://spdx.org/licenses/BSD-3-Clause.html or https://opensource.org/licenses/BSD-3-Clause or as is in the code. That looks like an accidental copy and paste misstep. In general though the linter needs to be able to accept any valid license. We can do minor whitespace updates if necessary but otherwise we cannot change the verbiage in the license on anything except what we've originally written. We talked about this a while ago and knew that the linters were too strict for applying to imported code. But we chose just not to turn them on instead of making them much more generic for expediency. If we want to turn them on for legacy code they will need to be updated to be more flexible. |
Yeah, I'm honestly not sure where that came from now that I look at it. ament/ament_lint#109 addresses some of the same issue.
ament/ament_lint#75 (somewhat).
For this PR, I'll suggest that we go back to the old copyright for now, and just disable the copyright check. Once we figure out the ament_lint situation, we can come back and turn it on. |
914c274 to
e87a1e1
Compare
|
Excluded ament_copyright should I include the license in the C++ code? beacuse cpplint is also failing because of the licence |
I would say let's turn off cpplint for now as well. Once we resolve the situation in ament_lint, we can revisit this and reenable those. |
|
Excluded cpplint too, should I run the CI? |
df4736b to
e91335b
Compare
|
The change broke all jobs running on Ubuntu Focal: http://build.ros2.org/view/Fci/ @ahcorde Please fix asap. |
#168