Pure python packages created from nbdev settings.ini

pypi_json[source]

pypi_json(s)

Dictionary decoded JSON for PYPI path s

latest_pypi[source]

latest_pypi(name)

Latest version of name on pypi

pypi_details[source]

pypi_details(name)

Version, URL, and SHA256 for name from pypi

update_meta[source]

update_meta(name, src_path, dest_path)

Update VERSION and SHA256 in meta.yaml from pypi

conda_output_path[source]

conda_output_path(name, ver)

Output path for conda build

conda_output_path('fastai','2.1.0')
'/home/jhoward/anaconda3/conda-bld/noarch/fastai-2.1.0-py_0.tar.bz2'

write_pip_conda_meta[source]

write_pip_conda_meta(name, path='conda')

Writes a meta.yaml file for name to the conda directory of the current directory

write_conda_meta[source]

write_conda_meta(path='conda')

Writes a meta.yaml file to the conda directory of the current directory

This function is used in the fastrelease_conda_package CLI command.

NB: you need to first of all upload your package to PyPi, before creating the conda package.

anaconda_upload[source]

anaconda_upload(name, version, user=None)

Update name version to anaconda

fastrelease_conda_package[source]

fastrelease_conda_package(path:"Path where package will be created"='conda', do_build:"Run conda build step"=True, build_args:"Additional args (as str) to send to conda build"='', skip_upload:"Skip anaconda upload step"=False, mambabuild:"Use mambabuild (requires boa)"=False, upload_user:"Optional user to upload package to"=None)

Create a meta.yaml file ready to be built into a package, and optionally build and upload it

To build and upload a conda package, cd to the root of your repo, and then:

fastrelease_conda_package

Or to do things more manually:

fastrelease_conda_package --do_build false
cd conda
conda build --no-anaconda-upload --output-folder build {name}
anaconda upload build/noarch/{name}-{ver}-*.tar.bz2

Add --debug to the conda build command to debug any problems that occur. Note that the build step takes a few minutes. Add -u {org_name} to the anaconda upload command if you wish to upload to an organization, or pass upload_user to fastrelease_conda_package.

NB: you need to first of all upload your package to PyPi, before creating the conda package.