shipit-cli 0.13.2__py3-none-any.whl → 0.13.3__py3-none-any.whl

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.
@@ -92,4 +92,12 @@ if [ -n "${WP_DEFAULT_THEME:-}" ]; then
92
92
  wp theme activate "$WP_DEFAULT_THEME"
93
93
  fi
94
94
 
95
+ if [ -n "${WP_LOCALE:-}" ]; then
96
+ echo "Setting locale: $WP_LOCALE"
97
+ wp language install "$WP_LOCALE"
98
+ wp language theme install --all "$WP_LOCALE"
99
+ wp language plugin install --all "$WP_LOCALE"
100
+ wp site switch-language "$WP_LOCALE"
101
+ fi
102
+
95
103
  echo "✅ WordPress Installation complete"
@@ -12,7 +12,6 @@ from .base import (
12
12
  DetectResult,
13
13
  DependencySpec,
14
14
  Provider,
15
- _exists,
16
15
  MountSpec,
17
16
  ServiceSpec,
18
17
  VolumeSpec,
@@ -119,10 +118,10 @@ class NodeStaticProvider(StaticFileProvider):
119
118
  package_manager: PackageManager
120
119
  package_json: Optional[Dict[str, Any]]
121
120
  extra_dependencies: Set[str]
121
+ static_generator: Optional[StaticGenerator] = None
122
122
 
123
123
  def __init__(self, path: Path, custom_commands: CustomCommands):
124
124
  super().__init__(path, custom_commands)
125
- self.static_generator: Optional[StaticGenerator] = None
126
125
  if (path / "package-lock.json").exists():
127
126
  self.package_manager = PackageManager.NPM
128
127
  elif (path / "pnpm-lock.yaml").exists():
shipit/version.py CHANGED
@@ -1,5 +1,5 @@
1
1
  __all__ = ["version", "version_info"]
2
2
 
3
3
 
4
- version = "0.13.2"
5
- version_info = (0, 13, 2, "final", 0)
4
+ version = "0.13.3"
5
+ version_info = (0, 13, 3, "final", 0)
@@ -0,0 +1,131 @@
1
+ Metadata-Version: 2.4
2
+ Name: shipit-cli
3
+ Version: 0.13.3
4
+ Summary: Shipit CLI is the best way to build, serve and deploy your projects anywhere.
5
+ Project-URL: homepage, https://wasmer.io
6
+ Project-URL: repository, https://github.com/wasmerio/shipit
7
+ Project-URL: Changelog, https://github.com/wasmerio/shipit/changelog
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: dotenv>=0.9.9
10
+ Requires-Dist: pyyaml>=6.0.2
11
+ Requires-Dist: requests>=2.32.5
12
+ Requires-Dist: rich>=14.1.0
13
+ Requires-Dist: semantic-version>=2.10.0
14
+ Requires-Dist: sh>=2.2.2
15
+ Requires-Dist: starlark-pyo3>=2025.1
16
+ Requires-Dist: tomlkit>=0.13.3
17
+ Requires-Dist: typer>=0.16.1
18
+ Description-Content-Type: text/markdown
19
+
20
+ # Shipit
21
+
22
+ Shipit is a CLI that automatically detects the type of project you are trying to run, builds it and runs it using [Starlark](https://starlark-lang.org/) definition files (called `Shipit`).
23
+
24
+ It can run builds locally, inside Docker, or through Wasmer, and bundles a one-command experience for common frameworks.
25
+
26
+ ## Quick Start
27
+
28
+ To use shipit, you'll need to have [uv](https://docs.astral.sh/uv/) installed.
29
+
30
+ Install nothing globally; use `uvx shipit-cli` to run Shipit from anywhere.
31
+
32
+ ```bash
33
+ uvx shipit-cli .
34
+ ```
35
+
36
+ Running in `auto` mode will generate the `Shipit` file when needed, build the project, and can
37
+ also serve it. Shipit picks the safest builder automatically and falls back to
38
+ Docker or Wasmer when requested:
39
+
40
+ - `uvx shipit-cli . --wasmer` builds locally and serves inside Wasmer.
41
+ - `uvx shipit-cli . --docker` builds it with Docker (you can customize the docker client as well, eg: `--docker-client depot`).
42
+ - `uvx shipit-cli . --start` launches the app after building.
43
+
44
+ You can combine them as needed:
45
+
46
+ ```
47
+ uvx shipit-cli . --start --wasmer --skip-prepare
48
+ ```
49
+
50
+ ## Commands
51
+
52
+ ### Default `auto` mode
53
+
54
+ Full pipeline in one command. Combine flags such as `--regenerate` to rewrite
55
+ the `Shipit` file. Use
56
+ `--wasmer` to run with Wasmer, or `--wasmer-deploy` to deploy to Wasmer Edge.
57
+
58
+ ### `generate`
59
+
60
+ ```bash
61
+ uvx shipit-cli generate .
62
+ ```
63
+
64
+ Create or refresh the `Shipit` file. Override build and run commands with
65
+ `--install-command`, `--build-command`, or `--start-command`. Pick a exlicit provider
66
+ with `--use-provider`.
67
+
68
+ ### `plan`
69
+
70
+ ```bash
71
+ uvx shipit-cli plan --out plan.json
72
+ ```
73
+
74
+ Evaluate the project and emit metadata, derived commands, and required
75
+ services without building. Helpful for CI checks or debugging configuration.
76
+
77
+ ### `build`
78
+
79
+ ```bash
80
+ uvx shipit-cli build
81
+ ```
82
+
83
+ Run the build steps defined in `Shipit`. Append `--wasmer` to execute inside
84
+ Wasmer, `--docker` to use Docker builds.
85
+
86
+ ### `serve`
87
+
88
+ ```bash
89
+ uvx shipit-cli serve
90
+ ```
91
+
92
+ Execute the start command for the project. Combine with `--wasmer` for WebAssembly execution, or `--wasmer-deploy` to deploy to Wasmer Edge.
93
+
94
+ ## Supported Technologies
95
+
96
+ Shipit works with three execution environments:
97
+
98
+ - Local builder for fast, host-native builds.
99
+ - Docker builder when container isolation is required.
100
+ - Wasmer runner for portable WebAssembly packaging and deployment.
101
+
102
+ ## Development
103
+
104
+ Clone the repository and use the `uv` project environment.
105
+
106
+ ```bash
107
+ uv run shipit . --start
108
+ ```
109
+
110
+ Use any other subcommand during development by prefixing with `uv run shipit`,
111
+ for example `uv run shipit build . --wasmer`. This keeps changes local while
112
+ matching the published CLI behaviour.
113
+
114
+ ### Tests
115
+
116
+ Run the test suite with:
117
+
118
+ ```bash
119
+ uv run pytest
120
+ ```
121
+
122
+ You can run the e2e tests in parallel (`-n 8`) with:
123
+
124
+ ```bash
125
+ uv run pytest -m e2e -v "tests/test_e2e.py" -s -n 8
126
+ ```
127
+
128
+ The e2e tests will:
129
+ * Build the project (locally, or with docker)
130
+ * Run the project (locally or with Wasmer)
131
+ * Test that the project output (via http requests) is the correct one
@@ -2,21 +2,21 @@ shipit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  shipit/cli.py,sha256=uyMz1Jb3b4dRHPAQnYcTwBK9YvyShN7hW_8oUFgyfR8,71059
3
3
  shipit/generator.py,sha256=t9EwdpwhXFJ4OVynDdEtW68yj5KS61cK7uqrvawfCz4,7151
4
4
  shipit/procfile.py,sha256=GlfdwzFUr0GWGKaaiXlLKNFInWaRNMy_wN14UEyU_5Q,2974
5
- shipit/version.py,sha256=ak9y1SJwJ0u_TKEQI96_nWsMuy8tDYPqi_8v5LZKrlU,97
5
+ shipit/version.py,sha256=Gzlao6QOopynbzK8_SZVsG_daYDezTYF3Y_MydxuWc8,97
6
6
  shipit/assets/php/php.ini,sha256=SaR3wvssSROtxTY_CQ5-BspM_47_I971V5X2dsqe8sU,2579
7
- shipit/assets/wordpress/install.sh,sha256=5RWYleXFdrRCfmRSUkt4zJSgjLqeTi9sgNObKK4qD2c,2840
7
+ shipit/assets/wordpress/install.sh,sha256=Y4_yC7GIofSBK6TXmWeWdC-1wZTgo1cvxTS4blX0ZCk,3082
8
8
  shipit/assets/wordpress/wp-config.php,sha256=q7KHB_TyLrodXzbg8EEPm42XWDIevtwL6wk3L0kbVrs,4809
9
9
  shipit/providers/base.py,sha256=wAeyC25XySbmT_iDC2E6UkZQBzUebJVPLdn1obeSZA0,2729
10
10
  shipit/providers/hugo.py,sha256=uxtcLJUnVJfSvmSz5GTxsMYJA0CuppZGrDH1WegdBMw,1807
11
11
  shipit/providers/laravel.py,sha256=2q-6tHZzN5p1xLMVHAt944FtxW-K6Z9HJ0TvDodifnI,3040
12
12
  shipit/providers/mkdocs.py,sha256=jGI7eju9pFJg0TFzTsNWgUz66FuYzPn6yBwXIbZctfw,2196
13
- shipit/providers/node_static.py,sha256=SL2qY5Ydqp1g6h2RPe06amQT86IjOU4m3JtvgLsiY9I,12477
13
+ shipit/providers/node_static.py,sha256=87oYCWwHy5KicOeBGT98dMFfmAd1sOtOS2llhCzDyn0,12455
14
14
  shipit/providers/php.py,sha256=u8qI-uZWg9zfacDByLS_o4SkFLSD-hIXIpc29iPgB-0,4355
15
15
  shipit/providers/python.py,sha256=ZMqpg54FTJxaQk0HMm0Nf1lWMzM7dWIxATlhV0Huuzw,21436
16
16
  shipit/providers/registry.py,sha256=KBgMCwRZEFECdMpIoMn6ytL-FLc_NkTTdtHgVbHx5Jc,670
17
17
  shipit/providers/staticfile.py,sha256=s4hXoelvI2cvSa2sp714QxbD_Q6yQlXdR8azvpbUNFA,2737
18
18
  shipit/providers/wordpress.py,sha256=jLv5U4AcbfyeNq-ZSq6boJIBirwvJEwclG1a6JtB5q0,3230
19
- shipit_cli-0.13.2.dist-info/METADATA,sha256=ddGb-Mso1goqIxZG6c8bGSucB50JPyVygRbL3VY7N4U,616
20
- shipit_cli-0.13.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
21
- shipit_cli-0.13.2.dist-info/entry_points.txt,sha256=7AE1NjSrHaSDfbfsRRO50KKnHFTbB0Imsccd1WynzAQ,72
22
- shipit_cli-0.13.2.dist-info/RECORD,,
19
+ shipit_cli-0.13.3.dist-info/METADATA,sha256=_sOflL_PwR0Vk6Uh5usfGaiDIuB71q35baA0IdpyhNQ,3680
20
+ shipit_cli-0.13.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
21
+ shipit_cli-0.13.3.dist-info/entry_points.txt,sha256=7AE1NjSrHaSDfbfsRRO50KKnHFTbB0Imsccd1WynzAQ,72
22
+ shipit_cli-0.13.3.dist-info/RECORD,,
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: shipit-cli
3
- Version: 0.13.2
4
- Summary: Shipit CLI is the best way to build, serve and deploy your projects anywhere.
5
- Project-URL: homepage, https://wasmer.io
6
- Project-URL: repository, https://github.com/wasmerio/shipit
7
- Project-URL: Changelog, https://github.com/wasmerio/shipit/changelog
8
- Requires-Python: >=3.10
9
- Requires-Dist: dotenv>=0.9.9
10
- Requires-Dist: pyyaml>=6.0.2
11
- Requires-Dist: requests>=2.32.5
12
- Requires-Dist: rich>=14.1.0
13
- Requires-Dist: semantic-version>=2.10.0
14
- Requires-Dist: sh>=2.2.2
15
- Requires-Dist: starlark-pyo3>=2025.1
16
- Requires-Dist: tomlkit>=0.13.3
17
- Requires-Dist: typer>=0.16.1