shipit-cli 0.17.6__tar.gz → 0.17.7__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.
Files changed (41) hide show
  1. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/PKG-INFO +18 -1
  2. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/README.md +17 -0
  3. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/pyproject.toml +1 -1
  4. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/assets/php/php.ini +1 -1
  5. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/assets/wordpress/install.sh +7 -0
  6. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/runners/wasmer.py +18 -18
  7. shipit_cli-0.17.7/src/shipit/version.py +5 -0
  8. shipit_cli-0.17.6/src/shipit/version.py +0 -5
  9. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/.gitignore +0 -0
  10. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/__init__.py +0 -0
  11. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/assets/wordpress/.htaccess +0 -0
  12. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/assets/wordpress/start.sh +0 -0
  13. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/assets/wordpress/wp-config.php +0 -0
  14. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/builders/__init__.py +0 -0
  15. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/builders/base.py +0 -0
  16. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/builders/docker.py +0 -0
  17. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/builders/local.py +0 -0
  18. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/cli.py +0 -0
  19. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/generator.py +0 -0
  20. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/procfile.py +0 -0
  21. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/base.py +0 -0
  22. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/go.py +0 -0
  23. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/hugo.py +0 -0
  24. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/jekyll.py +0 -0
  25. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/laravel.py +0 -0
  26. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/mkdocs.py +0 -0
  27. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/node_static.py +0 -0
  28. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/php.py +0 -0
  29. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/python.py +0 -0
  30. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/registry.py +0 -0
  31. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/staticfile.py +0 -0
  32. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/providers/wordpress.py +0 -0
  33. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/runners/__init__.py +0 -0
  34. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/runners/base.py +0 -0
  35. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/runners/local.py +0 -0
  36. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/shipit_types.py +0 -0
  37. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/ui.py +0 -0
  38. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/src/shipit/utils.py +0 -0
  39. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/tests/test_e2e.py +0 -0
  40. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/tests/test_generate_shipit_examples.py +0 -0
  41. {shipit_cli-0.17.6 → shipit_cli-0.17.7}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shipit-cli
3
- Version: 0.17.6
3
+ Version: 0.17.7
4
4
  Summary: Shipit CLI is the best way to build, serve and deploy your projects anywhere.
5
5
  Project-URL: homepage, https://wasmer.io
6
6
  Project-URL: repository, https://github.com/wasmerio/shipit
@@ -133,3 +133,20 @@ The e2e tests will:
133
133
  * Build the project (locally, or with docker)
134
134
  * Run the project (locally or with Wasmer)
135
135
  * Test that the project output (via http requests) is the correct one
136
+
137
+ ### Automatic PyPI Publish
138
+
139
+ Publishing to PyPI is automated with GitHub Actions on version tags.
140
+
141
+ Requirements:
142
+
143
+ * Add a repository secret named `PYPI_API_TOKEN` with a PyPI API token.
144
+ * Push tags using the `vX.Y.Z` format (for example: `v0.17.5`).
145
+
146
+ On each `v*` tag push, the workflow:
147
+
148
+ * Runs regular test and e2e workflows.
149
+ * Validates that the tag version without the leading `v` matches:
150
+ * `project.version` in `pyproject.toml`
151
+ * `version` in `src/shipit/version.py`
152
+ * Builds the package and publishes to PyPI only if all checks pass.
@@ -110,3 +110,20 @@ The e2e tests will:
110
110
  * Build the project (locally, or with docker)
111
111
  * Run the project (locally or with Wasmer)
112
112
  * Test that the project output (via http requests) is the correct one
113
+
114
+ ### Automatic PyPI Publish
115
+
116
+ Publishing to PyPI is automated with GitHub Actions on version tags.
117
+
118
+ Requirements:
119
+
120
+ * Add a repository secret named `PYPI_API_TOKEN` with a PyPI API token.
121
+ * Push tags using the `vX.Y.Z` format (for example: `v0.17.5`).
122
+
123
+ On each `v*` tag push, the workflow:
124
+
125
+ * Runs regular test and e2e workflows.
126
+ * Validates that the tag version without the leading `v` matches:
127
+ * `project.version` in `pyproject.toml`
128
+ * `version` in `src/shipit/version.py`
129
+ * Builds the package and publishes to PyPI only if all checks pass.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "shipit-cli"
3
- version = "0.17.6"
3
+ version = "0.17.7"
4
4
  description = "Shipit CLI is the best way to build, serve and deploy your projects anywhere."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -17,7 +17,7 @@ zend.exception_string_param_max_len = 0
17
17
  expose_php = On
18
18
  max_execution_time = 300
19
19
  max_input_time = 300
20
- memory_limit = 256M
20
+ memory_limit = 512M
21
21
  error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
22
22
  display_errors = Off
23
23
  display_startup_errors = Off
@@ -100,4 +100,11 @@ if [ -n "${WP_LOCALE:-}" ]; then
100
100
  wp site switch-language "$WP_LOCALE"
101
101
  fi
102
102
 
103
+ cat > /app/wp-content/wp-config.php <<EOF
104
+ <?php
105
+ // If you need to set custom configuration, you can place it here.
106
+ // This file will be included by the main wp-config.php after
107
+ // loading environment variables.
108
+ EOF
109
+
103
110
  echo "✅ WordPress Installation complete"
@@ -105,26 +105,26 @@ class WasmerRunner:
105
105
  },
106
106
  "phpix": {
107
107
  "dependencies": {
108
- "latest": "wasmer/phpix-32@=0.1.1080321-alpha.4",
109
- "8.3": "wasmer/phpix-32@=0.1.1080321-alpha.4",
110
- "8.2": "wasmer/phpix-32@=0.1.1080321-alpha.4",
111
- "8.1": "wasmer/phpix-32@=0.1.1080321-alpha.4",
112
- "7.4": "wasmer/phpix-32@=0.1.1080321-alpha.4",
108
+ "latest": "wasmer/phpix-32@=0.1.1080321-alpha.6",
109
+ "8.3": "wasmer/phpix-32@=0.1.1080321-alpha.6",
110
+ "8.2": "wasmer/phpix-32@=0.1.1080321-alpha.6",
111
+ "8.1": "wasmer/phpix-32@=0.1.1080321-alpha.6",
112
+ "7.4": "wasmer/phpix-32@=0.1.1080321-alpha.6",
113
113
  },
114
114
  "architecture_dependencies": {
115
115
  "64-bit": {
116
- "latest": "wasmer/phpix-64@=0.1.1080321-alpha.4",
117
- "8.3": "wasmer/phpix-64@=0.1.1080321-alpha.4",
118
- "8.2": "wasmer/phpix-64@=0.1.1080321-alpha.4",
119
- "8.1": "wasmer/phpix-64@=0.1.1080321-alpha.4",
120
- "7.4": "wasmer/phpix-64@=0.1.1080321-alpha.4",
116
+ "latest": "wasmer/phpix-64@=0.1.1080321-alpha.6",
117
+ "8.3": "wasmer/phpix-64@=0.1.1080321-alpha.6",
118
+ "8.2": "wasmer/phpix-64@=0.1.1080321-alpha.6",
119
+ "8.1": "wasmer/phpix-64@=0.1.1080321-alpha.6",
120
+ "7.4": "wasmer/phpix-64@=0.1.1080321-alpha.6",
121
121
  },
122
122
  "32-bit": {
123
- "latest": "wasmer/phpix-32@=0.1.1080321-alpha.4",
124
- "8.3": "wasmer/phpix-32@=0.1.1080321-alpha.4",
125
- "8.2": "wasmer/phpix-32@=0.1.1080321-alpha.4",
126
- "8.1": "wasmer/phpix-32@=0.1.1080321-alpha.4",
127
- "7.4": "wasmer/phpix-32@=0.1.1080321-alpha.4",
123
+ "latest": "wasmer/phpix-32@=0.1.1080321-alpha.6",
124
+ "8.3": "wasmer/phpix-32@=0.1.1080321-alpha.6",
125
+ "8.2": "wasmer/phpix-32@=0.1.1080321-alpha.6",
126
+ "8.1": "wasmer/phpix-32@=0.1.1080321-alpha.6",
127
+ "7.4": "wasmer/phpix-32@=0.1.1080321-alpha.6",
128
128
  },
129
129
  },
130
130
  "scripts": {"php", "phpix"},
@@ -484,18 +484,18 @@ class WasmerRunner:
484
484
  is_built_with_go = any(dep.name in ["go", "go-wasix"] for dep in build_deps)
485
485
 
486
486
  # Note: phpix is multi-threaded, so this is only needed for raw php server and go.
487
- if has_php or is_built_with_go:
487
+ if (has_php and not has_phpix) or is_built_with_go:
488
488
  scaling = yaml_config.get("scaling", {})
489
489
  assert isinstance(scaling, dict), "scaling must be a dictionary"
490
490
  scaling["mode"] = "single_concurrency"
491
491
  yaml_config["scaling"] = scaling
492
-
492
+
493
493
  if has_phpix:
494
494
  capabilities = yaml_config.get("capabilities", {})
495
495
  assert isinstance(capabilities, dict), "capabilities must be a dictionary"
496
496
  memory = capabilities.get("memory", {})
497
497
  assert isinstance(memory, dict), "memory must be a dictionary"
498
- memory["limit"] = "2G"
498
+ memory["limit"] = "2Gb"
499
499
  yaml_config["capabilities"] = capabilities
500
500
 
501
501
  if "after_deploy" in serve.commands:
@@ -0,0 +1,5 @@
1
+ __all__ = ["version", "version_info"]
2
+
3
+
4
+ version = "0.17.7"
5
+ version_info = (0, 17, 7, "final", 0)
@@ -1,5 +0,0 @@
1
- __all__ = ["version", "version_info"]
2
-
3
-
4
- version = "0.17.6"
5
- version_info = (0, 17, 6, "final", 0)
File without changes