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

[WIP] Fix location of package prefixes #107

Closed
wants to merge 1 commit into from

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Jul 25, 2016

The current implementation had logic errors -- it did not support paths containing a
'.'.

Support the "root package" and duplicate the logic from distutils, which is
documented and expected.

https://docs.python.org/2/distutils/setupscript.html#listing-whole-packages

Note that this commit starts a new test directory, unit.

@thewtex thewtex added the Type: Bug Something's not working correctly. label Jul 25, 2016
@thewtex
Copy link
Member Author

thewtex commented Jul 25, 2016

Rebased on upstream/master

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@codecov-io
Copy link

codecov-io commented Jul 25, 2016

Current coverage is 67.64% (diff: 80.64%)

Merging #107 into master will decrease coverage by 3.45%

@@             master       #107   diff @@
==========================================
  Files            19         17     -2   
  Lines           488        510    +22   
  Methods           0          0          
  Messages          0          0          
  Branches         88         99    +11   
==========================================
- Hits            347        345     -2   
- Misses          104        125    +21   
- Partials         37         40     +3   

Powered by Codecov. Last update f1ca6e6...c3e0822

@thewtex
Copy link
Member Author

thewtex commented Jul 25, 2016

I will work on improving the coverage...

@jcfr
Copy link
Contributor

jcfr commented Jul 25, 2016

I will work on improving the coverage...

Thanks. That would be nice.

@AppVeyorBot
Copy link

@thewtex thewtex force-pushed the package_prefixes branch 2 times, most recently from 7acd0de to 8397a86 Compare August 8, 2016 20:02
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@@ -194,7 +236,7 @@ def _classify_files(install_paths, package_data, package_prefixes, py_modules,
" Project Root : {}\n"
" Violating File: {}\n").format(install_root, test_path))

# peel off the 'skbuild' prefix
# peel off the 'skbuild' prefix
Copy link
Member

Choose a reason for hiding this comment

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

Should be aligned with code on the next line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

The current implementation had logic errors -- it did not support paths containing a
'.'.

Support the "root package" and duplicate the logic from distutils, which is
documented and expected.

  https://docs.python.org/2/distutils/setupscript.html#listing-whole-packages
@thewtex thewtex changed the title Fix location of package prefixes [WIP] Fix location of package prefixes Aug 11, 2016
@thewtex
Copy link
Member Author

thewtex commented Aug 11, 2016

👎 Please do not merge. Do possibly to a subtle change in setuptools (?), the wheel generated by the test no longer contains the C extension.

Closing because I don't think it is worth putting more effort into this path. Focusing instead on #124

@thewtex thewtex closed this Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something's not working correctly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants