Skip to content

Commit

Permalink
Fix Error Handling for Tags (#126)
Browse files Browse the repository at this point in the history
* Improve makefile for dev purposes

* Improve Error Handling of Tags

* Create test json file with null tags value

* Linting

* Remove VERSION hack

Scraping version number is broken. TODO.
  • Loading branch information
brandongalbraith authored Jul 2, 2020
1 parent a81e424 commit 7cb3b60
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@ VERSION=$(shell grep -m1 version setup.py | cut -d\' -f2)
binary:
pex . --python=python3 --python-shebang='/usr/bin/env python3' -e tubeup.__main__:main -o tubeup-$(VERSION)-py2.py3-none-any.pex

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +

publish:
git tag -a v$(VERSION) -m 'version $(VERSION)'
git push --tags
python setup.py register
python setup.py sdist upload

test: clean-pyc
pytest --cov
Loading

0 comments on commit 7cb3b60

Please sign in to comment.