From d6b3334edf59078af78904756bba77df1cd7ab2b Mon Sep 17 00:00:00 2001 From: Bradley Date: Wed, 1 Apr 2020 17:35:14 -0700 Subject: [PATCH] cicd --- .circleci/config.yml | 22 +++++++++------------- setup.cfg | 2 +- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 43c9399..3e2be96 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,12 +2,6 @@ version: 2.1 orbs: python: circleci/python@0.2.1 jobs: - skip: - executor: python/default - steps: - - run: - command: | - exit 0 build: executor: python/default steps: @@ -15,22 +9,24 @@ jobs: - python/load-cache - python/install-deps - python/save-cache + - run: + command: | + sed -i "s/TAG/$CIRCLE_TAG/g" setup.cfg + name: Setting version to Git Tag. - run: command: | python setup.py sdist bdist_wheel - name: Build packages + name: Building packages - run: command: | python -m twine upload --repository-url https://upload.pypi.org/legacy/ -u $PYPI_USER -p $PYPI_PASS dist/* - name: Publish to PyPi + name: Publishing to PyPi workflows: main: jobs: - - skip: - filters: - branches: - only: master - build: filters: + branches: + ignore: /.*/ tags: - only: /^[0-9]+(\.[0-9]+)*$/ + only: /^\d+\.\d+\.\d+$/ diff --git a/setup.cfg b/setup.cfg index 316b8d5..4320e3d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = django-kubernetes-manager -version = 0.2.5 +version = TAG description = A Django app to manage kubernetes clusters and objects. long_description = file: README.rst url = https://github.com/IntrospectData/Django-Kubernetes-Manager