jupyter-server / jupyter_releaser

A set of helper scripts and GitHub Actions to aid in automated releases of Python and npm packages.
https://jupyter-releaser.readthedocs.io/en/latest/
Other
46 stars 64 forks source link

Only publish to NPM #508

Open danyrouh opened 1 year ago

danyrouh commented 1 year ago

Hello, I'm trying to use your tool to publish a jupyterlab extension (client typescript, backend python) to npmjs only and exclude pypi for now. I keep getting this error: ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/ Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.

I tried every configuration I can find online, which are not many, with no luck so far. I added the following two command lines to the finalize release section. It did nt owork. twine-cmd: 'twine upload --skip-existing --verbose dist/*' npm_cmd: 'npm publish --tag next'

I removed the authentication part for pypi. Nothing worked so far.

Sorry, for sending a request like this, but my experience with the jupyterlab forum has not been positive to date. I never get any response to my inquiries.

Is what I'm trying to do doable using your tool? If it is not, I believe it is a good feature to have.

Thanks! Dany

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

blink1073 commented 1 year ago

Hi @danyrouh, you can avoid building the python dist files by skipping the build-python step.

[tool.jupyter-releaser]
skip = ["build-python"]