Skip to main content

python-conda-package-template

Template for building Python packages that can be easily bundled as Anaconda packages, too

Usage

To use this package, when creating the new repository for your project, select this project as the template. Then, replace all occurrences of "PACKAGENAME", "URL", "GIT_URL", and other filler values in setup.py and meta.yaml. Set version numbers as needed in PACKAGENAME/__init__.py and meta.yaml, and add your code where applicable.

Building your package

PyPI

python setup.py install

Anaconda

conda build --python {PYTHON_VERSION} meta.yaml

Uploading your package

PyPI

# ensure `twine` is install
pip install twine
# package source code
python setup.py sdist
twine upload dist/*

Anaconda

# ensure conda-build and anaconda-client are installed
conda install conda-build anaconda-client
# build package for a specific python version
conda build --python {PYTHON_VERSION} meta.yaml
# upload to Anaconda Cloud
cd $HOME/miniconda3/conda-bld/
anaconda upload */PACKAGENAME-VERSION_*.tar.bz2

Installing your package

After uploading to your repository of interest, you should be able to download and install your package according to the tools for that repository.

PyPI

pip install PACKAGENAME

Anaconda

conda install PACKAGENAME

Release files for dumbtext 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dumbtext 0.0.1
File Size Uploaded
dumbtext-0.0.1.tar.gz 2.5 kB Details

Release files / dumbtext-0.0.1.tar.gz

Download URL dumbtext-0.0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cdd417789e9ca1884baad1354f74c059568e2a7ec3a8ee4c141ef775fd140d82
BLAKE2b-256 checksum
How to use checksums
a4f6876fdbe6c9aac71a400ab9a67048a4ffdd3dcaf4e389e7013831569a68d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page