3
3
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/18_release.ipynb.
4
4
5
5
# %% auto 0
6
- __all__ = ['GH_HOST' , 'Release' , 'changelog' , 'release_git' , 'release_gh' , 'pypi_json' , 'latest_pypi' , 'pypi_details ' ,
7
- 'conda_output_path ' , 'write_conda_meta ' , 'write_requirements ' , 'anaconda_upload ' , 'release_conda ' ,
8
- 'chk_conda_rel' , 'release_pypi' , 'release_both' , 'bump_version' , 'nbdev_bump_version' ]
6
+ __all__ = ['GH_HOST' , 'CONDA_WARNING' , ' Release' , 'changelog' , 'release_git' , 'release_gh' , 'pypi_json' , 'latest_pypi' ,
7
+ 'pypi_details ' , 'conda_output_path ' , 'write_conda_meta ' , 'write_requirements ' , 'anaconda_upload ' ,
8
+ 'release_conda' , ' chk_conda_rel' , 'release_pypi' , 'release_both' , 'bump_version' , 'nbdev_bump_version' ]
9
9
10
10
# %% ../nbs/api/18_release.ipynb
11
11
from fastcore .all import *
@@ -251,8 +251,11 @@ def write_requirements(path:str=''):
251
251
(d / 'requirements.txt' ).mk_write (req )
252
252
253
253
# %% ../nbs/api/18_release.ipynb
254
+ CONDA_WARNING = 'Conda support for nbdev is deprecated and scheduled for removal in a future version.'
255
+
254
256
def anaconda_upload (name , loc = None , user = None , token = None , env_token = None ):
255
257
"Upload `name` to anaconda"
258
+ warn (CONDA_WARNING )
256
259
user = f'-u { user } ' if user else ''
257
260
if env_token : token = os .getenv (env_token )
258
261
token = f'-t { token } ' if token else ''
@@ -271,6 +274,7 @@ def release_conda(
271
274
upload_user :str = None # Optional user to upload package to
272
275
):
273
276
"Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it"
277
+ warn (CONDA_WARNING )
274
278
name = get_config ().lib_name
275
279
write_conda_meta (path )
276
280
out = f"Done. Next steps:\n ```\n cd { path } \n " ""
0 commit comments