Skip to content

Commit e4057eb

Browse files
committed
Merge branch 'release/1.0.1'
2 parents 2ca9de1 + ace8266 commit e4057eb

23 files changed

+267
-42
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.0
2+
current_version = 1.0.1
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-]+)*))?

.codecov.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
branch: develop
3+

.travis.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
11
sudo: false
2-
cache:
3-
directories:
4-
- $HOME/.cache/pip
2+
cache: pip
53

64
language: python
75

6+
python:
7+
- "2.7"
8+
- "3.3"
9+
- "3.4"
10+
- "3.5"
11+
env:
12+
- TOXENV=manifest
13+
- TOXENV=docs
14+
815
matrix:
916
include:
17+
- python: "2.7"
18+
env: TOXENV=py27
19+
- python: "3.3"
20+
env: TOXENV=py33
21+
- python: "3.4"
22+
env: TOXENV=py34
1023
- python: "3.5"
1124
env: TOXENV=py35
12-
- python: "3.5"
13-
env: TOXENV=manifest
14-
- python: "3.5"
15-
env: TOXENV=docs
25+
allow_failures:
26+
- python: "3.3"
27+
- python: "3.4"
1628

1729
before_install:
1830
- pip install codecov

MANIFEST.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include *.rst
2-
include tox.ini
32

43
include .bumpversion.cfg
4+
include .codecov.yml
55
include .coveragerc
6+
include tox.ini
67

78
recursive-include tests *.py
89

README.rst

+42-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,36 @@
11
pushover_complete
22
=================
3-
A Python 3 package for interacting with *all* aspects of the Pushover API.
3+
A Python package for interacting with *all* aspects of the Pushover API.
44

5-
.. image:: https://travis-ci.org/scolby33/pushover_complete.svg?branch=master
5+
=========== =============== ================== ======================= ====================
6+
Stable |stable_build| |stable_coverage| |stable_documentation| |stable_pyversions|
7+
Development |develop_build| |develop_coverage| |develop_documentation| |develop_pyversions|
8+
=========== =============== ================== ======================= ====================
9+
10+
.. |stable_build| image:: https://travis-ci.org/scolby33/pushover_complete.svg?branch=master
611
:target: https://travis-ci.org/scolby33/pushover_complete
7-
:alt: Build Status
8-
.. image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=master
12+
:alt: Stable Build Status
13+
.. |stable_coverage| image:: https://codecov.io/github/scolby33/pushover_complete/coverage.svg?branch=master
914
:target: https://codecov.io/github/scolby33/pushover_complete?branch=master
10-
:alt: Test Coverage Status
11-
.. image:: http://readthedocs.org/projects/pushover-complete/badge/?version=latest
12-
:target: http://pushover-complete.readthedocs.io/en/latest/?badge=latest
13-
:alt: Documentation Status
15+
:alt: Stable Test Coverage Status
16+
.. |stable_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=stable
17+
:target: http://pushover-complete.readthedocs.io/en/stable/?badge=stable
18+
:alt: Stable Documentation Status
19+
.. |stable_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5-blue.svg
20+
:alt: Stable Supported Python Versions
21+
22+
23+
.. |develop_build| image:: https://travis-ci.org/scolby33/pushover_complete.svg?branch=develop
24+
:target: https://travis-ci.org/scolby33/pushover_complete
25+
:alt: Development Build Status
26+
.. |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
28+
:alt: Development Test Coverage Status
29+
.. |develop_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=develop
30+
:target: http://pushover-complete.readthedocs.io/en/develop/?badge=develop
31+
:alt: Development Documentation Status
32+
.. |develop_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5-blue.svg
33+
:alt: Development Supported Python Versions
1434

1535
To learn more about Pushover and the Pushover API, please visit the Pushover Website, `<https://pushover.net>`_.
1636

@@ -33,6 +53,11 @@ Installation should be as easy as executing this command in your chosen terminal
3353
3454
$ pip install pushover_complete
3555
56+
:code:`pushover_complete` officially supports Python 2.7 and 3.5.
57+
Currently, Python 3.3 and 3.4 pass all tests and function properly as well, but this could change: these versions are not officially targeted by development.
58+
Support for Python 2.x may be dropped in the future, but only in a major version update (e.g. 1.x.y → 2.x.y) and this change will be announced well in advance.
59+
60+
3661
Contributing
3762
------------
3863

@@ -44,7 +69,15 @@ The full list of contributors is in :code:`AUTHORS.rst` or `on GitHub <https://g
4469
Changelog
4570
---------
4671

47-
1.0.0 <2016-05-09>
72+
Changes as of 10 May 2016
73+
74+
1.0.1 <10 May 2016>
75+
^^^^^^^^^^^^^^^^^^^
76+
77+
- Officially add Python 2.7 support and add testing for it to tox and Travis
78+
- Numerous updates to documentation and README, etc. to make them prettier and more useful
79+
80+
1.0.0 <9 May 2016>
4881
^^^^^^^^^^^^^^^^^^
4982

5083
- Implementation of methods for the Pushover messages, sounds, users, receipt, subscriptions, groups, and licenses APIs

docs/source/api.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
.. only:: prerelease
2+
3+
.. warning:: This is the documentation for a development version of pushover_complete.
4+
5+
.. only:: readthedocs
6+
7+
`Documentation for the Most Recent Stable Version <http://pushover-complete.readthedocs.io/en/stable/>`_
8+
19
.. _api:
210

311
API Reference

docs/source/changelog.rst

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
.. only:: prerelease
2+
3+
.. warning:: This is the documentation for a development version of pushover_complete.
4+
5+
.. only:: readthedocs
6+
7+
`Documentation for the Most Recent Stable Version <http://pushover-complete.readthedocs.io/en/stable/>`_
8+
19
.. _changelog:
210

311
Changelog
@@ -7,6 +15,13 @@ Changelog
715
Details about this versioning scheme can be found on the `Semver website <http://semver.org/spec/v2.0.0.html>`_.
816
Versions postfixed with '-dev' are currently under development and those without a postfix are stable releases.
917

10-
- :release:`1.0.0 <2016-05-09>`
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>`
1126
- :feature:`-` Documentation and build process
1227
- :feature:`-` Implementation of methods for the Pushover messages, sounds, users, receipt, subscriptions, groups, and licenses APIs

docs/source/conf.py

+16-3
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@
6666
# built documents.
6767
#
6868
# The full version, including alpha/beta/rc tags.
69-
release = '1.0.0'
69+
release = '1.0.1'
7070
# The short X.Y version.
71-
version = re.sub('(?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-]+)*))?',
72-
'\g<major>.\g<minor>.\g<patch>', release) # get the version number without any alpha/beta/rc/etc. tags
71+
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-]+)*))?',
72+
release)
73+
version = parsed_version.expand('\g<major>.\g<minor>.\g<patch>')
74+
75+
if parsed_version.group('release'):
76+
tags.add('prerelease')
7377

7478
# The language for content autogenerated by Sphinx. Refer to documentation
7579
# for a list of supported languages.
@@ -299,6 +303,10 @@
299303
# If true, do not generate a @detailmenu in the "Top" node's menu.
300304
#texinfo_no_detailmenu = False
301305

306+
# Suppress warnings about nonlocal image URIs
307+
suppress_warnings = [
308+
'image.nonlocal_uri'
309+
]
302310

303311
# Example configuration for intersphinx: refer to the Python standard library.
304312
intersphinx_mapping = {
@@ -310,4 +318,9 @@
310318

311319

312320
# 'releases' (changelog) configuration
321+
releases_release_uri = 'https://github.com/scolby33/pushover_complete/releases/tag/v%s'
322+
# releases_future_release_uri = 'https://github.com/scolby33/pushover_complete/tree/develop'
313323
releases_github_path = 'scolby33/pushover_complete'
324+
325+
if os.environ.get('READTHEDOCS', None):
326+
tags.add('readthedocs')

docs/source/contributing.rst

+56-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
.. only:: prerelease
2+
3+
.. warning:: This is the documentation for a development version of pushover_complete.
4+
5+
.. only:: readthedocs
6+
7+
`Documentation for the Most Recent Stable Version <http://pushover-complete.readthedocs.io/en/stable/>`_
8+
19
.. _contributing:
210

311
Contributing
@@ -158,23 +166,32 @@ The steps for making a release of :code:`pushover_complete` are:
158166
#. Create a release branch::
159167

160168
$ git flow release start {new_version}
169+
161170
#. Bump the version specifier in :code:`src/pushover_complete/__init__.py` and :code:`docs/source/conf.py` from '{new_version}-dev' to plain '{new_version}'::
162171

163172
$ bumpversion release
173+
164174
#. Add a release entry in :code:`docs/source/changelog.rst` (something like :code:`- :release:`{new_version} <date>``)
165-
#. Update :code:`README.rst` with new version and changelog information
166-
#. Check that any new intersphinx links have corresponding inventories in :code:`docs/source/conf.py`::
175+
#. Update :code:`README.rst` with new version and changelog information, including the last updated date in the changelog
176+
#. Check that any new intersphinx links have corresponding inventory locations in :code:`docs/source/conf.py`. Run
177+
178+
::
179+
180+
$ egrep -rIn --exclude-dir=.eggs --exclude-dir=.tox --exclude-dir=build ':\S+:' .
181+
182+
and check for instances of :code:`:meth:`, :code:`:class:`, etc. that are from sources not already included in :code:`intersphinx_mapping` in :code:`conf.py`. (There will be a lot of lines, but with :code:`grep` coloring turned on, it's not that hard to skim through relatively quickly.)
167183

168-
$ egrep -rn --exclude-dir=__pycache__ ':\S+:' .
169184
#. Run all tests one last time! ::
170185

171186
$ tox
187+
172188
#. Build the project::
173189

174190
$ python setup.py sdist bdist_wheel
191+
175192
#. Check that the sdist and wheel install properly::
176193

177-
$ rm -rf tmp-virtualenv
194+
$ rm -r tmp-virtualenv
178195
$ pyvenv tmp-virtualenv
179196
$ tmp-virtualenv/bin/pip install dist/pushover_complete-{new-version}.tar.gz
180197
$ tmp-virtualenv/bin/python
@@ -183,16 +200,37 @@ The steps for making a release of :code:`pushover_complete` are:
183200
'{new_version}'
184201
$ rm -rf tmp-virtualenv
185202
$ pyvenv tmp-virtualenv
186-
$ tmp-virtualenv/bin/pip install dist/pushover_complete-{new-version}....whl
203+
$ tmp-virtualenv/bin/pip install dist/pushover_complete-{new-version}-py2.py3-none-any.whl
187204
$ tmp-virtualenv/bin/python
188205
>>> import pushover_complete
189206
>>> pushover_complete.__version__
190207
'{new_version}'
191208
$ rm -rf tmp-virtualenv
209+
192210
#. Try a release on the PyPI test server::
193211

194212
$ python setup.py register -r test
195213
$ twine upload -r test dist/pushover_complete-{new_version}*
214+
215+
.. note:: This requires a :code:`.pypirc` file in your home folder::
216+
217+
[distutils]
218+
index-servers=
219+
pypi
220+
test
221+
222+
[test]
223+
repository = https://testpypi.python.org/pypi
224+
username = username
225+
password = password
226+
227+
[pypi]
228+
repository = https://pypi.python.org/pypi
229+
username = username
230+
password = password
231+
232+
Registration with PyPI and TestPyPI is required.
233+
196234
#. Test install from the test PyPI::
197235

198236
$ rm -rf tmp-virtualenv
@@ -203,14 +241,17 @@ The steps for making a release of :code:`pushover_complete` are:
203241
>>> pushover_complete.__version__
204242
'{new_version}'
205243
$ rm -rf tmp-virtualenv
206-
#. Check the metadata and such on the test PyPI web interface
244+
245+
#. Check the metadata and such on the test PyPI website
207246
#. Deep breath
208-
#. Register on PyPI if necessary::
247+
#. Register on PyPI::
209248

210249
$ python setup.py register
250+
211251
#. Upload to PyPI! ::
212252

213253
$ twine upload dist/pushover_complete-{new_version}*
254+
214255
#. Test install from PyPI::
215256

216257
$ rm -rf tmp-virtualenv
@@ -221,18 +262,23 @@ The steps for making a release of :code:`pushover_complete` are:
221262
>>> pushover_complete.__version__
222263
'{new_version}'
223264
$ rm -rf tmp-virtualenv
265+
224266
#. Check the metadata and such on the PyPI website
225267
#. Publish the release branch::
226268

227269
$ git flow release publish {new_version}
270+
228271
#. Finish the release branch::
229272

230-
$ git flow release finish -F {new_version}
273+
$ git flow release finish {new_version}
274+
231275
#. Push the new tag::
232276

233277
$ git push --tags
234-
#. Upload the sdist and wheel to the release on GitHub
235-
#. Add a pretty changelog to the release on GitHub
278+
279+
#. Attach the sdist and wheel files to the release on GitHub
280+
#. Add changelog notes to the release on GitHub
236281
#. Bump the version to the next dev version::
237282

238283
$ bumpversion patch
284+

0 commit comments

Comments
 (0)