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

Add license headers #606

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Add license headers #606

merged 1 commit into from
Apr 25, 2024

Conversation

odow
Copy link
Member

@odow odow commented Apr 25, 2024

I'll comment in-line with a few things.

and .travis.yml contain code copied from the Transducers.jl package
(https://github.com/tkf/Transducers.jl/) which is licensed under the MIT License:

>Copyright (c) 2018 Takafumi Arakaki
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved this to a separate LICENSE.md file in benchmark. It isn't part of the Convex.jl source code that gets loaded by using Convex.


The `TreePrint` module contains code from the AbstractTrees.jl package
(https://github.com/Keno/AbstractTrees.jl) which is licensed under the
MIT "Expat" License:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved this to the file src/utilities/tree_prinnt.jl

>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
>SOFTWARE.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really obvious that code like:

# This file was copied from Transducers.jl
# which is available under an MIT license (see LICENSE).
using PkgBenchmark
benchmarkpkg(
    dirname(@__DIR__),
    BenchmarkConfig(env = Dict("JULIA_NUM_THREADS" => "1")),
    resultfile = joinpath(@__DIR__, "result.json"),

is justified to declare the MIT license. This is just usage of a package, unrelated to Transducers?

@@ -1,5 +1,7 @@
# Some code in `src/problem_depot` was modified from MathOptInterface
# which is available under an MIT license (see LICENSE).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the reference to MathOptInterface's MOI. Looking through this file, I don't see anything that justifies it. I don't think using a constant to store a benchmark suite justifies it.

Copy link

codecov bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.83%. Comparing base (484f853) to head (261b93c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #606   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files          86       86           
  Lines        5035     5035           
=======================================
  Hits         4926     4926           
  Misses        109      109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ericphanson
Copy link
Collaborator

I think I was probably too conservative with license stuff, added too many. This looks good!

@odow odow merged commit faf7fa7 into master Apr 25, 2024
10 checks passed
@odow odow deleted the od/license branch April 25, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants