django-shopify-pricing 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.4
2
+ Name: django_shopify_pricing
3
+ Version: 0.1.0
4
+ Summary: Shopify App Pricing (managed pricing) for Django apps built on django_shopify_app
5
+ Author: Santiago Fernandez
6
+ License-Expression: MIT
7
+ Project-URL: Repository, https://github.com/santiagofep/django-shopify-pricing
8
+ Classifier: Framework :: Django
9
+ Classifier: Framework :: Django :: 5.2
10
+ Classifier: Framework :: Django :: 6.0
11
+ Classifier: Framework :: Django :: 6.1
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: Django<7,>=5.2
21
+ Requires-Dist: django_shopify_app>=2.17.1
22
+
23
+ # django-shopify-pricing
24
+
25
+ Shopify App Pricing for Django apps built on [django_shopify_app](https://pypi.org/project/django_shopify_app/). With App Pricing, plans are set up in the Partner Dashboard, Shopify hosts the plan selection page, and Shopify creates the subscription and runs the trial. This package keeps each shop's subscription in your database so your app can check it.
26
+
27
+ **Status:** in development, not released yet.
28
+
29
+ ## Requirements
30
+
31
+ - Python 3.10+ and Django 5.2 through 6.1
32
+ - django_shopify_app 2.17.1+, with `SHOPIFY_SHOP_MODEL` set
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install django-shopify-pricing
38
+ ```
39
+
40
+ Add the app after `shopify_app` in settings.py, then run `python manage.py migrate`:
41
+
42
+ ```python
43
+ INSTALLED_APPS = [
44
+ # ...
45
+ "shopify_app",
46
+ "shopify_pricing",
47
+ "shops",
48
+ ]
49
+ ```
50
+
51
+ ## Development
52
+
53
+ ```bash
54
+ python -m venv .venv
55
+ .venv/bin/pip install -e . pytest pytest-django
56
+ .venv/bin/pytest
57
+ ```
58
+
59
+ CI runs the suite on Python 3.10 through 3.14 and Django 5.2 through 6.1 (`.github/workflows/tests.yml`).
60
+
61
+ ### Releasing
62
+
63
+ Bump `version` in `pyproject.toml`, add the entry to `CHANGES.txt` and push to `main`. Once the tests pass, `.github/workflows/release.yml` publishes that version to PyPI and tags a GitHub release. A push that keeps the version publishes nothing. PyPI never accepts the same version twice, so a bad release is fixed with a new version.
64
+
65
+ ### Running it in django-shopify-app-base
66
+
67
+ Use a checkout of the base app as the dev app, with this folder in place of the released package. Keep both setups below out of the base app's commits.
68
+
69
+ **Virtualenv:** in the base app's venv, run `pip install -e <path to this repo>`. `pip install -r requirements.txt` puts the pinned version back.
70
+
71
+ **Docker:** create `web/docker-compose.override.yml` in the base app. Compose loads it automatically, and the base app's `.gitignore` excludes it. Adjust the volume path to where this repo is checked out:
72
+
73
+ ```yaml
74
+ services:
75
+ web:
76
+ volumes:
77
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
78
+ environment:
79
+ - PYTHONPATH=/packages/django_shopify_pricing
80
+ celery:
81
+ volumes:
82
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
83
+ environment:
84
+ - PYTHONPATH=/packages/django_shopify_pricing
85
+ ```
86
+
87
+ The package is imported from the mounted folder, not installed, so its dependencies come from the base app's image. `runserver` reloads when the package changes; restart the `celery` service after changing tasks.
@@ -0,0 +1,65 @@
1
+ # django-shopify-pricing
2
+
3
+ Shopify App Pricing for Django apps built on [django_shopify_app](https://pypi.org/project/django_shopify_app/). With App Pricing, plans are set up in the Partner Dashboard, Shopify hosts the plan selection page, and Shopify creates the subscription and runs the trial. This package keeps each shop's subscription in your database so your app can check it.
4
+
5
+ **Status:** in development, not released yet.
6
+
7
+ ## Requirements
8
+
9
+ - Python 3.10+ and Django 5.2 through 6.1
10
+ - django_shopify_app 2.17.1+, with `SHOPIFY_SHOP_MODEL` set
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pip install django-shopify-pricing
16
+ ```
17
+
18
+ Add the app after `shopify_app` in settings.py, then run `python manage.py migrate`:
19
+
20
+ ```python
21
+ INSTALLED_APPS = [
22
+ # ...
23
+ "shopify_app",
24
+ "shopify_pricing",
25
+ "shops",
26
+ ]
27
+ ```
28
+
29
+ ## Development
30
+
31
+ ```bash
32
+ python -m venv .venv
33
+ .venv/bin/pip install -e . pytest pytest-django
34
+ .venv/bin/pytest
35
+ ```
36
+
37
+ CI runs the suite on Python 3.10 through 3.14 and Django 5.2 through 6.1 (`.github/workflows/tests.yml`).
38
+
39
+ ### Releasing
40
+
41
+ Bump `version` in `pyproject.toml`, add the entry to `CHANGES.txt` and push to `main`. Once the tests pass, `.github/workflows/release.yml` publishes that version to PyPI and tags a GitHub release. A push that keeps the version publishes nothing. PyPI never accepts the same version twice, so a bad release is fixed with a new version.
42
+
43
+ ### Running it in django-shopify-app-base
44
+
45
+ Use a checkout of the base app as the dev app, with this folder in place of the released package. Keep both setups below out of the base app's commits.
46
+
47
+ **Virtualenv:** in the base app's venv, run `pip install -e <path to this repo>`. `pip install -r requirements.txt` puts the pinned version back.
48
+
49
+ **Docker:** create `web/docker-compose.override.yml` in the base app. Compose loads it automatically, and the base app's `.gitignore` excludes it. Adjust the volume path to where this repo is checked out:
50
+
51
+ ```yaml
52
+ services:
53
+ web:
54
+ volumes:
55
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
56
+ environment:
57
+ - PYTHONPATH=/packages/django_shopify_pricing
58
+ celery:
59
+ volumes:
60
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
61
+ environment:
62
+ - PYTHONPATH=/packages/django_shopify_pricing
63
+ ```
64
+
65
+ The package is imported from the mounted folder, not installed, so its dependencies come from the base app's image. `runserver` reloads when the package changes; restart the `celery` service after changing tasks.
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.4
2
+ Name: django_shopify_pricing
3
+ Version: 0.1.0
4
+ Summary: Shopify App Pricing (managed pricing) for Django apps built on django_shopify_app
5
+ Author: Santiago Fernandez
6
+ License-Expression: MIT
7
+ Project-URL: Repository, https://github.com/santiagofep/django-shopify-pricing
8
+ Classifier: Framework :: Django
9
+ Classifier: Framework :: Django :: 5.2
10
+ Classifier: Framework :: Django :: 6.0
11
+ Classifier: Framework :: Django :: 6.1
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: Django<7,>=5.2
21
+ Requires-Dist: django_shopify_app>=2.17.1
22
+
23
+ # django-shopify-pricing
24
+
25
+ Shopify App Pricing for Django apps built on [django_shopify_app](https://pypi.org/project/django_shopify_app/). With App Pricing, plans are set up in the Partner Dashboard, Shopify hosts the plan selection page, and Shopify creates the subscription and runs the trial. This package keeps each shop's subscription in your database so your app can check it.
26
+
27
+ **Status:** in development, not released yet.
28
+
29
+ ## Requirements
30
+
31
+ - Python 3.10+ and Django 5.2 through 6.1
32
+ - django_shopify_app 2.17.1+, with `SHOPIFY_SHOP_MODEL` set
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install django-shopify-pricing
38
+ ```
39
+
40
+ Add the app after `shopify_app` in settings.py, then run `python manage.py migrate`:
41
+
42
+ ```python
43
+ INSTALLED_APPS = [
44
+ # ...
45
+ "shopify_app",
46
+ "shopify_pricing",
47
+ "shops",
48
+ ]
49
+ ```
50
+
51
+ ## Development
52
+
53
+ ```bash
54
+ python -m venv .venv
55
+ .venv/bin/pip install -e . pytest pytest-django
56
+ .venv/bin/pytest
57
+ ```
58
+
59
+ CI runs the suite on Python 3.10 through 3.14 and Django 5.2 through 6.1 (`.github/workflows/tests.yml`).
60
+
61
+ ### Releasing
62
+
63
+ Bump `version` in `pyproject.toml`, add the entry to `CHANGES.txt` and push to `main`. Once the tests pass, `.github/workflows/release.yml` publishes that version to PyPI and tags a GitHub release. A push that keeps the version publishes nothing. PyPI never accepts the same version twice, so a bad release is fixed with a new version.
64
+
65
+ ### Running it in django-shopify-app-base
66
+
67
+ Use a checkout of the base app as the dev app, with this folder in place of the released package. Keep both setups below out of the base app's commits.
68
+
69
+ **Virtualenv:** in the base app's venv, run `pip install -e <path to this repo>`. `pip install -r requirements.txt` puts the pinned version back.
70
+
71
+ **Docker:** create `web/docker-compose.override.yml` in the base app. Compose loads it automatically, and the base app's `.gitignore` excludes it. Adjust the volume path to where this repo is checked out:
72
+
73
+ ```yaml
74
+ services:
75
+ web:
76
+ volumes:
77
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
78
+ environment:
79
+ - PYTHONPATH=/packages/django_shopify_pricing
80
+ celery:
81
+ volumes:
82
+ - ../../../packages/django_shopify_pricing:/packages/django_shopify_pricing
83
+ environment:
84
+ - PYTHONPATH=/packages/django_shopify_pricing
85
+ ```
86
+
87
+ The package is imported from the mounted folder, not installed, so its dependencies come from the base app's image. `runserver` reloads when the package changes; restart the `celery` service after changing tasks.
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ django_shopify_pricing.egg-info/PKG-INFO
4
+ django_shopify_pricing.egg-info/SOURCES.txt
5
+ django_shopify_pricing.egg-info/dependency_links.txt
6
+ django_shopify_pricing.egg-info/requires.txt
7
+ django_shopify_pricing.egg-info/top_level.txt
8
+ shopify_pricing/__init__.py
9
+ shopify_pricing/apps.py
10
+ shopify_pricing/migrations/__init__.py
11
+ tests/test_app.py
@@ -0,0 +1,2 @@
1
+ Django<7,>=5.2
2
+ django_shopify_app>=2.17.1
@@ -0,0 +1,46 @@
1
+ [build-system]
2
+ # 77 is the first setuptools that reads `license` as an SPDX string (PEP 639).
3
+ requires = ["setuptools>=77", "wheel"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "django_shopify_pricing"
8
+ version = "0.1.0"
9
+ description = "Shopify App Pricing (managed pricing) for Django apps built on django_shopify_app"
10
+ readme = "README.md"
11
+ license = "MIT"
12
+ authors = [
13
+ { name = "Santiago Fernandez" },
14
+ ]
15
+ requires-python = ">=3.10"
16
+ # Django range and Python floor follow django_shopify_app, so any app that runs it can
17
+ # add this package. Raise the Django cap once .github/workflows/tests.yml covers it.
18
+ dependencies = [
19
+ "Django>=5.2,<7",
20
+ "django_shopify_app>=2.17.1",
21
+ ]
22
+ classifiers = [
23
+ "Framework :: Django",
24
+ "Framework :: Django :: 5.2",
25
+ "Framework :: Django :: 6.0",
26
+ "Framework :: Django :: 6.1",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.10",
29
+ "Programming Language :: Python :: 3.11",
30
+ "Programming Language :: Python :: 3.12",
31
+ "Programming Language :: Python :: 3.13",
32
+ "Programming Language :: Python :: 3.14",
33
+ ]
34
+
35
+ [project.urls]
36
+ Repository = "https://github.com/santiagofep/django-shopify-pricing"
37
+
38
+ [tool.setuptools.packages.find]
39
+ include = ["shopify_pricing*"]
40
+
41
+ [tool.pytest.ini_options]
42
+ DJANGO_SETTINGS_MODULE = "tests.settings"
43
+ # The tests package lives at the repo root; the console-script `pytest` does not
44
+ # put the working directory on sys.path (only `python -m pytest` does).
45
+ pythonpath = ["."]
46
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,9 @@
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class ShopifyPricingConfig(AppConfig):
5
+ """Django app for Shopify App Pricing subscriptions."""
6
+
7
+ default_auto_field = "django.db.models.BigAutoField"
8
+ name = "shopify_pricing"
9
+ verbose_name = "Shopify pricing"
@@ -0,0 +1,18 @@
1
+ from django.core.management import call_command
2
+
3
+
4
+ def test_system_checks_pass(db: None) -> None:
5
+ """The package passes Django's system checks next to django_shopify_app.
6
+
7
+ Uses the database because JSONField's check asks SQLite whether it supports JSON.
8
+ """
9
+ call_command("check", fail_level="WARNING")
10
+
11
+
12
+ def test_migrations_match_models(db: None) -> None:
13
+ """Every model change has a migration.
14
+
15
+ Migrations that point at SHOPIFY_SHOP_MODEL are edited by hand, so this catches
16
+ an edit that no longer matches the models.
17
+ """
18
+ call_command("makemigrations", "shopify_pricing", "--check", "--dry-run")