Browse Source

Requirements serão montados a medida que a migração progredir

revisaoSidenav
Sesostris Vieira 3 years ago
parent
commit
93b63d35a7
  1. 39
      install.sh
  2. 5
      requirements/dev-requirements.txt
  3. 5
      requirements/observacoes.txt
  4. 28
      requirements/requirements.txt
  5. 10
      requirements/test-requirements.txt

39
install.sh

@ -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

5
requirements/dev-requirements.txt

@ -1,5 +0,0 @@
-r test-requirements.txt
django-debug-toolbar==1.2.2
ipdb==0.8
ipython==2.3.1
pygraphviz==1.2

5
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"

28
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
ipython==7.30.1
Django==4.0.1
django-extensions==3.1.5
psycopg2==2.9.3

10
requirements/test-requirements.txt

@ -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
Loading…
Cancel
Save