Skip to content

Commit

Permalink
automatically set package version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
glorpen committed Mar 3, 2020
1 parent 7dad3e1 commit 71ede26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ install:
- pip install -e . codecov coverage

script:
- test -n "$TRAVIS_TAG" && sed -e "s/development/${TRAVIS_TAG/v}/g" -i src/glorpen/config/__init__.py || true
- coverage run -m unittest discover -s src/glorpen/config/tests -t src/ -p '*.py'
- codecov

Expand All @@ -22,3 +23,4 @@ deploy:
branch: master
python: '3.7'
distributions: "sdist bdist_wheel"
skip_cleanup: true
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
author = "Arkadiusz Dzięgiel",
author_email = "arkadiusz.dziegiel@glorpen.pl",
description = "Loads, validates and normalizes configuration.",
tests_require = ["mock"] if sys.hexversion < 0x03030000 else [],
tests_require = [],
url = "https://github.com/glorpen/glorpen-config",
license = "GPLv3+",
long_description= long_description,
long_description = long_description,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion src/glorpen/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from glorpen.config.translators.base import Translator, Help
from glorpen.config.config import Config

__version__ = "3.0.0"
__version__ = "development"

0 comments on commit 71ede26

Please sign in to comment.