summaryrefslogtreecommitdiff
path: root/test/command_callback/python_paths
diff options
context:
space:
mode:
authorMatteo Centenaro <bugant@gmail.com>2017-07-11 22:57:37 +0200
committerw0rp <w0rp@users.noreply.github.com>2017-07-11 21:57:37 +0100
commit505d114a68f18cd018e2f92a47b024370bd7dde3 (patch)
tree1f9b9496d5efe08efcc6db6b82ff19f2d5d3374d /test/command_callback/python_paths
parent768f761017e4d67d8724684df874006d5b04147d (diff)
downloadale-505d114a68f18cd018e2f92a47b024370bd7dde3.zip
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
Diffstat (limited to 'test/command_callback/python_paths')
-rw-r--r--test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in3
-rw-r--r--test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_pytest/pytest.ini2
-rw-r--r--test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_setup/setup.cfg2
-rw-r--r--test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py0
-rw-r--r--test/command_callback/python_paths/namespace_package_tox/tox.ini3
12 files changed, 10 insertions, 0 deletions
diff --git a/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in b/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in
new file mode 100644
index 00000000..4617b0eb
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in
@@ -0,0 +1,3 @@
+include README.md
+include *.ini *.cfg *.txt
+include requirements/*.txt
diff --git a/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py
diff --git a/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py
diff --git a/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py
diff --git a/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py
diff --git a/test/command_callback/python_paths/namespace_package_pytest/pytest.ini b/test/command_callback/python_paths/namespace_package_pytest/pytest.ini
new file mode 100644
index 00000000..1433c6c6
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_pytest/pytest.ini
@@ -0,0 +1,2 @@
+[pytest]
+DJANGO_SETTINGS_MODULE=foo.settings
diff --git a/test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py
diff --git a/test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py
diff --git a/test/command_callback/python_paths/namespace_package_setup/setup.cfg b/test/command_callback/python_paths/namespace_package_setup/setup.cfg
new file mode 100644
index 00000000..791f075d
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_setup/setup.cfg
@@ -0,0 +1,2 @@
+[flake8]
+max-line-length = 119
diff --git a/test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py
diff --git a/test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py
diff --git a/test/command_callback/python_paths/namespace_package_tox/tox.ini b/test/command_callback/python_paths/namespace_package_tox/tox.ini
new file mode 100644
index 00000000..edd8788c
--- /dev/null
+++ b/test/command_callback/python_paths/namespace_package_tox/tox.ini
@@ -0,0 +1,3 @@
+[tox]
+envlist =
+ py352