Skip to content

Commit

Permalink
Add publish instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Gaudin committed Jul 23, 2018
1 parent ba0c515 commit 1286344
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mappings.json
mappings_bak.json
run-db.sh
.*.swp
publish.sh
reset.sh
config.json
pg-mongo-connector.log*
Expand Down
22 changes: 22 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,25 @@ Even if this code is battle tested (we use it in production and fix for bugs eve
perfect. Indeed, it was written quickly, by Python aware (but still Java specialized) developers in a "proof of concept"
perspective. Therefore, one can easily improve the code quality, the test coverage (which is currently 0%),
the architecture or write more 'Pythonic' code.

How to publish to Pypi ?
------------------------

1. Create you ~/.pypirc with the following model :

[distutils]
index-servers=
testpypi
pypi

[testpypi]
repository=https://test.pypi.org/legacy/
username=hopwork
password=REPLACE_ME

[pypi]
repository=https://upload.pypi.org/legacy/
username=hopwork
password=REPLACE_ME

2. Execute the publish.sh script
5 changes: 5 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

rm dist/*
python setup.py sdist && twine upload --repository testpypi dist/* && twine upload --repository pypi dist/*

0 comments on commit 1286344

Please sign in to comment.