Skip to content

Commit d084f05

Browse files
committed
Merge branch 'release/1.1.0'
2 parents 095e55a + 152ebf1 commit d084f05

20 files changed

+253
-110
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.2
2+
current_version = 1.1.0
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-]+)*))?

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ coverage.xml
4545
*,cover
4646
.hypothesis/
4747

48+
.pytest_cache/
49+
4850
# Translations
4951
*.mo
5052
*.pot

.travis.yml

+11-21
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,21 @@ cache: pip
44
language: python
55

66
python:
7-
- "2.7"
8-
- "3.3"
9-
- "3.4"
10-
- "3.5"
11-
- "3.6"
7+
- 3.6
8+
- 3.5
9+
- 3.4
10+
- 3.3
11+
- 2.7
12+
1213
env:
13-
- TOXENV=manifest
14-
- TOXENV=docs
14+
- TOXENV=py
15+
- TOXENV=docs
16+
- TOXENV=manifest
1517

1618
matrix:
17-
include:
18-
- python: "2.7"
19-
env: TOXENV=py27
20-
- python: "3.3"
21-
env: TOXENV=py33
22-
- python: "3.4"
23-
env: TOXENV=py34
24-
- python: "3.5"
25-
env: TOXENV=py35
26-
- python: "3.6"
27-
env: TOXENV=py36
2819
allow_failures:
29-
- python: "3.3"
30-
- python: "3.4"
31-
- python: "3.6"
20+
- python: 3.4
21+
- python: 3.3
3222

3323
before_install:
3424
- pip install codecov

AUTHORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Authors
66
Contributors
77
------------
88

9+
- Arno Hautala <[email protected]>: image attachment support
910
- Your Name <email or twitter handle>: short description of your contribution, if you want

LICENSE.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22
===========
33

4-
Copyright (c) 2016 Scott Colby
4+
Copyright (c) 2018 Scott Colby
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.rst

+19-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Development |develop_build| |develop_coverage| |develop_documentation| |develop_
1616
.. |stable_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=stable
1717
:target: http://pushover-complete.readthedocs.io/en/stable/?badge=stable
1818
:alt: Stable Documentation Status
19-
.. |stable_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5-blue.svg
19+
.. |stable_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6-blue.svg
2020
:alt: Stable Supported Python Versions
2121

2222

@@ -29,7 +29,7 @@ Development |develop_build| |develop_coverage| |develop_documentation| |develop_
2929
.. |develop_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=develop
3030
:target: http://pushover-complete.readthedocs.io/en/develop/?badge=develop
3131
:alt: Development Documentation Status
32-
.. |develop_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5-blue.svg
32+
.. |develop_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6-blue.svg
3333
:alt: Development Supported Python Versions
3434

3535
To learn more about Pushover and the Pushover API, please visit the Pushover Website, `<https://pushover.net>`_.
@@ -53,10 +53,14 @@ Installation should be as easy as executing this command in your chosen terminal
5353
5454
$ pip install pushover_complete
5555
56-
:code:`pushover_complete` officially supports Python 2.7 and 3.5.
56+
:code:`pushover_complete` officially supports Python 2.7, 3.5, and 3.6.
5757
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.
58+
Additionally, due to changes in Sphinx, the documentation cannot be built with Python 3.3.
59+
60+
As of version 1.1.0, support for Python 3.5 is deprecated. It will be removed in the next major version release.
61+
This doesn't mean that Python 3.5 will stop working immediately, but I will no longer consider failing tests for that version to be critical.
5962

63+
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.
6064

6165
Contributing
6266
------------
@@ -69,7 +73,17 @@ The full list of contributors is in :code:`AUTHORS.rst` or `on GitHub <https://g
6973
Changelog
7074
---------
7175

72-
Changes as of 23 December 2016
76+
Changes as of 6 April 2018
77+
78+
1.1.0 <6 April 2018>
79+
^^^^^^^^^^^^^^^^^^^^
80+
81+
- Add `image attachment support <https://pushover.net/api#attachments>`_ (Pulls `#5 <https://github.com/scolby33/pushover_complete/pull/5>`_ and `#9 <https://github.com/scolby33/pushover_complete/pull/9>`_)
82+
- Officially add support for Python 3.6
83+
- Change default tox environment for Python 3 to py36
84+
- Refactored :code:`.travis.yml` to be more concise and use the new :code:`py` `environment specification <https://tox.readthedocs.io/en/3.0.0/example/basic.html#a-simple-tox-ini-default-environments>`_ (Pull `#8 <https://github.com/scolby33/pushover_complete/pull/8>`_)
85+
- Some refactoring in the main API (more list comprehensions yay!) (Pull `#6 <https://github.com/scolby33/pushover_complete/pull/6>`_)
86+
- Several small documentation changes/refinements
7387

7488
1.0.2 <23 December 2016>
7589
^^^^^^^^^^^^^^^^^^^^^^^^

docs/source/changelog.rst

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@ 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-
Changes as of 23 December 2016
18+
Changes as of 6 April 2018
19+
20+
1.1.0 <6 April 2018>
21+
^^^^^^^^^^^^^^^^^^^^
22+
23+
- Add `image attachment support <https://pushover.net/api#attachments>`_ (Pulls `#5 <https://github.com/scolby33/pushover_complete/pull/5>`_ and `#9 <https://github.com/scolby33/pushover_complete/pull/9>`_)
24+
- Officially add support for Python 3.6
25+
- Officially deprecate support for Python 3.5. It will be removed in the next major version release.
26+
- Change default tox environment for Python 3 to py36
27+
- Refactored :code:`.travis.yml` to be more concise and use the new :code:`py` `environment specification <https://tox.readthedocs.io/en/3.0.0/example/basic.html#a-simple-tox-ini-default-environments>`_ (Pull `#8 <https://github.com/scolby33/pushover_complete/pull/8>`_)
28+
- Some refactoring in the main API (more list comprehensions yay!) (Pull `#6 <https://github.com/scolby33/pushover_complete/pull/6>`_)
29+
- Several small documentation changes/refinements
1930

2031
1.0.2 <23 December 2016>
2132
^^^^^^^^^^^^^^^^^^^^^^^^

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
# built documents.
6767
#
6868
# The full version, including alpha/beta/rc tags.
69-
release = '1.0.2'
69+
release = '1.1.0'
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)

docs/source/contributing.rst

+18-17
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Here's how to get set up to contribute to :code:`pushover_complete`.
4242

4343
$ pipsi install tox
4444
# or
45-
$ pyvenv my-virtual-env
45+
$ python -m venv my-virtual-env
4646
$ source my-virtual-env/bin/activate
4747
$ pip install tox
4848
# or
@@ -181,24 +181,31 @@ The steps for making a release of :code:`pushover_complete` are:
181181

182182
#. Run all tests one last time! ::
183183

184-
$ tox
184+
$ tox -r
185185

186+
.. note:: I'm using the :code:`-r` option here, forcing tox to recreate all its virtual environments to be sure this is a "clean" build.
187+
It takes longer but I think it's worth it for the peace of mind.
186188
#. Build the project::
187189

188190
$ python setup.py sdist bdist_wheel
189191

190-
#. Check that the sdist and wheel install properly::
192+
#. Check that the sdist and wheel install properly
193+
194+
.. warning:: Make sure you do not have any activated virtual environments when running these and the similar test steps.
195+
I've gotten inconsistent results in that situation.
196+
197+
::
191198

192199
$ rm -r tmp-virtualenv
193-
$ pyvenv tmp-virtualenv
194-
$ tmp-virtualenv/bin/pip install dist/pushover_complete-{new-version}.tar.gz
200+
$ python -m venv tmp-virtualenv
201+
$ tmp-virtualenv/bin/python -m pip install dist/pushover_complete-{new-version}.tar.gz
195202
$ tmp-virtualenv/bin/python
196203
>>> import pushover_complete
197204
>>> pushover_complete.__version__
198205
'{new_version}'
199206
$ rm -rf tmp-virtualenv
200-
$ pyvenv tmp-virtualenv
201-
$ tmp-virtualenv/bin/pip install dist/pushover_complete-{new-version}-py2.py3-none-any.whl
207+
$ python -m venv tmp-virtualenv
208+
$ tmp-virtualenv/bin/python -m pip install dist/pushover_complete-{new-version}-py2.py3-none-any.whl
202209
$ tmp-virtualenv/bin/python
203210
>>> import pushover_complete
204211
>>> pushover_complete.__version__
@@ -207,7 +214,6 @@ The steps for making a release of :code:`pushover_complete` are:
207214

208215
#. Try a release on the PyPI test server::
209216

210-
$ python setup.py register -r test
211217
$ twine upload -r test dist/pushover_complete-{new_version}*
212218

213219
.. note:: This requires a :code:`.pypirc` file in your home folder::
@@ -223,7 +229,6 @@ The steps for making a release of :code:`pushover_complete` are:
223229
password = password
224230

225231
[pypi]
226-
repository = https://pypi.python.org/pypi
227232
username = username
228233
password = password
229234

@@ -232,8 +237,8 @@ The steps for making a release of :code:`pushover_complete` are:
232237
#. Test install from the test PyPI::
233238

234239
$ rm -rf tmp-virtualenv
235-
$ pyvenv tmp-virtualenv
236-
$ tmp-virtualenv/bin/pip install -i https://testpypi.python.org/pypi pushover_complete
240+
$ python -m venv tmp-virtualenv
241+
$ tmp-virtualenv/bin/python -m pip install -i https://testpypi.python.org/pypi pushover_complete
237242
$ tmp-virtualenv/bin/python
238243
>>> import pushover_complete
239244
>>> pushover_complete.__version__
@@ -242,19 +247,15 @@ The steps for making a release of :code:`pushover_complete` are:
242247

243248
#. Check the metadata and such on the test PyPI website
244249
#. Deep breath
245-
#. Register on PyPI::
246-
247-
$ python setup.py register
248-
249250
#. Upload to PyPI! ::
250251

251252
$ twine upload dist/pushover_complete-{new_version}*
252253

253254
#. Test install from PyPI::
254255

255256
$ rm -rf tmp-virtualenv
256-
$ pyvenv tmp-virtualenv
257-
$ tmp-virtualenv/bin/pip install pushover_complete
257+
$ python -m venv tmp-virtualenv
258+
$ tmp-virtualenv/bin/python -m pip install pushover_complete
258259
$ tmp-virtualenv/bin/python
259260
>>> import pushover_complete
260261
>>> pushover_complete.__version__

docs/source/index.rst

+12-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ Welcome to :mod:`pushover_complete`
1616

1717
:mod:`pushover_complete` is a Python package for interacting with *all* aspects of the `Pushover API <https://pushover.net/api>`_.
1818

19-
.. =========== =============== ================== ======================= ====================
19+
.. only:: not latex
20+
21+
=========== =============== ================== ======================= ====================
2022
Stable |stable_build| |stable_coverage| |stable_documentation| |stable_pyversions|
2123
Development |develop_build| |develop_coverage| |develop_documentation| |develop_pyversions|
2224
=========== =============== ================== ======================= ====================
@@ -43,7 +45,7 @@ Welcome to :mod:`pushover_complete`
4345
.. |develop_documentation| image:: http://readthedocs.org/projects/pushover-complete/badge/?version=develop
4446
:target: http://pushover-complete.readthedocs.io/en/develop/?badge=develop
4547
:alt: Development Documentation Status
46-
.. |develop_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5-blue.svg
48+
.. |develop_pyversions| image:: https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6-blue.svg
4749
:alt: Development Supported Python Versions
4850

4951
To learn more about Pushover and the Pushover API, please visit the Pushover Website, `<https://pushover.net>`_.
@@ -85,8 +87,14 @@ Downloading and installing from source goes like this::
8587

8688
If you intend to install in a virtual environment, activate it before running :code:`pip install`.
8789

88-
:mod:`pushover_complete` officially supports Python 2.7 and 3.5.
90+
:mod:`pushover_complete` officially supports Python 2.7, 3.5, and 3.6.
8991
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.
92+
Additionally, due to changes in Sphinx, the documentation cannot be built with Python 3.3.
93+
94+
.. warning::
95+
.. deprecated:: 1.1.0 Support for Python 3.5 is deprecated. It will be removed in the next major version release.
96+
This doesn't mean that Python 3.5 will stop working immediately, but I will no longer consider failing tests for that version to be critical.
97+
9098
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.
9199

92100
See :ref:`installation` for further information about installing :mod:`pushover_complete` in all manner of ways.
@@ -160,7 +168,7 @@ Changelog
160168
Details about this versioning scheme can be found on the `Semver website <http://semver.org/spec/v2.0.0.html>`_.
161169
Versions postfixed with '-dev' are currently under development and those without a postfix are stable releases.
162170

163-
The current version of :mod:`pushover_complete` is |release|.
171+
You are reading the documents for version |release| of :mod:`pushover_complete`.
164172

165173
Full changelogs can be found on the :ref:`changelog` page.
166174

docs/source/installation.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
Installation
1212
============
1313

14-
There are many ways to install a Python package like :code:`pushover_complete`. Here many of those will be explained and the advantages of each will be identified.
14+
There are many ways to install a Python package like :mod:`pushover_complete`. Here many of those will be explained and the advantages of each will be identified.
1515

16-
If you are not yet familiar with virtual environments, stop reading this documentation and take a few moments to learn. Try some searches for "virtualenv," "virtualenvwrapper," and "pyvenv."
16+
If you are not yet familiar with virtual environments, stop reading this documentation and take a few moments to learn. Try some searches for "virtualenv," "virtualenvwrapper," and the "venv" standard library module.
1717
I promise that they will change your (Python) life.
1818

1919
Where to Get the Code
@@ -22,7 +22,7 @@ Where to Get the Code
2222
From PyPI
2323
^^^^^^^^^
2424

25-
Stable releases of :code:`pushover_complete` are located on PyPI, the `PYthon Package Index <https://pypi.python.org/pypi>`_.
25+
Stable releases of :mod:`pushover_complete` are located on PyPI, the `PYthon Package Index <https://pypi.python.org/pypi>`_.
2626
Installation from here is easy and generally the preferred method::
2727

2828
$ pip install pushover_complete
@@ -37,7 +37,7 @@ From GitHub
3737

3838
This works because only release-ready code is pushed to the master branch.
3939

40-
To get the latest and greatest version of :code:`pushover_complete` from the develop branch, install like this instead::
40+
To get the latest and greatest version of :mod:`pushover_complete` from the develop branch, install like this instead::
4141

4242
$ pip install git+https://github.com/scolby33/pushover_complete@develop#egg=pushover_complete-latestdev
4343

docs/source/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This software is licensed under the MIT License. The full text of this license i
1515

1616
MIT License
1717

18-
Copyright (c) 2016 Scott Colby
18+
Copyright (c) 2018 Scott Colby
1919

2020
Permission is hereby granted, free of charge, to any person obtaining a copy
2121
of this software and associated documentation files (the "Software"), to deal

docs/source/roadmap.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ The following Pushover API endpoints are fully implemented:
2727

2828
This constitutes all of the API endpoints available for entities acting as Pushover applications.
2929

30-
A command line interface is in the works to allow use directly from the shell.
30+
.. versionadded:: 1.1.0 Additionally, the `image attachment functionality <https://pushover.net/api#attachments>`_ added to Pushover in January 2018 `with version 3.0 of the Pushover apps <https://updates.pushover.net/post/170043375237/pushing-images-with-pushover-30>`_ is now supported.
31+
32+
A command line interface is in the works to allow use directly from your shell.
3133

3234
The Pushover Open Client API may be implemented for a future release.

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import codecs # To use a consistent encoding
55
import os
66
import re
7+
import sys
78

89
#################################################################
910

@@ -20,7 +21,9 @@
2021
'Programming Language :: Python :: 3.5',
2122
'Topic :: Communications'
2223
]
23-
INSTALL_REQUIRES = ['requests']
24+
INSTALL_REQUIRES = ['requests', 'six']
25+
if sys.version_info < (3, 4): # pathlib added to stdlib in 3.4
26+
INSTALL_REQUIRES.append('pathlib2')
2427
EXTRAS_REQUIRE = {}
2528
TESTS_REQUIRE = ['tox']
2629

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.2'
11+
__version__ = '1.1.0'
1212

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

0 commit comments

Comments
 (0)