rules_pip: update to new version
rules_pip has a new version [1] of their rule system, incompatible with the
version we used, that fixes a bunch of issues, notably:
- explicit tagging of repositories for PY2/PY3/PY23 support
- removal of dependency on host pip (in exchange for having to vendor
wheels)
- higher quality tooling for locking
We update to the newer version of pip_rules, rename the external
repository to pydeps and move requirements.txt, the lockfile and the
newly vendored wheels to third_party/, where they belong.
[1] - https://github.com/apt-itude/rules_pip/issues/16
Change-Id: I1065ee2fc410e52fca2be89fcbdd4cc5a4755d55
diff --git a/personal/q3k/BUILD b/personal/q3k/BUILD
index 44988b4..99e661d 100644
--- a/personal/q3k/BUILD
+++ b/personal/q3k/BUILD
@@ -2,6 +2,6 @@
name = "django-admin",
srcs = ["django-admin.py"],
deps = [
- "@pip36//django",
+ "@pydeps36//django",
]
)
diff --git a/personal/q3k/djtest/BUILD b/personal/q3k/djtest/BUILD
index 155b171..b3a2cad 100644
--- a/personal/q3k/djtest/BUILD
+++ b/personal/q3k/djtest/BUILD
@@ -2,7 +2,7 @@
name = "app",
srcs = glob(["djtest/**/*.py"]),
deps = [
- "@pip36//django",
+ "@pydeps//django",
],
)
@@ -22,6 +22,6 @@
"@bazel_tools//tools/python/runfiles",
],
data = [
- '@pip36//uwsgi/scripts:uwsgi',
+ '@pip__uWSGI_2_0_18_cp36_cp36m_linux_x86_64//scripts:uwsgi',
],
)
diff --git a/personal/q3k/djtest/uwsgi-start.py b/personal/q3k/djtest/uwsgi-start.py
index 7597a6f..0edcdaf 100644
--- a/personal/q3k/djtest/uwsgi-start.py
+++ b/personal/q3k/djtest/uwsgi-start.py
@@ -9,8 +9,10 @@
from bazel_tools.tools.python.runfiles import runfiles
r = runfiles.Create()
-uwsgi = r.Rlocation("pip36/uwsgi/scripts/uwsgi")
-settings = r.Rlocation("__main__/personal/q3k/djtest/djtest/settings.py")
+uwsgi = r.Rlocation("pip__uWSGI_2_0_18_cp36_cp36m_linux_x86_64/scripts/uwsgi")
+print(uwsgi)
+settings = r.Rlocation("hscloud/personal/q3k/djtest/djtest/settings.py")
+print(settings)
apppath = os.path.dirname(settings)
sitepath = os.path.dirname(apppath)