mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge 1e7692b094 into f1934d2c76
This commit is contained in:
commit
c50a45dfea
2 changed files with 23 additions and 0 deletions
17
plugins/pypi/README.md
Normal file
17
plugins/pypi/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# pypi plugin
|
||||
|
||||
A plugin which contains quick memorable aliases for the commands available while uploading own packages in [pypi](https://pypi.org/)
|
||||
|
||||
To access this plugin, add the parameter `pypi` to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... pypi)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias Command | Original Command | Description |
|
||||
|------------------------|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------|
|
||||
| `pypi-check` | `pip3 install twine setuptools` | Used to check the required libraries to upload a package in pypi |
|
||||
| `pypi-ltest` | `python3 setup.py sdist && python3 -m pip install dist/*` | Used to install setup.py file to local machine for testing before uploading into pypi. |
|
||||
| `pypi-tupload` | `python3 setup.py sdist && twine upload --repository testpypi dist/*` | Used to upload a python package to testpypi for testing |
|
||||
| `pypi-upload` | `python3 setup.py sdist && twine upload dist/*` | Used to upload a python package to pypi. |
|
||||
6
plugins/pypi/pypi.plugin.zsh
Normal file
6
plugins/pypi/pypi.plugin.zsh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
alias pypi-check='python3 -m pip install twine setuptools'
|
||||
alias pypi-ltest='python3 setup.py sdist && python3 -m pip install dist/*'
|
||||
alias pypi-tupload='python3 setup.py sdist && twine upload --repository testpypi dist/*'
|
||||
alias pypi-upload='python3 setup.py sdist && twine upload dist/*'
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue