Skip to content

Commit 461f27e

Browse files
Update package build process and add 'build' to requirements
1 parent ea0800c commit 461f27e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nbdev/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def release_pypi(
316316
):
317317
"Create and upload Python package to PyPI"
318318
_dir = get_config().lib_path.parent
319-
system(f'cd {_dir} && rm -rf dist build && python setup.py sdist bdist_wheel')
319+
system(f'cd {_dir} && rm -rf dist build && python -m build')
320320
system(f'twine upload --repository {repository} {_dir}/dist/*')
321321

322322
# %% ../nbs/api/18_release.ipynb

nbs/api/18_release.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@
749749
"):\n",
750750
" \"Create and upload Python package to PyPI\"\n",
751751
" _dir = get_config().lib_path.parent\n",
752-
" system(f'cd {_dir} && rm -rf dist build && python setup.py sdist bdist_wheel')\n",
752+
" system(f'cd {_dir} && rm -rf dist build && python -m build')\n",
753753
" system(f'twine upload --repository {repository} {_dir}/dist/*')"
754754
]
755755
},

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ language = English
1515
custom_sidebar = True
1616
license = apache2
1717
status = 5
18-
requirements = fastcore>=1.8.0 execnb>=0.1.12 astunparse ghapi>=1.0.3 watchdog asttokens setuptools
18+
requirements = fastcore>=1.8.0 execnb>=0.1.12 astunparse ghapi>=1.0.3 watchdog asttokens setuptools build
1919
pip_requirements = PyYAML
2020
conda_requirements = pyyaml
2121
conda_user = fastai

0 commit comments

Comments
 (0)