Skip to content

Commit

Permalink
Prepare release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 3, 2019
1 parent e9b7167 commit 9c1470f
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.7.0
files = setup.py dwdweather/__init__.py
commit = True
tag = True
tag_name = {new_version}
allow_dirty = True

3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ dwdweather changelog

in progress
===========

2019-06-03 0.8.0
================
- This and that: Fix console script entrypoint. Improve imports, debugging and inline comments.
- Adapt to changes on upstream server ftp-cdc.dwd.de
- Add ``--reset-cache`` option for dropping the cache database before performing any work
Expand Down
52 changes: 52 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# ============
# Main targets
# ============


# -------------
# Configuration
# -------------

$(eval venvpath := .venv_util)
$(eval pip := $(venvpath)/bin/pip)
$(eval python := $(venvpath)/bin/python)
$(eval pytest := $(venvpath)/bin/pytest)
$(eval bumpversion := $(venvpath)/bin/bumpversion)
$(eval twine := $(venvpath)/bin/twine)
$(eval sphinx := $(venvpath)/bin/sphinx-build)

# Setup Python virtualenv
setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python2 --no-site-packages $(venvpath)


# -------
# Release
# -------

# Release this piece of software
# Synopsis:
# make release bump=minor (major,minor,patch)
release: bumpversion push sdist pypi-upload


# ===============
# Utility targets
# ===============
bumpversion: install-releasetools
@$(bumpversion) $(bump)

push:
git push && git push --tags

sdist:
@$(python) setup.py sdist

pypi-upload: install-releasetools
twine upload --skip-existing --verbose dist/*.tar.gz

install-doctools: setup-virtualenv
@$(pip) install --quiet --requirement requirements-docs.txt --upgrade

install-releasetools: setup-virtualenv
@$(pip) install --quiet --requirement requirements-release.txt --upgrade
2 changes: 1 addition & 1 deletion dwdweather/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""dwdweather2: Python client to access weather data from Deutscher Wetterdienst (DWD)."""
__appname__ = 'dwdweather2'
__version__ = '0.8.0dev1'
__version__ = '0.7.0'

from .core import DwdWeather
3 changes: 3 additions & 0 deletions requirements-release.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bump2version==0.5.10
twine==1.12.1
keyring==17.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
README = open(os.path.join(here, 'README.rst')).read()

setup(name='dwdweather2',
version='0.8.0dev1',
version='0.7.0',
description='Python client to access weather data from Deutscher Wetterdienst (DWD), '
'the federal meteorological service in Germany.',
long_description=README,
Expand Down

0 comments on commit 9c1470f

Please sign in to comment.