-
Notifications
You must be signed in to change notification settings - Fork 8
Poetry
https://docs.saleor.io/docs/next/advanced/managing-dependencies/#poetry
https://poetry.eustace.io/docs/cli/
#!/bin/bash
# Package
APP="gevent gunicorn"
DEV="gittle"
# Set git branch
git checkout -b compose
git remote set-url origin $ORIGIN
echo -e "\n$hr\nPIP\n$hr"
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install --user pipenv
# Switch to poetry #3894
echo -e "\n$hr\nPOETRY\n$hr"
export PATH=$HOME/.poetry/bin:$PATH
pip install --pre poetry
echo -e "\n$hr\nCONFIG\n$hr"
#sed -i 's/\.</,</g' pyproject.toml && sed -i 's/\.>/,>/g' pyproject.toml
cat pyproject.toml
echo -e "\n$hr\nDEFAULT\n$hr"
source $LIST_FILES; trap 'trap_abort' 0; set -e
poetry install
echo -e "\n$hr\nINSTALL: $APP\n$hr"
poetry add $APP --optional
echo -e "\n$hr\nINSTALL: $DEV\n$hr"
poetry add $DEV --dev
echo -e "\n$hr\nCHECK\n$hr"
poetry check
poetry lock
echo -e "\n$hr\nSHOW\n$hr"
poetry show -v
echo -e "$hr\nLOCAL BIN\n$hr"
echo $HOME/.local/bin
ls -al $HOME/.local/bin
echo -e "\n$hr\nTRANSIFEX\n$hr"
echo "${TRANSIFEXRC}" | tr ',' '\n' > $HOME/.transifexrc
poetry run tx pull -l id
echo -e "\n$hr\nREQUIREMENT.TXT\n$hr"
poetry export -f requirements.txt -o requirements.txt
cat requirements.txt
echo -e "\n$hr\nREQUIREMENT_DEV.TXT\n$hr"
poetry export -f requirements.txt -o requirements_dev.txt --dev
cat requirements_dev.txt
echo -e "\n$hr\nCURRENT REPOSITORY\n$hr"
pwd && ls -al .
if grep -Fqe "error" << EOF
`poetry check`
EOF
then
trap : 0
else
# push the branch
git_push
fi
This documentation is mapped under Mapping and licensed under Apache License, Version 2.0.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2018-2020 Chetabahana Project
You are on the wiki of our repo
- Site
- Main
- Project
- Pratinjau
- Pola Dasar
- Bagan Kerja
- Field Tutorial
- Cloud Site API
- Google Ads API
- Cloud Tasks API
- Google Trends API
- Basis Implementasi
- Beranda
- Perangkat
- Pasang Aplikasi
- Penyetelan Aplikasi
- Menyiapkan Frontend
- Menjalankan Backend API
- Menjalankan Toko