Skip to main content

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 conda dependencies 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 dist folder using the python specific version and build library: 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/.pypirc file as below:
[pypi]
  username = __token__
  password = pypi-...

  • Create dist folder:
/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hello_world_pycalrissian-0.0.8.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

hello_world_pycalrissian-0.0.8-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page