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

Script to package and release to pypi #18

Closed
thunterdb opened this issue Jan 29, 2019 · 1 comment · Fixed by #109
Closed

Script to package and release to pypi #18

thunterdb opened this issue Jan 29, 2019 · 1 comment · Fixed by #109
Labels
P0 Should be part of the initial release
Milestone

Comments

@thunterdb
Copy link
Contributor

We have enough content to make a release onto PyPI. The goal of this ticket is to:

  • document the process for future releases, in docs/RELEASE.md for example
  • make a first release with version 0.1.0, because this is already pretty usable.
@thunterdb
Copy link
Contributor Author

Here are some instructions I had written down for spark-sklearn, which should be quite similar:


Here are some procedures to release a new version of the spark-sklearn package.

Code: https://github.com/databricks/spark-sklearn

if you make a mistake in the release, bump the minor, create a new tag and start over. This is much better than trying to overwrite some existing artifacts that may already be used.

Prepare the release
Update the release docs and the change log.

export RELEASE=0.2.0

Create a tag:

git tag release-$RELEASE upstream/master
git push upstream --tags 
Upload on pypi
General info:  http://peterdowns.com/posts/first-time-with-pypi.html

You need the proper credentials for that. Ask Timothee Hunter for an account.

Test the release. It will check the egg file is correct:

python setup.py register -r pypitest
python setup.py sdist upload -r pypitest 
Publish for good:

python setup.py register -r pypi
python setup.py sdist upload -r pypi 

@rxin rxin added the P0 Should be part of the initial release label Apr 18, 2019
@rxin rxin added this to the Initial release milestone Apr 18, 2019
@rxin rxin closed this as completed in #109 Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Should be part of the initial release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants