Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Jul 31, 2015
1 parent 32f6d02 commit b88454f
Show file tree
Hide file tree
Showing 67 changed files with 1,193 additions and 1,111 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
*.pyc
__pycache__/
.tox
.cache
31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
root = true

[*]
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# Python files
[*.py]
indent_size = 4
# isort plugin configuration
multi_line_output = 2
default_section = THIRDPARTY

# RST files (used by sphinx)
[*.rst]
indent_size = 4

# CSS, HTML, JS, JSON, YML
[*.{css,html,js,json,yml}]
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_size = 2

# Dockerfile
[Dockerfile]
indent_size = 4
29 changes: 18 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ __pycache__/
*.so

# Distribution / packaging
bin/
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
Expand All @@ -20,31 +23,35 @@ var/
.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

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject
*.pot

# Django stuff:
*.log
*.pot

# Sphinx documentation
docs/_build/
docs/_build/

# PyBuilder
target/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

36 changes: 27 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,53 @@
# -*- coding: utf-8 -*-
#
# This file is part of Flask-AppFactory
# Copyright (C) 2015 CERN.
#
# Flask-AppFactory is free software; you can redistribute it and/or
# modify it under the terms of the Revised BSD License; see LICENSE
# file for more details.


# Travis CI file, that integrates with coveralls for reporting test coverage.
sudo: false

language: python

python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"

env:
- REQUIREMENTS=devel
- REQUIREMENTS=latest
- REQUIREMENTS=lowest

cache:
- pip

install:
- pip install --upgrade pip --use-mirrors
- pip install pep257 coveralls --use-mirrors
- pip install .[docs]
# Install test dependencies
- "travis_retry pip install coveralls pep257 Sphinx"
- "travis_retry pip install pytest pytest-pep8 pytest-cov pytest-cache"
- "travis_retry pip install -r requirements.${REQUIREMENTS}.txt"
- "travis_retry pip install -e ."

script:
- pep257 flask_appfactory
- "sphinx-build -qnNW docs docs/_build/html"
- coverage run --source=flask_appfactory setup.py test
- python setup.py test
- "sphinx-build -qnNW -b doctest docs docs/_build/doctest"

after_success:
- coveralls

notifications:
email: false

deploy:
provider: pypi
user: lnielsen
password:
secure: cKcrzBcAPn5pQqhJAX+ct5L7dNDL3Y4NKt+KksWfag5YN2SCTkAEcm0JvKxP4pURG0AOXqqWjY1ydvj7XkafEOWq4lKjtJy/Eb1ZY8dO5RJOQ1fjICvtVxcW/6qQKz5TESd6CafXis0E3kmqrRAHWnFZATEhA0KnnvoCoGByZUOn9gg527dA8tv4MatY9xYQGOuryKWq/KKgD92Z9EhwwzB+26naXlpI6GQiMoxJA5br4Idc9Y5uHbJVGSxTWkQYbXo8GmYatwGmswPfJXZqJt37K8yLdYTCZku7FQ/mBNrj1OQutQh40MX72Zd3o5GEHswFLKvRcPjX4jA6kjBcGKC/Lxn2oDCKA8HhLpCUwQlhuZpXvp2Ghq8df7ZIZvsuO/KOVAske7e0L0uGcs244jY00uTFtK9X/Xtj72tBD4On/GeWXOgRW6tlwo6NsJOdR1HjiR6F3xX62IUJBXGE5obmbNTF+XciWTiY1aTKlSSRbu+M0q6jD+1DFl0ttuvdh9zMctdDkCJMqncEU5z9sDX6U08iahdHF70eCL6dRvl5aD6flbVMVOXt7z3WZPqWzLDIOCuy1JjgMyO2l++AB4lhSCdxEaOjGlLIyIBLfLnsDMtqrKavNszq4h01qlh3tiQNW9KXxXuxCTx4lr5YdQ/y6P5mhSoQBNfpZpVuRr4=
distributions: "sdist bdist_wheel"
on:
tags: true
python: "2.7"
condition: $REQUIREMENTS = latest
8 changes: 2 additions & 6 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Authors
-------

Flask-AppFactory is developed for use in `Invenio <http://invenio-software.org>`_ digital library software.
=======

Contact us at `info@invenio-software.org <mailto:info@invenio-software.org>`_

Contributors
^^^^^^^^^^^^
* YourName <your.name@cern.ch> - CHANGEME
* Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
11 changes: 4 additions & 7 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
Changelog
=========
Changes
=======

Here you can see the full list of changes between each Flask-AppFactory
release.
Version 0.1.0 (released 2015-07-31)

Version 0.1
-----------
- Initial public release
- Initial public release.
26 changes: 26 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Contributing
============

Bug reports, feature requests, and other contributions are welcome.
If you find a demonstrable problem that is caused by the code of this
library, please:

1. Search for `already reported problems
<https://github.com/inveniosoftware/flask-appfactory/issues>`_.
2. Check if the issue has been fixed or is still reproducible on the
latest `master` branch.
3. Create an issue with **a test case**.

If you create a feature branch, you can run the tests to ensure everything is
operating correctly:

.. code-block:: console
$ ./run-tests.sh
You can also test your feature branch using Docker:

.. code-block:: console
$ docker-compose build
$ docker-compose run --rm web /code/run-tests.sh
Loading

0 comments on commit b88454f

Please sign in to comment.