-
-
Notifications
You must be signed in to change notification settings - Fork 855
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 #278 from pycontribs/develop
v1.0.7
- Loading branch information
Showing
51 changed files
with
4,171 additions
and
2,089 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,180 @@ | ||
## | ||
## Format | ||
## | ||
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...] | ||
## | ||
## Description | ||
## | ||
## ACTION is one of 'chg', 'fix', 'new' | ||
## | ||
## Is WHAT the change is about. | ||
## | ||
## 'chg' is for refactor, small improvement, cosmetic changes... | ||
## 'fix' is for bug fixes | ||
## 'new' is for new features, big improvement | ||
## | ||
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc' | ||
## | ||
## Is WHO is concerned by the change. | ||
## | ||
## 'dev' is for developpers (API changes, refactors...) | ||
## 'usr' is for final users (UI changes) | ||
## 'pkg' is for packagers (packaging changes) | ||
## 'test' is for testers (test only related changes) | ||
## 'doc' is for doc guys (doc only changes) | ||
## | ||
## COMMIT_MSG is ... well ... the commit message itself. | ||
## | ||
## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic' | ||
## | ||
## They are preceded with a '!' or a '@' (prefer the former, as the | ||
## latter is wrongly interpreted in github.) Commonly used tags are: | ||
## | ||
## 'refactor' is obviously for refactoring code only | ||
## 'minor' is for a very meaningless change (a typo, adding a comment) | ||
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...) | ||
## 'wip' is for partial functionality but complete subfunctionality. | ||
## | ||
## Example: | ||
## | ||
## new: usr: support of bazaar implemented | ||
## chg: re-indentend some lines !cosmetic | ||
## new: dev: updated code to be compatible with last version of killer lib. | ||
## fix: pkg: updated year of licence coverage. | ||
## new: test: added a bunch of test around user usability of feature X. | ||
## fix: typo in spelling my name in comment. !minor | ||
## | ||
## Please note that multi-line commit message are supported, and only the | ||
## first line will be considered as the "summary" of the commit message. So | ||
## tags, and other rules only applies to the summary. The body of the commit | ||
## message will be displayed in the changelog without reformatting. | ||
|
||
|
||
## | ||
## ``ignore_regexps`` is a line of regexps | ||
## | ||
## Any commit having its full commit message matching any regexp listed here | ||
## will be ignored and won't be reported in the changelog. | ||
## | ||
ignore_regexps = [ | ||
# ignore trivial fixes | ||
r'Auto-generating.*', | ||
r'spelling|typo', | ||
r'bump.*version', | ||
# all merged commits in the PR will appear in changelog anyway so | ||
# the PR merge commit is not needed. | ||
r'Merge pull request #\d+ from.*' | ||
] | ||
|
||
|
||
## ``section_regexps`` is a list of 2-tuples associating a string label and a | ||
## list of regexp | ||
## | ||
## Commit messages will be classified in sections thanks to this. Section | ||
## titles are the label, and a commit is classified under this section if any | ||
## of the regexps associated is matching. | ||
## | ||
section_regexps = [ | ||
('Other', None), ## Match all lines | ||
] | ||
|
||
|
||
## ``body_process`` is a callable | ||
## | ||
## This callable will be given the original body and result will | ||
## be used in the changelog. | ||
## | ||
## Available constructs are: | ||
## | ||
## - any python callable that take one txt argument and return txt argument. | ||
## | ||
## - ReSub(pattern, replacement): will apply regexp substitution. | ||
## | ||
## - Indent(chars=" "): will indent the text with the prefix | ||
## Please remember that template engines gets also to modify the text and | ||
## will usually indent themselves the text if needed. | ||
## | ||
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns | ||
## | ||
## - noop: do nothing | ||
## | ||
## - ucfirst: ensure the first letter is uppercase. | ||
## (usually used in the ``subject_process`` pipeline) | ||
## | ||
## - final_dot: ensure text finishes with a dot | ||
## (usually used in the ``subject_process`` pipeline) | ||
## | ||
## - strip: remove any spaces before or after the content of the string | ||
## | ||
## Additionally, you can `pipe` the provided filters, for instance: | ||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ") | ||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | ||
#body_process = noop | ||
empty_string = lambda _: '' | ||
body_process = empty_string | ||
|
||
|
||
## ``subject_process`` is a callable | ||
## | ||
## This callable will be given the original subject and result will | ||
## be used in the changelog. | ||
## | ||
## Available constructs are those listed in ``body_process`` doc. | ||
subject_process = (strip | | ||
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') | | ||
ucfirst | final_dot) | ||
|
||
|
||
## ``tag_filter_regexp`` is a regexp | ||
## | ||
## Tags that will be used for the changelog must match this regexp. | ||
## | ||
tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$' | ||
|
||
|
||
## ``unreleased_version_label`` is a string | ||
## | ||
## This label will be used as the changelog Title of the last set of changes | ||
## between last valid tag and HEAD if any. | ||
unreleased_version_label = "Upcoming release (unreleased changes)" | ||
|
||
|
||
## ``output_engine`` is a callable | ||
## | ||
## This will change the output format of the generated changelog file | ||
## | ||
## Available choices are: | ||
## | ||
## - rest_py | ||
## | ||
## Legacy pure python engine, outputs ReSTructured text. | ||
## This is the default. | ||
## | ||
## - mustache(<template_name>) | ||
## | ||
## Template name could be any of the available templates in | ||
## ``templates/mustache/*.tpl``. | ||
## Requires python package ``pystache``. | ||
## Examples: | ||
## - mustache("markdown") | ||
## - mustache("restructuredtext") | ||
## | ||
## - makotemplate(<template_name>) | ||
## | ||
## Template name could be any of the available templates in | ||
## ``templates/mako/*.tpl``. | ||
## Requires python package ``mako``. | ||
## Examples: | ||
## - makotemplate("restructuredtext") | ||
## | ||
output_engine = rest_py | ||
#output_engine = mustache("restructuredtext") | ||
#output_engine = mustache("markdown") | ||
#output_engine = makotemplate("restructuredtext") | ||
|
||
|
||
## ``include_merge`` is a boolean | ||
## | ||
## This option tells git-log whether to include merge commits in the log. | ||
## The default is to include them. | ||
include_merge = True |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[gerrit] | ||
host=review.gerrithub.io | ||
port=29418 | ||
project=pycontribs/jira.git | ||
defaultbranch=develop |
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,73 +1,107 @@ | ||
language: python | ||
sudo: false | ||
matrix: | ||
fast_finish: false | ||
os: | ||
- linux | ||
python: | ||
- '2.6' | ||
- '2.7' | ||
- '3.3' | ||
- '3.4' | ||
- '3.5' | ||
install: | ||
- pip -q install -r requirements.txt | ||
- pip -q install -r requirements-dev.txt | ||
- pip -q install ipython || echo "optional skipped" | ||
- pip -q install pytest-cache || echo "optional skipped" | ||
- pip -q install unittest2 || echo "optional skipped" | ||
- pip -q install ordereddict || echo "optional skipped" | ||
- pip -q install coveralls | ||
- pip --version | ||
- pip -q --log dist/pip.log install --upgrade pip setuptools py | ||
- pip --version | ||
- pip -q --log dist/pip.log install ipython || echo "optional skipped" | ||
- pip -q --log dist/pip.log install pytest-cache || echo "optional skipped" | ||
- pip -q --log dist/pip.log install -r requirements.txt -r requirements-dev.txt | ||
- pwd | ||
script: | ||
- curl --silent -Lo travis_after_all.py https://raw.github.com/pycontribs/travis_after_all/master/travis_after_all.py && travis_wait python setup.py test | ||
- export PACKAGE_VERSION=$(python -c "from jira.version import __version__; print(__version__)") | ||
- travis_wait python setup.py test | ||
- export PACKAGE_NAME=$(python setup.py --name) | ||
- export PACKAGE_VERSION=$(python setup.py --version) | ||
after_success: | ||
- python travis_after_all.py | ||
- export $(cat .to_export_back) | ||
- | | ||
if [ "$BUILD_LEADER" = "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then | ||
echo "All jobs succeeded! PUBLISHING..." | ||
else | ||
echo "Some jobs failed" | ||
fi | ||
fi | ||
- coveralls | ||
- travis_wait python setup.py prerelease | ||
- python setup.py build_sphinx upload_docs sdist bdist_wheel | ||
- python travis_after_all.py | ||
- export $(cat .to_export_back) | ||
- | | ||
if [ "$BUILD_LEADER" = "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then | ||
echo "All jobs succeeded! PUBLISHING..." | ||
else | ||
echo "Some jobs failed" | ||
fi | ||
fi | ||
- coveralls | ||
- travis_wait python setup.py prerelease | ||
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r | ||
- make test | ||
after_failure: | ||
- python travis_after_all.py | ||
- export $(cat .to_export_back) | ||
- | | ||
if [ "$BUILD_LEADER" = "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then | ||
echo "All jobs failed" | ||
else | ||
echo "Some jobs failed" | ||
fi | ||
fi | ||
- python travis_after_all.py | ||
- export $(cat .to_export_back) | ||
- | | ||
if [ "$BUILD_LEADER" = "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then | ||
echo "All jobs failed" | ||
else | ||
echo "Some jobs failed" | ||
fi | ||
fi | ||
after_script: | ||
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS | ||
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
notifications: | ||
hipchat: 7d72ba6ba0bf07248f17e0a6a1a899@DevOps | ||
email: | ||
- pycontribs@googlegroups.com | ||
- sorin.sbarnea@gmail.com | ||
before_deploy: | ||
- echo "before deploy..." | ||
- echo "before deploy..." | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
- secure: "gr9iOcQjdoAyUAim6FWKzJI9MBaJo9XKfGQGu7wdPXUFhg80Rp6GLJsowP+aU94NjXM1UQlVHDAy627WtjBlLH2SvmVEIIr7+UKBopBYuXG5jJ1m3wOZE+4f1Pqe9bqFc1DxgucqE8qF0sC24fIbNM2ToeyYrxrS6RoL2gRrX2I=" | ||
file: "dist/jira-$PACKAGE_VERSION.tar.gz" | ||
skip_cleanup: true | ||
on: | ||
condition: "$BUILD_LEADER = YES" | ||
- provider: pypi | ||
user: sorin | ||
password: | ||
secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw=" | ||
distributions: "sdist bdist_wheel" | ||
on: | ||
condition: "$BUILD_LEADER = YES" | ||
- provider: releases | ||
api_key: | ||
secure: gr9iOcQjdoAyUAim6FWKzJI9MBaJo9XKfGQGu7wdPXUFhg80Rp6GLJsowP+aU94NjXM1UQlVHDAy627WtjBlLH2SvmVEIIr7+UKBopBYuXG5jJ1m3wOZE+4f1Pqe9bqFc1DxgucqE8qF0sC24fIbNM2ToeyYrxrS6RoL2gRrX2I= | ||
file: | ||
- dist/$PACKAGE_NAME-$PACKAGE_VERSION* | ||
- dist/CHANGELOG.md | ||
skip_cleanup: true | ||
on: | ||
tags: false | ||
condition: "$BUILD_LEADER = YES" | ||
- provider: pypi | ||
user: sorin | ||
password: | ||
secure: E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw= | ||
distributions: sdist bdist_wheel | ||
skip_cleanup: true | ||
on: | ||
tags: false | ||
condition: "$BUILD_LEADER = YES" | ||
branch: master | ||
- provider: pypi | ||
server: https://testpypi.python.org/pypi | ||
user: sorins | ||
password: | ||
secure: E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw= | ||
distributions: sdist bdist_wheel | ||
skip_cleanup: true | ||
on: | ||
tags: false | ||
condition: "$BUILD_LEADER = YES" | ||
branch: develop | ||
after_deploy: | ||
- echo "Now we only have to increase the version number, tag the changset and push..." | ||
- ./release.sh | ||
- echo "Now we only have tag the changeset and push..." | ||
- git tag $PACKAGE_VERSION -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER on $TRAVIS_BRANCH branch." | ||
- git push -q https://$TAGPERM@github.com/pycontribs/$PACKAGE_NAME $PACKAGE_VERSION | ||
addons: | ||
artifacts: | ||
debug: true | ||
paths: | ||
- dist/* | ||
target_paths: $PACKAGE_NAME/$TRAVIS_BRANCH/$TRAVIS_BUILD_NUMBER-$TRAVIS_PYTHON_VERSION | ||
working_dir: $TRAVIS_BUILD_DIR | ||
env: | ||
global: | ||
- secure: fuXwQL+KHQ96XkAFl2uQc8eK8dAjrgkup46tck/UGjVpdv1PT/yHmBKrvpFjDa50ueGbtBwTdKAwhyAmYuiZCk2IYHzdvBylCZBBji2FSpaTM59CVwgkVT6tx3HHO83X0mEX6ih9TJvZD5XhX+YUjopnseRXRq3ey3JZJXWN4RM= | ||
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U=" |
Oops, something went wrong.