-
Notifications
You must be signed in to change notification settings - Fork 47
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
Move to package structure #88
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-4.0.0 #88 +/- ##
=============================================
+ Coverage 98.94% 98.99% +0.04%
=============================================
Files 1 6 +5
Lines 380 397 +17
=============================================
+ Hits 376 393 +17
Misses 4 4
Continue to review full report at Codecov.
|
34636db
to
e3478e6
Compare
I've prepared the following remote branch. It would be good to consolidate the results of this P-R into a |
5f30e8a
to
a53307e
Compare
I rebased the branch onto I will however leave it in |
* Copy paste * Fixed imports * Test file only moved!
a53307e
to
b281f11
Compare
I've rebased the branch. The PR is ready for review now |
@raimon49 Did you get a chance to take a look at this yet? |
@cdce8p Overall, I am willing to distribute pip-licenses under the MIT license. So, I would like all |
I agree, the MIT license is a really good fit for this project. However I don't believe it's really necessary to add it to every file header. In almost all cases it's enough to have a LICENSE file distributed with the package. Doing it that way, it's also way easier to update the copyright notice (eg. to update the year). The only cases I can think of including the license in every file use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The split design of the package structure looks like a good job.
After this PR is merged, or just before v-4.0.0 ships, I may add a simple link to the license file URLs and a declaration of character encoding to all files.
I don't think it's necessary, but I can understand your intension. I've added a short note to the top of every source file: # ---------------------------------------------------------------------------
# Licensed under the MIT License. See LICENSE file for license information.
# --------------------------------------------------------------------------- What do you think? -- Character encodings: I believe they aren't necessary. --
|
e56bb17
to
c5ea738
Compare
@raimon49 Can you squash merge this PR (and all other subsequent ones for the dev branch) as well? |
Thanks for the work. It looks good.
Okay, I understand. |
Yes, we will adopt that workflow for the merge to |
Thanks 👍🏻 |
* Move to package structure * Copy paste * Fixed imports * Test file only moved! * Fixed tests * Refactor tests + move to pytest * Add short license headers * Enable github actions on dev-4.0.0 branch * Remove license header from setup.py
* Move to package structure * Copy paste * Fixed imports * Test file only moved! * Fixed tests * Refactor tests + move to pytest * Add short license headers * Enable github actions on dev-4.0.0 branch * Remove license header from setup.py
* Move to package structure * Copy paste * Fixed imports * Test file only moved! * Fixed tests * Refactor tests + move to pytest * Add short license headers * Enable github actions on dev-4.0.0 branch * Remove license header from setup.py
* Move to package structure * Copy paste * Fixed imports * Test file only moved! * Fixed tests * Refactor tests + move to pytest * Add short license headers * Enable github actions on dev-4.0.0 branch * Remove license header from setup.py
* Move to package structure * Copy paste * Fixed imports * Test file only moved! * Fixed tests * Refactor tests + move to pytest * Add short license headers * Enable github actions on dev-4.0.0 branch * Remove license header from setup.py
This PR is based on the discussion in #87
I've split up the code into multiple files. Additionally I refactored the tests to use pytest instead of unittest.
--
Until #87 is merged, this PR contains a commit with those changes. I will remove it once done.