Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version handling in source and travis deployments #683

Merged
merged 2 commits into from Oct 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -4,6 +4,8 @@ python: "3.7"
before_install:
- pip install poetry
install:
# we run `poetry version` here to appease poetry about '0.0.0-source'
- poetry version
- poetry install
script:
- poetry run python --version
Expand All @@ -12,10 +14,10 @@ before_deploy:
- pip install poetry
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry version $TRAVIS_TAG
- poetry build
- make build
deploy:
provider: script
script: poetry publish
script: make release
skip_cleanup: true
draft: true
on:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -26,10 +26,10 @@ lint: ## check style with flake8
test: ## Run behave tests
poetry run behave

dist: clean ## builds source and wheel package
build:
poetry build

release: dist ## package and upload a release
release:
poetry publish
poetry run mkdocs gh-deploy

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jrnl"
version = "2.1"
version = "0.0.0-source"
description = "Collect your thoughts and notes without leaving the command line."
authors = [
"Manuel Ebert <manuel@1450.me>",
Expand Down