A very simple Hello world app to submit a job using pycalrissian
Project description
simple-app-with-pycalrissian
Create a simple python app to submit a job using pycalrissian. The app will only print a very basic hello world.
To create mamba environment please execute this command:
mamba create -n hello_world_pycalrissian -c conda-forge python=3.8 twine
mamba activate hello_world_pycalrissian
How to install the module:
To create a module using pyproject.toml with PIP dependencies please execute the code below:
pip install . # this will create build folder
Note: To create a module using pyproject.toml with
condadependencies in a particular channel please execute the code below:unidep install . # this will create build folder
How to create PYPI package(Optional):
You need to install some packages to create dist/* directory including .whl and .tar.gz files:
- Check the python and pip version by environment
##
which python
which pip
- Update pip and install
distfolder using the python specific version andbuildlibrary: EX:
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/python -m pip install --upgrade pip
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/pip install twine build
- Create API token on PYPI account and configure it under
$HOME/.pypircfile as below:
[pypi]
username = __token__
password = pypi-...
- Create
distfolder:
/home/t2/micromamba/envs/hello_world_pycalrissian/bin/python -m build
Now you need to publish your application packages on PYPI:
twine upload dist/*
How to use the package in an isolated environment:
pip install hello-world-pycalrissian
hello-world-pycalrissian
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello_world_pycalrissian-0.0.9.tar.gz.
File metadata
- Download URL: hello_world_pycalrissian-0.0.9.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596611e2c2304082914c0492641d5aab32316223300cf4077111604de492edab
|
|
| MD5 |
9209c7a6d18a4cd6fd0f048183d9d7df
|
|
| BLAKE2b-256 |
c18470a88653218f047b8b9375ce5ba74b9ce7d2edd2501cef76284cefc60799
|
File details
Details for the file hello_world_pycalrissian-0.0.9-py3-none-any.whl.
File metadata
- Download URL: hello_world_pycalrissian-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea75c2ef755889ccfba4198edfa7088afd57d9a63e4f666bd7d8261058e4bfee
|
|
| MD5 |
8e55d10a3094d53d6852cb7c9549be7f
|
|
| BLAKE2b-256 |
107f746ef926a776f2358d16fa6056595ef247d2470b1e1d6da23faad7b02090
|