Skip to main content

GitHub Marketplace integration for Kiwi TCMS

Project description

https://travis-ci.org/kiwitcms/github-marketplace.svg?branch=master https://coveralls.io/repos/github/kiwitcms/github-marketplace/badge.svg?branch=master Python updates Tidelift Become a sponsor Kiwi TCMS on Twitter

Introduction

This package provides the GitHub Marketplace integration for the Kiwi TCMS multi-tenant SaaS. Everyting that we do is open and that’s why this piece of code is open source as well. You don’t need this add-on in order to run Kiwi TCMS!

Installation and configuration

pip install kiwitcms-github-marketplace

Then make sure KIWI_GITHUB_MARKETPLACE_SECRET and KIWI_FASTSPRING_SECRET settings are configured as binary strings, e.g. b'secret'.

Changelog

v1.3.2 (26 Dec 2020)

  • Don’t fail when cancelling GitHub FREE subscriptions for senders which don’t exist

v1.3.1 (09 Dec 2020)

  • Fix traceback when trying to create tenant and user is not logged in

v1.3 (13 Sep 2020)

  • Tested with Kiwi TCMS > 8.6

  • Refactor deprecation warnings with Django 3.1

  • Start using the new standard models.JSONField()

  • Remove tcms_settings_dir/marketplace.py b/c settings.PUBLIC_VIEWS has been removed

v1.2 (06 Aug 2020)

  • Require kiwitcms-tenants>=1.1

  • Subscribe button is now a drop-down listing all platforms oferring a Private Tenant subscription

v1.1 (24 Apr 2020)

  • Bug fix: display form errors when creating new tenant

  • Update template strings

v1.0 (17 Mar 2020)

  • Turn into proper Kiwi TCMS plugin and install settings overrides under tcms_settings_dir/ (compatible with Kiwi TCMS v8.2 or later):

    • does not need MENU_ITEMS and PUBLIC_VIEWS override anymore

    • does not need to load tcms_github_marketplace in INSTALLED_APPS manually

  • Jump over tcms_tenants.views.NewTenantView b/c it requires tcms_tenants.add_tenant permission and here we don’t need that

  • Exclude public tenant from recurring purchase hooks

  • Do not attempt delete for superuser cancelling their tenant purchases

v0.8.1 (15 Jan 2020)

  • Replace ugettext_lazy with gettext_lazy for Django 3.0

v0.8 (07 Jan 2020)

  • Compatible with PyGithub v1.45+ which will be used in the upcoming Kiwi TCMS v7.3

v0.7.4 (08 Dec 2019)

  • utils.verify_signature() moved to tcms.utils.github as of Kiwi TCMS v7.2

  • flake8 & pylint fixes

v0.7.3 (02 Nov 2019)

  • Fix a bug in reading pricing info when renewing subscriptions via FastSpring

v0.7.2 (29 May 2019)

  • Show vendor specific cancel URL

  • Don’t crash when revoking GitHub tokens

  • Update subscription link via FastSpring

v0.7.1 (25 May 2019)

  • Handle purchases from FastSpring

  • Purchase.sender is now an EmailField

v0.6.0 (16 May 2019)

  • Handle purchases for organizations

  • Do no use next_billing_date and use effective_date when calculating paid_until

v0.5.1 (16 May 2019)

  • Use the new delete_user() function when cancelling subscriptions

  • Extend UI card in subscription page to 6 columns b/c long URL

v0.5.0 (15 May 2019)

  • Handle recurring purchases

  • Don’t crash if visiting Create Tenant without a purchase

  • Show tenants which user can access and which they own

  • Show purchase history with Buy/Cancel buttons

  • Use prism.js for syntax highlighting

  • Add translation files

v0.4.1 (08 May 2019)

  • Don’t crash if install URL is visited without purchase

  • Add Purchase admin, accessible only to superuser

  • [db] Rename marketplace_purchase field to payload and add vendor field to Purchase model

  • Add a view which overrides tenant creation with information from the latest purchase. This is what users will see when creating their private tenants

  • When creating Private Tenant try to correctly set paid_until date based on next_billing_date or billing_cycle fields in the payload sent to us by GitHub

v0.3.1 (03 May 2019)

  • Fix index name in models to be the same as in migrations

v0.3.0 (27 April 2019)

  • Handle Marketplace plan cancellations

v0.2.1 (27 April 2019)

  • Refactor how hooks and installation is handled. Now purchase info is stored in database and we search for it during installation

  • Introduces database migrations

  • Free plan purchases from Marketplace still redirect to Public Tenant

v0.1.1 (25 April 2019)

  • Handle GitHub hook pings

v0.1.0 (24 April 2019) - initial release

  • Free plan purchases from Marketplace redirect to Public Tenant

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiwitcms-github-marketplace-1.3.2.tar.gz (28.4 kB view hashes)

Uploaded Source

Built Distribution

kiwitcms_github_marketplace-1.3.2-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page