Skip to content

Commit

Permalink
Merge pull request #70 from infothrill/develop
Browse files Browse the repository at this point in the history
bump to 0.4.4
  • Loading branch information
infothrill authored Dec 27, 2017
2 parents 70f5ba6 + a177418 commit 8225a4b
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- repo: git@github.com:pre-commit/pre-commit-hooks
sha: v0.9.1
hooks:
- id: check-case-conflict
- id: fix-encoding-pragma
- id: check-docstring-first
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: required
sudo: false
language: python
python:
- "2.6"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Release history
---------------
0.4.4 (December 27th 2017)
++++++++++++++++++++++++++
- fixed: fixed wheel dependency on python 2.6 and 3.3
- fixed: pep8 related changes, doc fixes

0.4.3 (June 26th 2017)
++++++++++++++++++++++
- fixed: nsupdate URLs
Expand Down
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ deb:


clean:
@echo "Cleaning up distutils stuff"
rm -rf build
rm -rf dist
rm -rf deb_dist
rm -rf *.egg
rm -rf *.egg-info
@echo "Cleaning up distutils and tox stuff"
rm -rf build dist deb_dist
rm -rf *.egg .eggs *.egg-info
rm -rf .tox
@echo "Cleaning up byte compiled python stuff"
find . -type f -regex ".*\.py[co]$$" -delete
find . -regex "\(.*__pycache__.*\|*.py[co]\)" -delete

11 changes: 6 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ Dyndnsc - dynamic dns update client
.. image:: https://travis-ci.org/infothrill/python-dyndnsc.svg?branch=develop
:target: https://travis-ci.org/infothrill/python-dyndnsc

.. image:: https://coveralls.io/repos/infothrill/python-dyndnsc/badge.png?branch=develop
.. image:: https://img.shields.io/coveralls/infothrill/python-dyndnsc/develop.svg
:target: https://coveralls.io/r/infothrill/python-dyndnsc?branch=develop
:alt: Code coverage

.. image:: https://img.shields.io/pypi/v/dyndnsc.svg
:target: https://pypi.python.org/pypi/dyndnsc/

.. image:: https://requires.io/github/infothrill/python-dyndnsc/requirements.png?branch=develop
:target: https://requires.io/github/infothrill/python-dyndnsc/requirements/?branch=develop
:alt: Requirements Status
.. image:: https://img.shields.io/requires/github/infothrill/python-dyndnsc.svg
:target: https://requires.io/github/infothrill/python-dyndnsc/requirements/?branch=develop
:alt: Requirements Status

*Dyndnsc* is a command line client for sending updates to dynamic
dns (ddns, dyndns) services. It supports multiple protocols and services,
Expand Down Expand Up @@ -45,7 +46,7 @@ Installation
Requirements
============
* Python 2.6, 2.7 or 3.2+
* Python 2.6, 2.7 or 3.3+


Status
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sphinx==1.6.2
Sphinx==1.6.3
7 changes: 4 additions & 3 deletions docs/user/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ supported:

* Python 2.6
* Python 2.7
* Python 3.2
* Python 3.3
* Python 3.4
* PyPy 1.9
* Python 3.5
* Python 3.6
* PyPy

Support for Python 2.6 and 3.2 may be dropped at any time.
Support for Python 2.6 may be dropped at any time.

Is service xyz supported?
-------------------------
Expand Down
3 changes: 2 additions & 1 deletion dyndnsc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from . import updater
from .core import getDynDnsClientForConfig, DynDnsClient

__version__ = '0.4.3'
__version__ = '0.4.4'
1 change: 1 addition & 0 deletions dyndnsc/common/detect_ip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
Expand Down
1 change: 1 addition & 0 deletions dyndnsc/tests/plugins/notify/test_growl.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest


Expand Down
1 change: 1 addition & 0 deletions dyndnsc/tests/plugins/notify/test_osxnotify.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest


Expand Down
1 change: 1 addition & 0 deletions dyndnsc/tests/test_daemon.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest

from dyndnsc import daemon
Expand Down
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,22 @@
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
)


def patch_setup_requires(requires):
"""python version compatibility"""
if sys.version_info < (2, 7) or (3, 1) < sys.version_info < (3, 4):
# https://github.com/pypa/wheel/blob/7ca7b3552e55030b5d78cd90d53f1d99c9139f16/CHANGES.txt#L15
return requires + ["wheel==0.29.0"]
else:
return requires


def patch_test_requires(requires):
"""python version compatibility"""
if sys.version_info < (3, 3):
Expand All @@ -75,6 +83,7 @@ def patch_install_requires(requires):
to_add.append("importlib")
return requires + to_add


if sys.version_info < (2, 7, 4):
# work around python issue http://bugs.python.org/issue15881
# affects only python2 when using multiprocessing and if nose is installed
Expand All @@ -100,6 +109,7 @@ def patch_install_requires(requires):
'protocols',
long_description=README + '\n\n' + CHANGELOG,
url='https://github.com/infothrill/python-dyndnsc',
setup_requires=patch_setup_requires([]),
install_requires=patch_install_requires(
['requests>=2.0.1', 'setuptools', 'netifaces>=0.10.5']),
entry_points=("""
Expand All @@ -111,5 +121,5 @@ def patch_install_requires(requires):
tests_require=patch_test_requires(['bottle==0.12.7', 'pep8>=1.3']),
package_data={'dyndnsc/resources': ['dyndnsc/resources/*.ini']},
include_package_data=True,
zip_safe = False
zip_safe=False
)
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Tox (http://tox.testrun.org/)

[tox]
minversion = 1.8
minversion = 2.0
envlist = pypy, py26, py27, py32, py33, py34, py35, py36, docs
skipsdist=True

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -rrequirements.txt
commands = {envpython} setup.py test
coveralls
commands = coverage run --source dyndnsc setup.py test
coveralls

[testenv:docs]
#changedir=docs
basepython=python3.6
whitelist_externals = cd
deps = -rdocs/requirements.txt
Expand Down

0 comments on commit 8225a4b

Please sign in to comment.