Skip to content

Commit

Permalink
Update version and add clean, dist, release to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Richie-Halford committed Jul 18, 2018
1 parent 031ce5b commit dffee6d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,27 @@ devtest:
# Unit testing with the -x option, aborts testing after first failure
# Useful for development when tests are long
py.test -x --pyargs cloudknot --cov-report term-missing --cov=cloudknot

clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts

clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +

clean-pyc: ## remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +

release: dist ## Package and upload a release
twine upload dist/*

dist: clean ## Build source and wheel package
python setup.py sdist
python setup.py bdist_wheel
ls -l dist

8 changes: 4 additions & 4 deletions cloudknot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 4
_version_micro = '' # use '' for first of series, number for 1 and above
_version_extra = 'dev'
# _version_extra = '' # Uncomment this for full releases
_version_minor = 3
_version_micro = 1 # use '' for first of series, number for 1 and above
# _version_extra = 'dev'
_version_extra = '' # Uncomment this for full releases

# Construct full version string from these.
_ver = [_version_major, _version_minor]
Expand Down

0 comments on commit dffee6d

Please sign in to comment.