forked from proyectosdeley/proyectos_de_ley
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bde2a5e
commit e88f9ac
Showing
18 changed files
with
154 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
AniversarioPeru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '1.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Django==1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proyectos_de_ley |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '1.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'], | ||
) |