Skip to content

update license year 2018, remove duplicate license file - #4973

Closed
jbrockmendel wants to merge 1 commit into
statsmodels:masterfrom
jbrockmendel:update_license
Closed

jbrockmendel wants to merge 1 commit into
statsmodels:masterfrom
jbrockmendel:update_license

Conversation

@jbrockmendel

@jbrockmendel jbrockmendel commented Aug 23, 2018 •

Copy link
Copy Markdown
Contributor

Broken off of #4958 in the hopes this will make it easier on reviewers.

Closes #4931.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt what commit code should this get?

@josef-pkt

Copy link
Copy Markdown
Member

MAINT

I just checked and the statsmodels/license.txt is NOT installed.
This is a bug. I don't see any license file in the installed version in python's sitepackages.
I checked an old statsmodels 0.5.0 install and it is also missing there.
numpy, scipy have it (at least the old versions that I checked)
So I'm not sure that file should be deleted, we should add it to the statsmodels distributions (sdist and wheels) instead.

aside there is also an info.py file that doesn't seem to have been updated in this decade
(old scipy pattern that scipy dropped in 2012)

@jbrockmendel

jbrockmendel commented Aug 23, 2018 •

Copy link
Copy Markdown
Contributor Author

aside there is also an info.py file that doesn't seem to have been updated in this decade

If I understand correctly, api imports __doc__ from info.py. I'd be on board with just putting the docstring directly in api and removing the extraneous file.

@bashtage

Copy link
Copy Markdown
Member

The files should be included in the manifest I suppose.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

The files should be included in the manifest I suppose.

Sounds good. Is there a standard way to test that this gets distributed correctly?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Shouldn't the global-include of *.txt get the LICENSE.txt file?

@bashtage

Copy link
Copy Markdown
Member

I have added including LICENSE to #4871 .

@bashtage

Copy link
Copy Markdown
Member

Sounds good. Is there a standard way to test that this gets distributed correctly?

Manually check it. Non trivial to write a test (possibly, would need to install statsmodels, and then find the installation directory, and then check that the file is there).

@codecov-io

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@4b0e5aa). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4973   +/-   ##
=========================================
  Coverage          ?   81.32%           
=========================================
  Files             ?      582           
  Lines             ?    90026           
  Branches          ?    10093           
=========================================
  Hits              ?    73215           
  Misses            ?    14513           
  Partials          ?     2298

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b0e5aa...2af6217. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt should be ready now that setup.py is updated?

@josef-pkt

Copy link
Copy Markdown
Member

4871 is not yet merged, I just merged the CI testing changes

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Gotcha, my mistake.

@bashtage

Copy link
Copy Markdown
Member

@josef-pkt Tiny PR with simple cleanups. Should be merged.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt ping; this was waiting for #4871 IIRC.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@rgommers might be nice to have an up-to-date LICENSE yah?

@rgommers

Copy link
Copy Markdown
Member

This change is correct and looks like a clear improvement.

I just checked and the statsmodels/license.txt is NOT installed.

I just checked, it's present in the sdist. Checking the wheels takes a bit long, would be good to do too (python setup.py bdist_wheel, then inspect the wheel - it's a standard zip file). It should be included in the wheel and installed I think - just checked an installed numpy version and the license file is present next to the main __init__.py. Could be done in a separate PR though.

@rgommers

Copy link
Copy Markdown
Member

@rgommers might be nice to have an up-to-date LICENSE yah?

Yes. I'm not really the right person to come along and merge PRs that other, more active, maintainers don't want to or haven't merged yet though. So I'll keep my hand off the green button for this one:)

@bashtage

Copy link
Copy Markdown
Member

See #5195

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Closing in favor of #5195.

@jbrockmendel
jbrockmendel deleted the update_license branch September 13, 2018 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants