Add poetry on sync script and add correct fablib dependency
authorymh <ymh.work@gmail.com>
Thu, 09 Jan 2020 16:27:35 +0100
changeset 377 25304f0b98cc
parent 376 2ad94c31d330
child 378 fb9c4686a903
Add poetry on sync script and add correct fablib dependency
.hgignore
.hgsub
.hgsubstate
sbin/sync/.envrc
sbin/sync/poetry.toml
sbin/sync/pyproject.toml
--- a/.hgignore	Wed Mar 21 16:54:12 2018 +0100
+++ b/.hgignore	Thu Jan 09 16:27:35 2020 +0100
@@ -6,6 +6,8 @@
 ^web/
 syntax: regexp
 ^sbin/sync/config\.py$
+^sbin/sync/config\.py\.old$
+^sbin/sync/.venv
 ^virtualenv/web/project-boot\.py$
 ^src/jocondelab/modwsgi\.wsgi$
 ^.git.*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgsub	Thu Jan 09 16:27:35 2020 +0100
@@ -0,0 +1,1 @@
+sbin/sync/fablib = https://www.iri.centrepompidou.fr/dev/hg/fablib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgsubstate	Thu Jan 09 16:27:35 2020 +0100
@@ -0,0 +1,1 @@
+2b492e3056c186904b6a995c1c0cdeb786579039 sbin/sync/fablib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/.envrc	Thu Jan 09 16:27:35 2020 +0100
@@ -0,0 +1,3 @@
+layout poetry
+export POETRY_VIRTUALENVS_IN_PROJECT=true
+export PYTHONPATH=./fablib/src
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/poetry.toml	Thu Jan 09 16:27:35 2020 +0100
@@ -0,0 +1,2 @@
+[virtualenvs]
+in-project = true
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/pyproject.toml	Thu Jan 09 16:27:35 2020 +0100
@@ -0,0 +1,13 @@
+[tool.poetry]
+name = "sync_jocondelab"
+version = "0.1.0"
+description = ""
+authors = ["Your Name <you@example.com>"]
+
+[tool.poetry.dependencies]
+python = "^2.7"
+fabric = ">=1.10.1, <2.0"
+
+[build-system]
+requires = ["poetry>=0.12"]
+build-backend = "poetry.masonry.api"