ballista-cli 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,89 @@
1
+ ---
2
+ # Heavily inspired/borrowed from Hynek's svcs pypi-package.yml: https://github.com/hynek/svcs/blob/8fa104b54edb88f0233c687b84bc2e6706b481b8/.github/workflows/pypi-package.yml
3
+ name: Build & upload PyPI package
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ tags: ["*"]
9
+ release:
10
+ types:
11
+ - published
12
+ workflow_dispatch:
13
+
14
+ concurrency:
15
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16
+ cancel-in-progress: true
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ # Always build & lint package.
23
+ build-package:
24
+ name: Build & verify package
25
+ runs-on: ubuntu-latest
26
+ permissions:
27
+ attestations: write # necessary for GitHub attestations
28
+ id-token: write # necessary for GitHub attestations
29
+
30
+ steps:
31
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32
+ with:
33
+ fetch-depth: 0
34
+ token: ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0
37
+ with:
38
+ attest-build-provenance-github: "true"
39
+
40
+ # Upload to Test PyPI on every commit on main.
41
+ release-test-pypi:
42
+ name: Publish in-dev package to test.pypi.org
43
+ environment: release-test-pypi
44
+ if: github.repository_owner == 'ballista-build' && github.event_name == 'push' && github.ref == 'refs/heads/main'
45
+ runs-on: ubuntu-latest
46
+ needs: build-package
47
+
48
+ permissions:
49
+ id-token: write # necessary for trusted publishing
50
+
51
+ steps:
52
+ - name: Download packages built by build-and-inspect-python-package
53
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
54
+ with:
55
+ name: Packages
56
+ path: dist
57
+
58
+ - name: Upload package to Test PyPI
59
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
60
+ with:
61
+ # Do not perform attestation for things for TestPyPI. This is
62
+ # because there's nothing that would prevent a malicious PyPI from
63
+ # serving a signed TestPyPI asset in place of a release intended for
64
+ # PyPI.
65
+ attestations: false
66
+ repository-url: https://test.pypi.org/legacy/
67
+
68
+ # Upload to real PyPI on GitHub Releases.
69
+ release-pypi:
70
+ name: Publish released package to pypi.org
71
+ environment: release-pypi
72
+ if: github.repository_owner == 'ballista-build' && github.event.action == 'published'
73
+ runs-on: ubuntu-latest
74
+ needs: build-package
75
+
76
+ permissions:
77
+ id-token: write # necessary for trusted publishing
78
+
79
+ steps:
80
+ - name: Download packages built by build-and-inspect-python-package
81
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
82
+ with:
83
+ name: Packages
84
+ path: dist
85
+
86
+ - name: Upload package to PyPI
87
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
88
+ with:
89
+ attestations: true
@@ -0,0 +1,13 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # Generated files
13
+ .coverage
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 20236 August Trapper Bigelow and the ballista.build contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,37 @@
1
+ Metadata-Version: 2.4
2
+ Name: ballista-cli
3
+ Version: 0.1.0
4
+ Summary: Ballista.build CLI
5
+ Author-email: August Bigelow <dev@atbigelow.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 2 - Pre-Alpha
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Classifier: Programming Language :: Python :: 3.14
12
+ Classifier: Programming Language :: Python :: 3.15
13
+ Classifier: Typing :: Typed
14
+ Requires-Python: >=3.12
15
+ Requires-Dist: async-typer>=0.2.1
16
+ Requires-Dist: ballista-sdk<0.2,>=0.1
17
+ Requires-Dist: prettytable
18
+ Requires-Dist: typer<0.26,>=0.25
19
+ Description-Content-Type: text/markdown
20
+
21
+ # Ballista.build CLI
22
+
23
+ CLI for using Ballista.build
24
+
25
+ ## Commands
26
+
27
+ - `init` - Create an initial ballista.yaml
28
+ - `build` - Build the artifacts contained in a ballista.yaml
29
+ - `up` - Execute project in local environment
30
+ - `down` - Teardown project in local environment
31
+ - `run` - Run a command with an Artifact context
32
+ - `deploy` - Deploy to an environment
33
+ - `list` - List various items from environments
34
+
35
+ ## Configuration
36
+
37
+ `~/.ballista/defaults.yaml`
@@ -0,0 +1,17 @@
1
+ # Ballista.build CLI
2
+
3
+ CLI for using Ballista.build
4
+
5
+ ## Commands
6
+
7
+ - `init` - Create an initial ballista.yaml
8
+ - `build` - Build the artifacts contained in a ballista.yaml
9
+ - `up` - Execute project in local environment
10
+ - `down` - Teardown project in local environment
11
+ - `run` - Run a command with an Artifact context
12
+ - `deploy` - Deploy to an environment
13
+ - `list` - List various items from environments
14
+
15
+ ## Configuration
16
+
17
+ `~/.ballista/defaults.yaml`
@@ -0,0 +1,47 @@
1
+ [project]
2
+ name = "ballista-cli"
3
+ dynamic = ["version"]
4
+ description = "Ballista.build CLI"
5
+ readme = "README.md"
6
+ authors = [{ name = "August Bigelow", email = "dev@atbigelow.com" }]
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ requires-python = ">=3.12"
10
+ classifiers = [
11
+ "Development Status :: 2 - Pre-Alpha",
12
+ "Programming Language :: Python :: 3.12",
13
+ "Programming Language :: Python :: 3.13",
14
+ "Programming Language :: Python :: 3.14",
15
+ "Programming Language :: Python :: 3.15",
16
+ "Typing :: Typed",
17
+ ]
18
+ dependencies = [
19
+ "typer>=0.25,<0.26",
20
+ "prettytable",
21
+ "async-typer>=0.2.1",
22
+ "ballista-sdk>=0.1,<0.2",
23
+ ]
24
+
25
+ [project.scripts]
26
+ ballista = "ballista_cli.cli:cli"
27
+
28
+ [build-system]
29
+ requires = ["hatchling>=1.27.0", "hatch-vcs"]
30
+ build-backend = "hatchling.build"
31
+
32
+ [tool.hatch.version]
33
+ source = "vcs"
34
+ raw-options = { local_scheme = "no-local-version" }
35
+
36
+ [tool.ruff]
37
+ line-length = 120
38
+ target-version = "py312"
39
+
40
+ [dependency-groups]
41
+ tests = ["pytest", "pytest-asyncio"]
42
+ coverage = [{ include-group = "tests" }, "coverage[toml]"]
43
+ dev = [
44
+ { include-group = "coverage" },
45
+ "ruff",
46
+ "pyrefly>=0.31",
47
+ ]
File without changes