Skip to content

Commit

Permalink
Add build tools and script
Browse files Browse the repository at this point in the history
  • Loading branch information
eblade committed Nov 5, 2019
1 parent b78c491 commit 0c8b678
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pytest = "*"
pytest-flakes = "*"
rstcheck = "*"
pytest-cov = "*"
setuptools = "*"
wheel = "*"
twine = "*"

[packages]

Expand Down
17 changes: 17 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

if [ -d dist ]; then
rm -rf dist
fi
if [ -d build ]; then
rm -rf build
fi
if [ -d lindh_jsonobjecy.egg-info ]; then
rm -rf lindh_jsonobjecy.egg-info
fi

pipenv update --dev setuptools wheel twine
pipenv run python setup.py sdist bdist_wheel
pipenv run python -m twine upload dist/*

0 comments on commit 0c8b678

Please sign in to comment.