Add poetry on sync script and add correct fablib dependency default tip
authorymh <ymh.work@gmail.com>
Thu, 09 Jan 2020 13:37:23 +0100
changeset 298 c40c501bca19
parent 297 93d23ea70ced
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	Mon May 11 13:17:20 2015 +0200
+++ b/.hgignore	Thu Jan 09 13:37:23 2020 +0100
@@ -13,4 +13,5 @@
 ^src/log\.txt$
 ^run/log/
 ^log$
-^sbin/sync/config\.py$
\ No newline at end of file
+^sbin/sync/config\.py$
+^sbin/sync/.venv
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgsub	Thu Jan 09 13:37:23 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 13:37:23 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 13:37:23 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 13:37:23 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 13:37:23 2020 +0100
@@ -0,0 +1,13 @@
+[tool.poetry]
+name = "sync_ammico"
+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"