Skip to content

Commit ac2155c

Browse files
author
PaulinaLach
committed
global: release checklist
* FIX Adds changes according to release preparation checklist. Signed-off-by: Paulina Lach <[email protected]>
1 parent 4912b25 commit ac2155c

24 files changed

+280
-151
lines changed

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.git
2+
*.gitignore
3+
4+
*.mo
5+
*.pyc
6+
*.swp
7+
*.swo
8+
*.~
9+
10+
.dockerignore
11+
Dockerfile
12+
docker-compose.yml
13+
docker-compose-dev.yml
14+
15+
Procfile*

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ indent_size = 4
3939
known_first_party = invenio_logging
4040
multi_line_output = 2
4141
default_section = THIRDPARTY
42+
skip = .eggs
4243

4344
# RST files (used by sphinx)
4445
[*.rst]

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
__pycache__/
33
*.py[cod]
44

5+
# Idea software family
6+
.idea/
7+
58
# C extensions
69
*.so
710

@@ -56,5 +59,6 @@ docs/_build/
5659
# PyBuilder
5760
target/
5861

59-
#idea (BB)
60-
.idea/
62+
# Vim swapfiles
63+
.*.sw?
64+

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ python:
4646
matrix:
4747
allow_failures:
4848
- python: pypy
49+
fast_finish: true
4950

5051
before_install:
5152
- "travis_retry pip install --upgrade pip setuptools py"

.tx/config

Lines changed: 0 additions & 50 deletions
This file was deleted.

CONTRIBUTING.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ If you are proposing a feature:
5353
Get Started!
5454
------------
5555

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

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

6161
.. code-block:: console
@@ -95,7 +95,12 @@ Ready to contribute? Here's how to set up `invenio` for local development.
9595
.. code-block:: console
9696
9797
$ git add .
98-
$ git commit -s -m "Your detailed description of your changes."
98+
$ git commit -s
99+
-m "component: title without verbs"
100+
-m "* NEW Adds your new feature."
101+
-m "* FIX Fixes an existing issue."
102+
-m "* BETTER Improves and existing feature."
103+
-m "* Changes something that should not be visible in release notes."
99104
$ git push origin name-of-your-bugfix-or-feature
100105
101106
7. Submit a pull request through the GitHub website.

INSTALL.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
Installation
22
============
3+
4+
Invenio-Logging is on PyPI so all you need is:
5+
6+
.. code-block:: console
7+
8+
$ pip install invenio-logging

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ include *.sh
2828
include *.txt
2929
include .dockerignore
3030
include .editorconfig
31-
include .tx/config
32-
include babel.ini
33-
include docs/requirements.txt
3431
include .lgtm
3532
include LICENSE
3633
include MAINTAINERS
34+
include docs/requirements.txt
3735
include pytest.ini
36+
prune docs/_build
3837
recursive-include docs *.bat
3938
recursive-include docs *.py
4039
recursive-include docs *.rst
4140
recursive-include docs Makefile
4241
recursive-include examples *.py
42+
recursive-include examples *.sh
4343
recursive-include invenio_logging *.html
4444
recursive-include misc *.py
4545
recursive-include misc *.rst

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ qthelp:
8787
@echo
8888
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
8989
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
90-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/cookiecutterproject_name.qhcp"
90+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Invenio-Logging.qhcp"
9191
@echo "To view the help file:"
92-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/cookiecutterproject_name.qhc"
92+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Invenio-Logging.qhc"
9393

9494
applehelp:
9595
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@@ -104,8 +104,8 @@ devhelp:
104104
@echo
105105
@echo "Build finished."
106106
@echo "To view the help file:"
107-
@echo "# mkdir -p $$HOME/.local/share/devhelp/cookiecutterproject_name"
108-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/cookiecutterproject_name"
107+
@echo "# mkdir -p $$HOME/.local/share/devhelp/Invenio-Logging"
108+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Invenio-Logging"
109109
@echo "# devhelp"
110110

111111
epub:

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@
2222
# waive the privileges and immunities granted to it by virtue of its status
2323
# as an Intergovernmental Organization or submit itself to any jurisdiction.
2424

25+
"""Sphinx configuration."""
26+
2527
from __future__ import print_function
2628

2729
import os
30+
import sys
2831

2932
import sphinx.environment
3033

34+
# Plug example application into module path
35+
sys.path.append('examples')
36+
3137
# -- General configuration ------------------------------------------------
3238

3339
# If your documentation needs a minimal Sphinx version, state it here.

docs/configuration.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
..
2+
This file is part of Invenio.
3+
Copyright (C) 2015 CERN.
4+
5+
Invenio is free software; you can redistribute it
6+
and/or modify it under the terms of the GNU General Public License as
7+
published by the Free Software Foundation; either version 2 of the
8+
License, or (at your option) any later version.
9+
10+
Invenio is distributed in the hope that it will be
11+
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with Invenio; if not, write to the
17+
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18+
MA 02111-1307, USA.
19+
20+
In applying this license, CERN does not
21+
waive the privileges and immunities granted to it by virtue of its status
22+
as an Intergovernmental Organization or submit itself to any jurisdiction.
23+
24+
25+
Configuration
26+
=============
27+
28+
.. automodule:: invenio_logging.config
29+
:members:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Invenio-Logging.
3434
:maxdepth: 2
3535

3636
installation
37+
configuration
3738
usage
3839

3940

docs/make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ if "%1" == "qthelp" (
127127
echo.
128128
echo.Build finished; now you can run "qcollectiongenerator" with the ^
129129
.qhcp project file in %BUILDDIR%/qthelp, like this:
130-
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\cookiecutterproject_name.qhcp
130+
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Invenio-Logging.qhcp
131131
echo.To view the help file:
132-
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\cookiecutterproject_name.ghc
132+
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Invenio-Logging.ghc
133133
goto end
134134
)
135135

examples/app-fixtures.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# quit on errors:
4+
set -o errexit
5+
6+
# quit on unbound symbols:
7+
set -o nounset
8+
9+
DIR=`dirname "$0"`
10+
11+
cd $DIR
12+
export FLASK_APP=app.py
13+
14+
# Setup fixtures

examples/app-setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
# quit on errors:
4+
set -o errexit
5+
6+
# quit on unbound symbols:
7+
set -o nounset
8+
9+
DIR=`dirname "$0"`
10+
11+
cd $DIR
12+
export FLASK_APP=app.py
13+
14+
# Setup app
15+
mkdir -p $DIR/instance

examples/app-teardown.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
# quit on errors:
4+
set -o errexit
5+
6+
# quit on unbound symbols:
7+
set -o nounset
8+
9+
DIR=`dirname "$0"`
10+
11+
cd $DIR
12+
export FLASK_APP=app.py
13+
14+
# Teardown app
15+
[ -e "$DIR/instance" ] && rm -Rf $DIR/instance

examples/app.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,36 @@
2323
# as an Intergovernmental Organization or submit itself to any jurisdiction.
2424

2525

26-
"""Minimal Flask application example for development.
26+
"""Minimal Flask application example.
2727
28-
Install requirements:
28+
First install Invenio-Logging, setup the application and load
29+
fixture data by running:
2930
3031
.. code-block:: console
3132
32-
$ pip install -e .[all]
33-
$ cd examples
33+
$ pip install -e .[all]
34+
$ cd examples
35+
$ ./app-setup.sh
36+
$ ./app-fixtures.sh
3437
35-
Run example development server:
38+
Next, start the development server:
3639
3740
.. code-block:: console
3841
39-
$ FLASK_APP=app.py flask run --debugger -p 5000
42+
$ export FLASK_APP=app.py FLASK_DEBUG=1
43+
$ flask run
4044
41-
Test the demo:
45+
and open the example application in your browser:
4246
4347
.. code-block:: console
4448
45-
curl -v -XGET 'http://localhost:5000/'
49+
$ open http://127.0.0.1:5000/
4650
51+
To reset the example application run:
52+
53+
.. code-block:: console
54+
55+
$ ./app-teardown.sh
4756
"""
4857

4958
from __future__ import absolute_import, print_function
@@ -61,4 +70,4 @@
6170
def index():
6271
"""Log error."""
6372
app.logger.error('Example error')
64-
return 'Hello world!'
73+
return 'Welcome to Invenio-Logging!'

0 commit comments

Comments
 (0)