-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters