From 67d3fc2f892b9f4166abaf2438afe4b805f70670 Mon Sep 17 00:00:00 2001 From: Gorka Guridi Date: Mon, 7 Sep 2020 21:16:56 +0100 Subject: [PATCH] =?UTF-8?q?Setting=20releases=20to=20create=20packages=20i?= =?UTF-8?q?n=20pypi.org=20so=20we=20can=20productioni=E2=80=A6=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Setting releases to create packages in pypi.org so we can productionise the code. Adding badges of different integrations. --- .github/workflows/release.yml | 4 ++-- README.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2001fd..6b92ad3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,9 +38,9 @@ jobs: run: pip install setuptools wheel twine - name: Build and publish env: - TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/ + TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/ TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | python setup.py clean sdist bdist_wheel twine upload dist/* diff --git a/README.md b/README.md index 647f10c..faa47f7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,19 @@ # iab-tcf +[![Build Status](https://travis-ci.org/gguridi/iab-tcf.svg?branch=master)](https://travis-ci.org/gguridi/iab-tcf) +[![codecov](https://codecov.io/gh/gguridi/iab-tcf/branch/master/graph/badge.svg)](https://codecov.io/gh/gguridi/iab-tcf) +![Releasing](https://github.com/gguridi/iab-tcf/workflows/Releasing/badge.svg) + A Python implementation of the IAB consent strings (v1.1 and v2) +# Installing + +Install and update using pip: + +```bash +pip install -U iab-tcf +``` + # A Simple Example In order to decode a v1.1 or v2 consent string automatically we can do: