Browse Source

Merge branch '3.1.x' into fix-ordem-dia-turno

pull/3798/head
Michel de Almeida Silva 1 month ago
committed by GitHub
parent
commit
8503d3726d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 25
      .travis.yml
  2. 8
      MANIFEST.in
  3. 3
      README.rst
  4. 4
      release.sh
  5. 65
      setup.py

25
.travis.yml

@ -1,25 +0,0 @@
language: python
python:
- 3.7
services:
- postgresql
install:
- pip install -r requirements/test-requirements.txt
before_script:
- cp sapl/.env_test sapl/.env
- psql -c "CREATE USER sapl WITH PASSWORD 'sapl'" -U postgres;
- psql -c "CREATE DATABASE sapl OWNER sapl;" -U postgres
- ./scripts/django/check_migrations.sh
script:
- ./manage.py migrate
- py.test --create-db
# - ./scripts/django/test_and_check_qa.sh
addons:
hosts:
- 127.0.0.1 sapldb

8
MANIFEST.in

@ -1,8 +0,0 @@
include README.rst LICENSE.txt
include sapl/webpack-stats.json
recursive-include sapl *.html *.yaml
recursive-include sapl/static *
recursive-include sapl/relatorios/templates *.py
recursive-include sapl/compilacao *.sql
global-exclude __pycache__
global-exclude *.py[co]

3
README.rst

@ -1,5 +1,4 @@
.. image:: https://travis-ci.org/interlegis/sapl.svg?branch=3.1.x
:target: https://travis-ci.org/interlegis/sapl
***********************************************

4
release.sh

@ -46,13 +46,11 @@ function change_files {
if [[ "$OSTYPE" == "darwin"* ]]; then
# MacOS (BSD sed)
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py
else
# Linux (GNU sed)
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" docker/docker-compose.yaml
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" setup.py
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html
sed -i -E "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py
fi
@ -93,7 +91,7 @@ prompt_yes_no() {
function commit_and_push {
echo -e "${green_color}Committing new release $FINAL_VERSION...${color_reset}"
git add docker/docker-compose.yaml setup.py sapl/settings.py sapl/templates/base.html
git add docker/docker-compose.yaml sapl/settings.py sapl/templates/base.html
git changelog --tag $FINAL_VERSION --prune-old -x > latest_changes.md
cat latest_changes.md CHANGES.md > CHANGES.tmp
mv CHANGES.tmp CHANGES.md

65
setup.py

@ -1,65 +0,0 @@
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
install_requires = [
'django>=1.11.19,<3.0',
'django-haystack==2.8.1',
'django-filter==2.0.0',
'djangorestframework==3.11.2',
'dj-database-url==0.5.0',
'django-braces==1.9.0',
'django-crispy-forms==1.7.2',
'django-extra-views==0.12.0',
'django-model-utils==3.1.2',
'django-extensions==2.1.4',
'django-image-cropping==1.2.0',
'django-webpack-loader==0.6.0',
'drf-yasg==1.20.0',
'easy-thumbnails==2.5',
'python-decouple==3.1',
'psycopg2-binary==2.7.6.1',
'pyyaml==5.4',
'pytz==2018.9',
'python-magic==0.4.15',
'unipath==1.1',
'WeasyPrint==44',
'gunicorn==22.0.0',
'pysolr==3.6.0',
# 'git+git://github.com/interlegis/trml2pdf.git',
# 'git+git://github.com/interlegis/django-admin-bootstrapped',
]
setup(
name='interlegis-sapl',
version='3.1.164-RC2',
packages=find_packages(),
include_package_data=True,
license='GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007',
description='SAPL - Legislative Process Support System',
long_description=README,
url='https://github.com/interlegis/sapl',
author='interlegis',
author_email='',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', # example license
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=install_requires,
)
Loading…
Cancel
Save