-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from PyAr/dev
new release from "dev"
- Loading branch information
Showing
66 changed files
with
1,379 additions
and
428 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 |
---|---|---|
@@ -1,16 +1,110 @@ | ||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
### PyAR Stuff | ||
*.pyc | ||
*.swp | ||
*.swo | ||
.venv | ||
.vscode/ | ||
db.sqlite3 | ||
waliki_data | ||
waliki_attachments | ||
media | ||
.vagrant | ||
src | ||
pyarweb | ||
celerybeat-schedule | ||
local_settings.py | ||
|
||
|
||
|
||
### PyCharm stuff | ||
.idea/ |
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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ en el botón "Fork" que lo podes encontrar en la parte superior a la derecha. | |
|
||
3. Una vez forkeado el proyecto, te lo clonas. Siempre recordar trabajar | ||
sobre el branch "develop". A continuación un ejemplo: | ||
|
||
``` | ||
[edvm@laptop mixes] $ git clone [email protected]:edvm/pyarweb.git pyar | ||
Cloning into 'pyar'... | ||
remote: Counting objects: 3007, done. | ||
|
@@ -53,7 +53,7 @@ sobre el branch "develop". A continuación un ejemplo: | |
* branch develop -> FETCH_HEAD | ||
Already up-to-date. | ||
[edvm@laptop pyar] (develop) | ||
|
||
``` | ||
|
||
4. Hacer tus modificaciones en el branch "develop" no es la mejor práctica. | ||
Un pull-request en github representa una peticion de merge (de pull = fetch + merge), | ||
|
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 |
---|---|---|
@@ -1,27 +1,20 @@ | ||
FROM ubuntu:14.04 | ||
|
||
FROM python:3.4 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN apt-get -qq update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
python3 \ | ||
ENV PYTHONPATH /code:$PYTHONPATH | ||
# runtime dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
python3-dev \ | ||
gettext \ | ||
libpq-dev \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
libxslt1-dev \ | ||
zlib1g-dev \ | ||
libjpeg-dev \ | ||
libpng12-dev \ | ||
python3-pip \ | ||
libffi-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
|
||
ADD . /code/ | ||
RUN pip3 install -U pip setuptools | ||
RUN pip3 install -r requirements.txt | ||
# update pip (to use wheels) | ||
RUN wget -O - https://bootstrap.pypa.io/get-pip.py | python3 | ||
COPY dev_requirements.txt /code | ||
COPY requirements.txt /code | ||
RUN pip install -r dev_requirements.txt | ||
COPY . /code/ |
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,67 @@ | ||
# Installation Notes | ||
|
||
## Prerequisites | ||
|
||
Make sure you have installed... | ||
|
||
```bash | ||
sudo apt-get install python3-dev libxml2-dev libxslt1-dev zlib1g-dev libffi-dev openssl-dev | ||
``` | ||
|
||
## Create virtualenv | ||
|
||
You should use virtualenv (or [FADES](https://github.com/PyAr/fades)). Currently supports 3.5. | ||
Create a virtualenv named `pyarweb` | ||
|
||
### Pyenv | ||
|
||
```bash | ||
pyvenv3 pyarweb | ||
``` | ||
|
||
### Virtualenvwrapper | ||
|
||
If you don't know how to use `virtualenvwrapper` please check [official documentation](https://virtualenvwrapper.readthedocs.io/en/latest/) | ||
|
||
```bash | ||
mkvirtualenv -p $(which python3) pyarweb | ||
``` | ||
|
||
## Install requirements | ||
|
||
```bash | ||
pip install -r dev_requirements.txt | ||
``` | ||
|
||
## Create PostgresSQL DB | ||
|
||
### with Docker engine | ||
|
||
```bash | ||
docker run --name pyarweb-db -e POSTGRES_DB=pyarweb -p 5432:5432 -d postgres | ||
``` | ||
|
||
### with PostgreSQL | ||
|
||
```bash | ||
su - postgres | ||
createdb pyarweb | ||
``` | ||
|
||
## Initialize DB | ||
|
||
```bash | ||
./manage.py makemigrations # because Waliki presents some bug... | ||
./manage.py migrate | ||
``` | ||
|
||
## Run some test | ||
```bash | ||
./manage.py test | ||
``` | ||
|
||
# Run service | ||
|
||
```bash | ||
./manage.py runserver | ||
``` |
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.