Skip to main content

A make-believe Python project for illustrating Conda packaging

Project description

Intro

This is Python project skeleton used to demonstrate building Conda packages using conda-build and rattler-build.

Development

python -m venv .venv
source .venv/bin/activate
pip install -e .
# Modify version, for example
python -m unittest discover -s tests

Building

Setup to build by installing build and twine:

pip install --upgrade pip build twine

Clean out the dist path and create the source tarball and wheel:

rm dist/conda_build_demo-*.tar.gz dist/conda_build_demo-*.whl
python -m build
twine check dist/conda_build_demo-*.tar.gz dist/conda_build_demo-*.whl

Distributing

export TWINE_USERNAME="__token__"
export TWINE_PASSWORD="pypi-..."
export TWINE_REPOSITORY_URL="https://test.pypi.org/"

twine upload --repository testpypi dist/conda_build_demo-*.tar.gz dist/conda_build_demo-*.whl

Validate Package

docker run --rm -v ./ca:/etc/ca docker.io/library/python:3.12-slim sh -c "PIP_CERT=/etc/ca pip install --index-url https://test.pypi.org/simple --no-deps conda-build-demo && python -c 'import conda_build_demo; d = Demo(); print(d.version())'"

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

conda_build_demo-0.0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conda_build_demo-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file conda_build_demo-0.0.3.tar.gz.

File metadata

  • Download URL: conda_build_demo-0.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for conda_build_demo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 eea057dfda4845c32bf32f4cecc50ee2808f82298c56850bfb07a7267dc97555
MD5 8f15f529fd18f2096422cd8bea2b2562
BLAKE2b-256 1b848539dfe2d79512521677e94d4d06e580a6ec9fa37aae5ee9d0f8239374c1

See more details on using hashes here.

File details

Details for the file conda_build_demo-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for conda_build_demo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 95b5233d55b36c179202a30e2b7466615e693ccd40c8b254a55f0b1f1283b1ae
MD5 6d7cfc3b2347e4637ae85d37b049dd20
BLAKE2b-256 bd2faf44185a6eee40b2c15493f7bd97bad8ac22d1376bdcdc20d83c435a0ef2

See more details on using hashes here.

Supported by

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