swippter-cli 0.1.0__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.
swi/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """Swippter production-ready software foundation command-line application."""
2
+
3
+
4
+ def main() -> None:
5
+ """Print the Swippter message."""
6
+ print(
7
+ "Swippter : Production Ready Software Foundation\n\n"
8
+ "Ship the Product,\n"
9
+ "Skip the Platform rebuild"
10
+ )
swi/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from swi import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,107 @@
1
+ Metadata-Version: 2.4
2
+ Name: swippter-cli
3
+ Version: 0.1.0
4
+ Summary: Swippter production-ready software foundation CLI
5
+ Requires-Python: >=3.9
6
+ Description-Content-Type: text/markdown
7
+
8
+ # Swippter CLI
9
+
10
+ The `swi` command prints:
11
+
12
+ ```text
13
+ Swippter : Production Ready Software Foundation
14
+
15
+ Ship the Product,
16
+ Skip the Platform rebuild
17
+ ```
18
+
19
+ ## Run locally
20
+
21
+ Requires Python 3.9 or newer.
22
+
23
+ ```bash
24
+ python -m venv .venv
25
+ source .venv/bin/activate
26
+ python -m pip install -e .
27
+ swi
28
+ ```
29
+
30
+ You can also run the Python module without installing the console command:
31
+
32
+ ```bash
33
+ python -m swi
34
+ ```
35
+
36
+ ## Test
37
+
38
+ ```bash
39
+ python -m unittest discover -s tests
40
+ ```
41
+
42
+ ## Build from source
43
+
44
+ When cloning the repository, install the `build` frontend and build the wheel
45
+ and source distribution. The build frontend will install the declared build
46
+ backend (`setuptools`) in an isolated environment as needed.
47
+
48
+ ```bash
49
+ git clone https://github.com/swippter/swi.git
50
+ cd swi
51
+ python3 -m pip install --upgrade build
52
+ python3 -m build
53
+ ```
54
+
55
+ Install the locally built wheel and run the CLI:
56
+
57
+ ```bash
58
+ python3 -m pip install dist/*.whl
59
+ swi
60
+ ```
61
+
62
+ ## Install from PyPI
63
+
64
+ After the package has been published to PyPI, install it with:
65
+
66
+ ```bash
67
+ python3 -m pip install swippter-cli
68
+ ```
69
+
70
+ Then run the command:
71
+
72
+ ```bash
73
+ swi
74
+ ```
75
+
76
+ Committing the code does not publish the package; it becomes installable this
77
+ way only after a successful PyPI upload.
78
+
79
+ ## Build and upload to PyPI
80
+
81
+ The PyPI distribution name is `swippter-cli`, and the installed command is
82
+ `swi`. Confirm that this name is available on PyPI before uploading; if not,
83
+ choose a different unique distribution name.
84
+
85
+ Install the packaging tools, build the source and wheel distributions, and
86
+ check the built metadata:
87
+
88
+ ```bash
89
+ python3 -m pip install --upgrade build twine
90
+ python3 -m build
91
+ python3 -m twine check dist/*
92
+ ```
93
+
94
+ To try the upload on TestPyPI first:
95
+
96
+ ```bash
97
+ python3 -m twine upload --repository testpypi dist/*
98
+ ```
99
+
100
+ After confirming the package there, upload to PyPI:
101
+
102
+ ```bash
103
+ python3 -m twine upload dist/*
104
+ ```
105
+
106
+ Authenticate with a PyPI API token when prompted (or configure it through
107
+ `~/.pypirc`); do not put the token in source control.
@@ -0,0 +1,7 @@
1
+ swi/__init__.py,sha256=6-8rgAcljQXGMG3Hq3V7fFuipidVcaahXE24O-GQSxg,283
2
+ swi/__main__.py,sha256=qXz_p9CknFKiyppSBraoUTmzRSQmno64ThnJmTXCTdo,60
3
+ swippter_cli-0.1.0.dist-info/METADATA,sha256=Q1YGNTXhAG3iYOqC6fTO0VuBaNX5_0PFIJG3ntz3CpE,2147
4
+ swippter_cli-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ swippter_cli-0.1.0.dist-info/entry_points.txt,sha256=g6nxt7srx4UxfxhpD1E7zf3qnR6-1CqzXUXrThMx8Lo,33
6
+ swippter_cli-0.1.0.dist-info/top_level.txt,sha256=RhhmACezTC8l5c_XDE1Scf6es6sLHOC_Dqv2CK9u6SU,4
7
+ swippter_cli-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ swi = swi:main
@@ -0,0 +1 @@
1
+ swi