Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment to pypi? #2805

Closed
b3ross opened this issue Aug 31, 2018 · 6 comments
Closed

Deployment to pypi? #2805

b3ross opened this issue Aug 31, 2018 · 6 comments

Comments

@b3ross
Copy link

b3ross commented Aug 31, 2018

Sorry for the possibly stupid question, but is there a supported workflow in pipenv for deploying a package to a pypi repository? I'm surprised I couldn't find any documentation on this but perhaps I'm missing something. This is a typical workflow in other package managers (maven, yarn, etc...). What's the correct way to do this?

@b3ross
Copy link
Author

b3ross commented Aug 31, 2018

Found the way to do things here: https://realpython.com/pipenv-guide/#yes-i-need-to-distribute-my-code-as-a-package

(That makes me sad that I have to use setup.py files)

Would be great if there was an opinionated pipenv deploy command that deployed things to a package repo.

@gsemet
Copy link
Contributor

gsemet commented Aug 31, 2018

I usually does

pipenv run python setup.py sdist bdist bdist_wheel
pipenv run twine upload dist/*

@b3ross
Copy link
Author

b3ross commented Sep 1, 2018

@gsemet the whole point is that I want to avoid having a setup.py file... but thanks.

@gsemet
Copy link
Contributor

gsemet commented Sep 1, 2018

sadly you cannot skip this part. You can look at pyproject.toml and alike. I personnally use PBR. See this ticket #1851

@Owez
Copy link

Owez commented Feb 4, 2021

I feel this should be reopened as poetry has a mechanism to deploy and seems to be the only real missing feature of pipenv in my eyes

@frostming
Copy link
Contributor

Pipenv and Pipfile are never to define the dependencies of a library, it can't play the role of setup.py
https://pipenv.pypa.io/en/latest/advanced/#pipfile-vs-setuppy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants