From 93b63d35a79078e222fc7ba752fa9c297cdc2689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 4 Jan 2022 14:47:38 -0300 Subject: [PATCH] =?UTF-8?q?Requirements=20ser=C3=A3o=20montados=20a=20medi?= =?UTF-8?q?da=20que=20a=20migra=C3=A7=C3=A3o=20progredir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 39 ------------------------------ requirements/dev-requirements.txt | 5 ---- requirements/observacoes.txt | 5 ++-- requirements/requirements.txt | 28 +++------------------ requirements/test-requirements.txt | 10 -------- 5 files changed, 7 insertions(+), 80 deletions(-) delete mode 100644 install.sh delete mode 100644 requirements/dev-requirements.txt delete mode 100644 requirements/test-requirements.txt diff --git a/install.sh b/install.sh deleted file mode 100644 index 94e9232..0000000 --- a/install.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -THIS_SHELL=`ps --no-heading -p $$ | awk '{print $4}'` -if [ $THIS_SHELL != 'bash' ] ; then - echo "Você está executando este script com o interpretador '$THIS_SHELL'" - echo "mas ele só funciona com o 'bash'." - echo "Tente executar usando 'bash install.sh'." - exit 1 -fi - -echo "Instalando python-pip, python-dev e python-psycopg2..." -sudo apt-get install -y python-pip python-dev python-virtualenv - -echo "Criando virtualenv..." -virtualenv ./env/ - -echo "Instalando pacotes python requeridos pelo SIGI..." -pip install --environment=./env/ -r requirements.txt - -echo "Ativando o virtualenv..." -source ./env/bin/activate - -echo "Isolando arquivos temporários..." -mkdir tmp - -echo "Instalando geraldo reports..." -git clone git@github.com:marinho/geraldo.git -cd geraldo -python setup.py install -cp -Rfv reporting geraldo `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` -cd .. - -echo "Excluindo arquivos temporários..." -cd .. -rm -Rf tmp - -echo "Criando e populando o banco de dados..." -pwd -python manage.py syncdb diff --git a/requirements/dev-requirements.txt b/requirements/dev-requirements.txt deleted file mode 100644 index 547f372..0000000 --- a/requirements/dev-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ --r test-requirements.txt -django-debug-toolbar==1.2.2 -ipdb==0.8 -ipython==2.3.1 -pygraphviz==1.2 diff --git a/requirements/observacoes.txt b/requirements/observacoes.txt index 3a6bc0b..554d077 100644 --- a/requirements/observacoes.txt +++ b/requirements/observacoes.txt @@ -1,7 +1,8 @@ Observações sobre as dependências: +================================== + +As novas dependências serão montadas conforme a migração progredir. -Produção: - * Geraldo: Eh importante usar "-e" pois precisamos do modulo reporting do fonte que nao eh instalado Desevenvolvimento: * pygraphviz: para usar o comando "graph_models" do "django-extensions" diff --git a/requirements/requirements.txt b/requirements/requirements.txt index ab6351f..ae2ca5a 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,24 +1,4 @@ --e git://github.com/marinho/geraldo.git@868ebdce67176d9b6205cddc92476f642c783fff#egg=geraldo -django-bootstrap3==6.2.2 -django-admin-bootstrapped==2.4.0 -django-auth-ldap==1.2.7 -django-autoslug==1.9.3 -django-extensions==1.5.7 -django-image-cropping==1.0.2 -django-localflavor==1.1 -Django==1.7.10 -easy-thumbnails==2.2 -eav-django==1.4.7 -gunicorn==19.3.0 -html5lib==0.9999999 -Pillow==2.9.0 -pisa==3.0.33 -psycopg2==2.6.1 -python-memcached==1.53 -PyYAML==3.11 -reportlab==2.7 -requests==2.8.1 -six==1.10.0 -djangorestframework==2.4.8 -django-ipware==1.1.6 -django-tinymce==2.6.0 \ No newline at end of file +ipython==7.30.1 +Django==4.0.1 +django-extensions==3.1.5 +psycopg2==2.9.3 diff --git a/requirements/test-requirements.txt b/requirements/test-requirements.txt deleted file mode 100644 index 6a2cb2f..0000000 --- a/requirements/test-requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ --r requirements.txt -coverage==3.7.1 -django-dynamic-fixture==1.8.1 -django-webtest==1.7.7 -pyPdf==1.13 -pyquery==1.2.9 -pytest-cov==1.8.1 -pytest-django==2.8.0 -pytest==2.6.4 -WebTest==2.0.17