Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aniversarioperu committed Sep 15, 2014
1 parent bde2a5e commit e88f9ac
Show file tree
Hide file tree
Showing 18 changed files with 154 additions and 43 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AniversarioPeru
12 changes: 12 additions & 0 deletions LICENSE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Copyright (c) 2014, Hiperderecho
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of proyectos_de_ley nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 changes: 0 additions & 43 deletions README.md

This file was deleted.

51 changes: 51 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
|Build Status| |Cover alls|


Proyectos de Ley del Congreso
=============================


Configuración
-------------

The steps below will get you up and running with a local development environment. We assume you have the following installed:

* pip
* virtualenv
* python v3
* django v1.7

Crear y un activar un virtualenv_ que use Python3. En un terminal, instalar
las dependencias para desarrollo local::

$ pip install -r requirements/dev.txt

.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Para correr el software, reemplazar ``yourapp`` con el nombre
del folder que contiene el proyecto de Django::

$ python yourapp/manage.py runserver --settings=yourapp.settings.local


Ejecutar el scrapper
--------------------
* El comando ``python manage.py scrape`` se encarga de cosechar la
información del servidor del congreso y almacernarla en una base de datos
local.
* Toda la información cosechada se almancena en una base de datos SQLite3.
Django se encarga de servir las páginas y motor de búsqueda.

Plantilla HTML
--------------
* El archivo ``base.html`` funciona como plantilla para crear las páginas HTML.
Cualquier cambio al estilo se debe realizar en este archivo. Esta plantilla
usa un estilo basado en Twitter Bootstrap con *responsive features* para que
se vea bien en computadoras y dispositivos móbiles.
* Esos campos se usan para introducir en contenido en la plantilla y generar
los archivos HTML.

.. |Build Status| image:: https://travis-ci.org/aniversarioperu/proyectos_de_ley.svg?branch=master
:target: https://travis-ci.org/aniversarioperu/proyectos_de_ley
.. |Coverage Status| image:: https://coveralls.io/repos/aniversarioperu/proyectos_de_ley/badge.png
:target: https://coveralls.io/r/aniversarioperu/proyectos_de_ley
1 change: 1 addition & 0 deletions build/lib/proyectos_de_ley/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
13 changes: 13 additions & 0 deletions build/lib/proyectos_de_ley/manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"proyectos_de_ley.settings",
)

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
13 changes: 13 additions & 0 deletions build/scripts-3.3/manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/home/carlosp420/.virtualenvs/proyectosdeley/bin/python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"proyectos_de_ley.settings",
)

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
Binary file added dist/proyectos_de_ley-1.0.0-py3.3.egg
Binary file not shown.
10 changes: 10 additions & 0 deletions proyectos_de_ley.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Metadata-Version: 1.0
Name: proyectos-de-ley
Version: 1.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: Aniversario Peru
Author-email: [email protected]
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
11 changes: 11 additions & 0 deletions proyectos_de_ley.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
README.rst
setup.cfg
setup.py
proyectos_de_ley/__init__.py
proyectos_de_ley/manage.py
proyectos_de_ley.egg-info/PKG-INFO
proyectos_de_ley.egg-info/SOURCES.txt
proyectos_de_ley.egg-info/dependency_links.txt
proyectos_de_ley.egg-info/not-zip-safe
proyectos_de_ley.egg-info/requires.txt
proyectos_de_ley.egg-info/top_level.txt
1 change: 1 addition & 0 deletions proyectos_de_ley.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions proyectos_de_ley.egg-info/not-zip-safe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions proyectos_de_ley.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django==1.7.0
1 change: 1 addition & 0 deletions proyectos_de_ley.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proyectos_de_ley
1 change: 1 addition & 0 deletions proyectos_de_ley/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is here because many Platforms as a Service look for
# requirements.txt in the root directory of a project.
-r requirements/dev.txt
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
#ignore = E265
max-line-length = 79
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs
30 changes: 30 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python

import os
import sys


try:
from setuptools import setup
except ImportError:
from distutils.core import setup

import proyectos_de_ley
version = proyectos_de_ley.__version__

setup(
name='proyectos_de_ley',
version=version,
author='Aniversario Peru',
author_email='[email protected]',
packages=[
'proyectos_de_ley',
],
include_package_data=True,
install_requires=[
'Django==1.7.0',
],
zip_safe=False,
scripts=['proyectos_de_ley/manage.py'],
)

0 comments on commit e88f9ac

Please sign in to comment.