Skip to content

Commit

Permalink
global: release checklist
Browse files Browse the repository at this point in the history
* FIX Adds changes according to release preparation checklist.

Signed-off-by: Paulina Lach <[email protected]>
  • Loading branch information
PaulinaLach committed Jan 30, 2017
1 parent 4912b25 commit ac2155c
Show file tree
Hide file tree
Showing 24 changed files with 280 additions and 151 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.git
*.gitignore

*.mo
*.pyc
*.swp
*.swo
*.~

.dockerignore
Dockerfile
docker-compose.yml
docker-compose-dev.yml

Procfile*
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ indent_size = 4
known_first_party = invenio_logging
multi_line_output = 2
default_section = THIRDPARTY
skip = .eggs

# RST files (used by sphinx)
[*.rst]
Expand Down
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
__pycache__/
*.py[cod]

# Idea software family
.idea/

# C extensions
*.so

Expand Down Expand Up @@ -56,5 +59,6 @@ docs/_build/
# PyBuilder
target/

#idea (BB)
.idea/
# Vim swapfiles
.*.sw?

1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ python:
matrix:
allow_failures:
- python: pypy
fast_finish: true

before_install:
- "travis_retry pip install --upgrade pip setuptools py"
Expand Down
50 changes: 0 additions & 50 deletions .tx/config

This file was deleted.

11 changes: 8 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ If you are proposing a feature:
Get Started!
------------

Ready to contribute? Here's how to set up `invenio` for local development.
Ready to contribute? Here's how to set up `invenio-logging` for local development.

1. Fork the `invenio` repo on GitHub.
1. Fork the `inveniosoftware/invenio-logging` repo on GitHub.
2. Clone your fork locally:

.. code-block:: console
Expand Down Expand Up @@ -95,7 +95,12 @@ Ready to contribute? Here's how to set up `invenio` for local development.
.. code-block:: console
$ git add .
$ git commit -s -m "Your detailed description of your changes."
$ git commit -s
-m "component: title without verbs"
-m "* NEW Adds your new feature."
-m "* FIX Fixes an existing issue."
-m "* BETTER Improves and existing feature."
-m "* Changes something that should not be visible in release notes."
$ git push origin name-of-your-bugfix-or-feature
7. Submit a pull request through the GitHub website.
Expand Down
6 changes: 6 additions & 0 deletions INSTALL.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
Installation
============

Invenio-Logging is on PyPI so all you need is:

.. code-block:: console
$ pip install invenio-logging
6 changes: 3 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ include *.sh
include *.txt
include .dockerignore
include .editorconfig
include .tx/config
include babel.ini
include docs/requirements.txt
include .lgtm
include LICENSE
include MAINTAINERS
include docs/requirements.txt
include pytest.ini
prune docs/_build
recursive-include docs *.bat
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile
recursive-include examples *.py
recursive-include examples *.sh
recursive-include invenio_logging *.html
recursive-include misc *.py
recursive-include misc *.rst
Expand Down
8 changes: 4 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/cookiecutterproject_name.qhcp"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Invenio-Logging.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/cookiecutterproject_name.qhc"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Invenio-Logging.qhc"

applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
Expand All @@ -104,8 +104,8 @@ devhelp:
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/cookiecutterproject_name"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/cookiecutterproject_name"
@echo "# mkdir -p $$HOME/.local/share/devhelp/Invenio-Logging"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Invenio-Logging"
@echo "# devhelp"

epub:
Expand Down
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.

"""Sphinx configuration."""

from __future__ import print_function

import os
import sys

import sphinx.environment

# Plug example application into module path
sys.path.append('examples')

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down
29 changes: 29 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
..
This file is part of Invenio.
Copyright (C) 2015 CERN.
Invenio is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.

Invenio is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with Invenio; if not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307, USA.

In applying this license, CERN does not
waive the privileges and immunities granted to it by virtue of its status
as an Intergovernmental Organization or submit itself to any jurisdiction.


Configuration
=============

.. automodule:: invenio_logging.config
:members:
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Invenio-Logging.
:maxdepth: 2

installation
configuration
usage


Expand Down
4 changes: 2 additions & 2 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ if "%1" == "qthelp" (
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\cookiecutterproject_name.qhcp
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Invenio-Logging.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\cookiecutterproject_name.ghc
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Invenio-Logging.ghc
goto end
)

Expand Down
14 changes: 14 additions & 0 deletions examples/app-fixtures.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

# quit on errors:
set -o errexit

# quit on unbound symbols:
set -o nounset

DIR=`dirname "$0"`

cd $DIR
export FLASK_APP=app.py

# Setup fixtures
15 changes: 15 additions & 0 deletions examples/app-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# quit on errors:
set -o errexit

# quit on unbound symbols:
set -o nounset

DIR=`dirname "$0"`

cd $DIR
export FLASK_APP=app.py

# Setup app
mkdir -p $DIR/instance
15 changes: 15 additions & 0 deletions examples/app-teardown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# quit on errors:
set -o errexit

# quit on unbound symbols:
set -o nounset

DIR=`dirname "$0"`

cd $DIR
export FLASK_APP=app.py

# Teardown app
[ -e "$DIR/instance" ] && rm -Rf $DIR/instance
27 changes: 18 additions & 9 deletions examples/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,36 @@
# as an Intergovernmental Organization or submit itself to any jurisdiction.


"""Minimal Flask application example for development.
"""Minimal Flask application example.
Install requirements:
First install Invenio-Logging, setup the application and load
fixture data by running:
.. code-block:: console
$ pip install -e .[all]
$ cd examples
$ pip install -e .[all]
$ cd examples
$ ./app-setup.sh
$ ./app-fixtures.sh
Run example development server:
Next, start the development server:
.. code-block:: console
$ FLASK_APP=app.py flask run --debugger -p 5000
$ export FLASK_APP=app.py FLASK_DEBUG=1
$ flask run
Test the demo:
and open the example application in your browser:
.. code-block:: console
curl -v -XGET 'http://localhost:5000/'
$ open http://127.0.0.1:5000/
To reset the example application run:
.. code-block:: console
$ ./app-teardown.sh
"""

from __future__ import absolute_import, print_function
Expand All @@ -61,4 +70,4 @@
def index():
"""Log error."""
app.logger.error('Example error')
return 'Hello world!'
return 'Welcome to Invenio-Logging!'
Loading

0 comments on commit ac2155c

Please sign in to comment.