Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Auto-bump and auto-publish (#25)
Browse files Browse the repository at this point in the history
* publish python package

* setuptools-scm

* publish on tag
  • Loading branch information
normanrz authored Jul 22, 2019
1 parent 43887bb commit 10931db
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,27 @@ jobs:
mkdir -p testoutput
pipenv run pytest tests
- run:
name: Publish python package
command: |
if [ -n "$CIRCLE_TAG" ]; then
echo "[distutils]" >> ~/.pypirc
echo "index-servers = pypi" >> ~/.pypirc
echo "[pypi]" >> ~/.pypirc
echo "repository=https://upload.pypi.org/legacy/" >> ~/.pypirc
echo "username=$PYPI_USERNAME" >> ~/.pypirc
echo "password=$PYPI_PASSWORD" >> ~/.pypirc
python setup.py sdist upload
else
echo "Skipping publishing on non-tag"
fi
workflows:
version: 2
default:
jobs:
- build_test
- build_test:
filters:
tags:
only: /.*/
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
setup(
name="wknml",
packages=find_packages(exclude=("tests",)),
version="0.0.6",
use_scm_version=True,
setup_requires=['setuptools_scm'],
install_requires=["loxun"],
description="An NML library for webKnossos",
author="Norman Rzepka",
Expand Down

0 comments on commit 10931db

Please sign in to comment.