Skip to content

Commit 095e55a

Browse files
committed
merge release/1.0.2 into master
2 parents e4057eb + abb56a3 commit 095e55a

12 files changed

+53
-31
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.1
2+
current_version = 1.0.2
33
commit = True
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ python:
88
- "3.3"
99
- "3.4"
1010
- "3.5"
11+
- "3.6"
1112
env:
1213
- TOXENV=manifest
1314
- TOXENV=docs
@@ -22,9 +23,12 @@ matrix:
2223
env: TOXENV=py34
2324
- python: "3.5"
2425
env: TOXENV=py35
26+
- python: "3.6"
27+
env: TOXENV=py36
2528
allow_failures:
2629
- python: "3.3"
2730
- python: "3.4"
31+
- python: "3.6"
2832

2933
before_install:
3034
- pip install codecov

README.rst

+12-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Development |develop_build| |develop_coverage| |develop_documentation| |develop_
1111
:target: https://travis-ci.org/scolby33/pushover_complete
1212
:alt: Stable Build Status
1313
.. |stable_coverage| image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=master
14-
:target: https://codecov.io/github/scolby33/pushover_complete?branch=master
14+
:target: https://codecov.io/gh/scolby33/pushover_complete/branch/master
1515
:alt: Stable Test Coverage Status
1616
.. |stable_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=stable
1717
:target: http://pushover-complete.readthedocs.io/en/stable/?badge=stable
@@ -24,7 +24,7 @@ Development |develop_build| |develop_coverage| |develop_documentation| |develop_
2424
:target: https://travis-ci.org/scolby33/pushover_complete
2525
:alt: Development Build Status
2626
.. |develop_coverage| image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=develop
27-
:target: https://codecov.io/github/scolby33/pushover_complete?branch=develop
27+
:target: https://codecov.io/gh/scolby33/pushover_complete/branch/develop
2828
:alt: Development Test Coverage Status
2929
.. |develop_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=develop
3030
:target: http://pushover-complete.readthedocs.io/en/develop/?badge=develop
@@ -69,7 +69,16 @@ The full list of contributors is in :code:`AUTHORS.rst` or `on GitHub <https://g
6969
Changelog
7070
---------
7171

72-
Changes as of 10 May 2016
72+
Changes as of 23 December 2016
73+
74+
1.0.2 <23 December 2016>
75+
^^^^^^^^^^^^^^^^^^^^^^^^
76+
77+
- "Add" Python 3.6 support. It's not in Travis as an allowed failure and didn't require any code changes to pass!
78+
- Fix a major bug with the receipt cancel API. I was using a `GET` request instead of a `POST`
79+
- Stop using the `releases` Sphinx plugin for the changelog. Its philosophy didn't match well with mine
80+
- Update release procedure based on no longer using `releases`
81+
- Some minor documentation fixes
7382

7483
1.0.1 <10 May 2016>
7584
^^^^^^^^^^^^^^^^^^^

docs/requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
releases==1.1.0

docs/source/changelog.rst

+23-10
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,26 @@ Changelog
1515
Details about this versioning scheme can be found on the `Semver website <http://semver.org/spec/v2.0.0.html>`_.
1616
Versions postfixed with '-dev' are currently under development and those without a postfix are stable releases.
1717

18-
.. note:: Links to future releases are currently broken due to how the changelog is parsed.
19-
To see the most recent changes, `visit the GitHub repository <https://github.com/scolby33/pushover_complete/tree/develop>`_.
20-
I am working on a fix for this issue.
21-
22-
- :release:`1.0.1 <10 May 2016>`
23-
- :support:`-` Numerous updates to documentation and README, etc. to make them prettier and more useful
24-
- :support:`-` Officially add Python 2.7 support and add testing for it to tox and Travis
25-
- :release:`1.0.0 <9 May 2016>`
26-
- :feature:`-` Documentation and build process
27-
- :feature:`-` Implementation of methods for the Pushover messages, sounds, users, receipt, subscriptions, groups, and licenses APIs
18+
Changes as of 23 December 2016
19+
20+
1.0.2 <23 December 2016>
21+
^^^^^^^^^^^^^^^^^^^^^^^^
22+
23+
- "Add" Python 3.6 support. It's not in Travis as an allowed failure and didn't require any code changes to pass!
24+
- Fix a major bug with the receipt cancel API. I was using a `GET` request instead of a `POST`
25+
- Stop using the `releases` Sphinx plugin for the changelog. Its philosophy didn't match well with mine
26+
- Update release procedure based on no longer using `releases`
27+
- Some minor documentation fixes
28+
29+
30+
1.0.1 <10 May 2016>
31+
^^^^^^^^^^^^^^^^^^^
32+
33+
- Officially add Python 2.7 support and add testing for it to tox and Travis
34+
- Numerous updates to documentation and README, etc. to make them prettier and more useful
35+
36+
1.0.0 <9 May 2016>
37+
^^^^^^^^^^^^^^^^^^
38+
39+
- Implementation of methods for the Pushover messages, sounds, users, receipt, subscriptions, groups, and licenses APIs
40+
- Documentation and build process

docs/source/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
'sphinx.ext.todo',
3939
'sphinx.ext.coverage',
4040
'sphinx.ext.viewcode',
41-
'releases',
41+
# 'releases',
4242
# 'sphinx.ext.githubpages'
4343
]
4444

@@ -66,7 +66,7 @@
6666
# built documents.
6767
#
6868
# The full version, including alpha/beta/rc tags.
69-
release = '1.0.1'
69+
release = '1.0.2'
7070
# The short X.Y version.
7171
parsed_version = re.match('(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?',
7272
release)
@@ -318,9 +318,9 @@
318318

319319

320320
# 'releases' (changelog) configuration
321-
releases_release_uri = 'https://github.com/scolby33/pushover_complete/releases/tag/v%s'
321+
# releases_release_uri = 'https://github.com/scolby33/pushover_complete/releases/tag/v%s'
322322
# releases_future_release_uri = 'https://github.com/scolby33/pushover_complete/tree/develop'
323-
releases_github_path = 'scolby33/pushover_complete'
323+
# releases_github_path = 'scolby33/pushover_complete'
324324

325325
if os.environ.get('READTHEDOCS', None):
326326
tags.add('readthedocs')

docs/source/contributing.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ Development takes place on the :code:`develop` branch with individual features b
7171
Further reading on this style can be found in `this blog post <http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/>`_ by Jeff Kreeftmeijer.
7272
A git plugin to aid in managing branches in this way, called :code:`git-flow`, can be found `here <https://github.com/nvie/gitflow>`_.
7373

74-
.. note:: This is not quite true yet...once the 1.0 release takes place, development will move to the develop branch. Until then, it's on master because that's just how the project started.
75-
7674
This might seem a bit complicated, but in general you won't have to worry about it as a contributor.
7775
The long and short of this system for you is:
7876

@@ -85,7 +83,7 @@ The maintainers will take care of any other issues relating to this.
8583
Pull Requests
8684
-------------
8785

88-
Once you've got your feature or bugfix finished (or if its in a partially complete state but you want to publish it
86+
Once you've got your feature or bugfix finished (or if it's in a partially complete state but you want to publish it
8987
for comment), push it to your fork of the repository and open a pull request against the develop branch on GitHub.
9088

9189
Make a descriptive comment about your pull request, perhaps referencing the issue it is meant to fix (something along the lines of "fixes issue #10" will cause GitHub to automatically link to that issue).
@@ -171,8 +169,8 @@ The steps for making a release of :code:`pushover_complete` are:
171169

172170
$ bumpversion release
173171

174-
#. Add a release entry in :code:`docs/source/changelog.rst` (something like :code:`- :release:`{new_version} <date>``)
175-
#. Update :code:`README.rst` with new version and changelog information, including the last updated date in the changelog
172+
#. Update the changelog in :code:`docs/source/changelog.rst`, including the last updated date
173+
#. Update the changelog in :code:`README.rst` to match the changelog in the docs
176174
#. Check that any new intersphinx links have corresponding inventory locations in :code:`docs/source/conf.py`. Run
177175

178176
::

docs/source/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Welcome to :mod:`pushover_complete`
2525
:target: https://travis-ci.org/scolby33/pushover_complete
2626
:alt: Stable Build Status
2727
.. |stable_coverage| image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=master
28-
:target: https://codecov.io/github/scolby33/pushover_complete?branch=master
28+
:target: https://codecov.io/gh/scolby33/pushover_complete/branch/master
2929
:alt: Stable Test Coverage Status
3030
.. |stable_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=stable
3131
:target: http://pushover-complete.readthedocs.io/en/stable/?badge=stable
@@ -38,7 +38,7 @@ Welcome to :mod:`pushover_complete`
3838
:target: https://travis-ci.org/scolby33/pushover_complete
3939
:alt: Development Build Status
4040
.. |develop_coverage| image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=develop
41-
:target: https://codecov.io/github/scolby33/pushover_complete?branch=develop
41+
:target: https://codecov.io/gh/scolby33/pushover_complete/branch/develop
4242
:alt: Development Test Coverage Status
4343
.. |develop_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=develop
4444
:target: http://pushover-complete.readthedocs.io/en/develop/?badge=develop

src/pushover_complete/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'PushoverAPI'
99
]
1010

11-
__version__ = '1.0.1'
11+
__version__ = '1.0.2'
1212

1313
__title__ = 'pushover_complete'
1414
__description__ = 'A Python package for interacting with *all* aspects of the Pushover API'

src/pushover_complete/pushover_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def cancel_receipt(self, receipt):
235235
:returns: Response body interpreted as JSON
236236
:rtype: dict
237237
"""
238-
return self._generic_get('receipts/{}/cancel.json', receipt)
238+
return self._generic_post('receipts/{}/cancel.json', receipt)
239239

240240
def _migrate_to_subscription(self, user, subscription_code, device=None, sound=None, session=None):
241241
"""The internal function to migrate a user key to a subscription key.

tests/PushoverAPI/test_PushoverAPI.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_PushoverAPI_cancels_receipt(PushoverAPI):
326326
"""Test cancelling a receipt."""
327327
url_re = re.compile('https://api\.pushover\.net/1/receipts/r[a-zA-Z0-9]*/cancel\.json')
328328
responses.add_callback(
329-
responses.GET,
329+
responses.POST,
330330
url_re,
331331
callback=receipt_cancel_callback,
332332
content_type='application/json'
@@ -347,7 +347,7 @@ def test_PushoverAPI_raises_error_on_bad_receipt_cancel(PushoverAPI):
347347
"""Test the cancelling of a bad receipt value."""
348348
url_re = re.compile('https://api\.pushover\.net/1/receipts/r[a-zA-Z0-9]*/cancel\.json')
349349
responses.add_callback(
350-
responses.GET,
350+
responses.POST,
351351
url_re,
352352
callback=receipt_cancel_callback,
353353
content_type='application/json'

tox.ini

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ changedir = docs
3131
deps =
3232
sphinx
3333
sphinx_rtd_theme
34-
releases
3534
commands =
3635
mkdir -p {envtmpdir}
3736
cp -r source {envtmpdir}/source

0 commit comments

Comments
 (0)