Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

fix: add twine to upload to PyPi #162

Merged
merged 1 commit into from
Apr 1, 2018
Merged

fix: add twine to upload to PyPi #162

merged 1 commit into from
Apr 1, 2018

Conversation

abtris
Copy link
Contributor

@abtris abtris commented Mar 23, 2018

This can solve #161

Used steps from https://pypi.org/project/twine/

honzajavorek
honzajavorek previously approved these changes Mar 23, 2018
@@ -119,5 +119,5 @@ def release():
sh("git tag -s '%(name)s-%(version)s' -m 'Version bump to %(version)s'" % {'name': NAME, 'version': VERSION})
sh("git push --tags")
sh("git push")
sh("python setup.py register sdist upload")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not completely sure whether we should remove register. Is it deprecated as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure but works without that. But we have already register. I will get this back.

https://docs.python.org/3.1/distutils/packageindex.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, I added register back.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true the register is only needed once...

honzajavorek
honzajavorek previously approved these changes Mar 23, 2018
pavement.py Outdated
@@ -119,5 +119,5 @@ def release():
sh("git tag -s '%(name)s-%(version)s' -m 'Version bump to %(version)s'" % {'name': NAME, 'version': VERSION})
sh("git push --tags")
sh("git push")
sh("python setup.py register sdist upload")
sh("python setup.py bdist_wheel upload")
sh("python setup.py register sdist bdist_wheel")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@honzajavorek is right and we don't need register. I'm doing similar:

        version = self.determine_current_version()
        invoke(['python', 'setup.py', 'sdist', 'bdist_wheel'])
        invoke(['twine', 'upload', 'dist/*{}*'.format(version)])

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't right, because first I made @abtris to put register back 😄

pavement.py Outdated
sh("python setup.py register sdist upload")
sh("python setup.py bdist_wheel upload")
sh("python setup.py register sdist bdist_wheel")
sh("twine upload dist/*")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a better idea to make this dist/*{version}* so we don't re-upload old versions of mistakenly upload wrong versions.

@abtris
Copy link
Contributor Author

abtris commented Mar 23, 2018

@kylef updated

@abtris
Copy link
Contributor Author

abtris commented Mar 26, 2018

Pls, re-review.

@abtris abtris merged commit 9c6b32a into master Apr 1, 2018
@abtris abtris deleted the abtris/add-twine branch April 1, 2018 06:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants