-
-
Notifications
You must be signed in to change notification settings - Fork 221
Default settings for development do not work nicely with pypi #217
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
Comments
pypi rejects local versions by design, and setuptools_scm explots that fact in a way (preventing the uploading of randomc scm versions to pypi as a stopgap in release processes) if you want to work that in more detail you can either reconfigure setuptools_scm in setup.py to stop protecting you from that or you can alter the pypi deployment to set up a env varible in |
Can you point me to how to reconfigure |
for example you can use aka setup(
...,
use_scm_version = {'local_scheme':'dirty-tag'},
...,
)``` |
note, i suggest to only set that on travis in order to prevent personal mistakes in the release process |
If I use Then something like |
That fits nicely with your note as well (since otherwise I have to pipe in some stuff in travis) |
off hand no idea, i usually use the default setup, and upload dev releases to a devpi instance |
Is this the sort of information that should go into pypi/warehouse#3153? |
@brainwane possibly |
closing this one as not actionable, the defaults are intentionally not upload friendly and can be configured away with a different sceme |
I have a simple project and the deployment to test-pypi is done via
.travis-ci.yml
for each commit on master branch. The problem is the below error and after reading the documentation couple of times is that I do not know how to switch to SimVer.Probably my question is more in line of how to make this pypi compatible (what to add into
setup.py
) as the default is just not working for non-tagged deployment.Error from travis-ci:
The text was updated successfully, but these errors were encountered: