Look for ini file to spot python project root (#755)

* Look for ini file to spot project root

When looking for the project root folder it would be better
to check for some well-known init file instead of __init__.py.
Indeed, with python3 it is now possible to have namespace modules
where intermediate dirs are not required to include the __init__.py file.

* Break if statement conditions over several lines

* Add blank lines for the if block

* Add test for FindProjectRoot

* Typo: missing / for MANIFEST.in

* Fix test for non-namespace package

* Add more test cases
This commit is contained in:
Matteo Centenaro authored and w0rp committed 2017-07-11 21:57:37 +01:00
1 parent 768f761017
commit 505d114a68
14 files changed
+65

No files matched your search

@@ -0,0 +1,2 @@
[pytest]
DJANGO_SETTINGS_MODULE=foo.settings