Skip to content
Snippets Groups Projects
Commit 95a009e9 authored by davidovitch's avatar davidovitch
Browse files

docs: update dev-guide, add note on pypandoc and rst readme for pypi, fixes #25

parent 1abc7491
No related branches found
No related tags found
No related merge requests found
...@@ -206,11 +206,14 @@ The workflow to make a merge request is as follows: ...@@ -206,11 +206,14 @@ The workflow to make a merge request is as follows:
To be written To be written
## Make and upload wheels ## Make and upload wheels to PyPi
Using conda: Uploading wheels to [PyPi](https://pypi.python.org/pypi) is easy thanks to
```[twine](https://pypi.python.org/pypi/twine)```.
Install ```twine``` using conda:
``` ```
>> conda install --channel https://conda.anaconda.org/pbrod twine --no-channel-priority >> conda install --channel https://conda.anaconda.org/pbrod twine --no-deps
``` ```
Or pip: Or pip:
...@@ -218,6 +221,25 @@ Or pip: ...@@ -218,6 +221,25 @@ Or pip:
>> pip install twine >> pip install twine
``` ```
One additional complication with PyPi is that the package description is required
to be in the ```rst``` format, while the ```wetb``` readme file is currently
formatted in ```md```. To solve this,
```[pypandoc](https://pypi.python.org/pypi/pypandoc)``` can be used to convert
```README.md``` on the fly to ```rst```. A discussion on how this can be done
is also recorded in issue #22.
Install ```pypandoc``` using conda:
```
>> conda install pandoc
```
Or pip:
```
>> pip install pypandoc
```
Workflow for creating and uploading wheels is as follows:
- Make tag: ```git tag "vX.Y.Z"```, and push tag to remote: ```git push --tags``` - Make tag: ```git tag "vX.Y.Z"```, and push tag to remote: ```git push --tags```
- In order to have a clean version number (which is determined automagically) - In order to have a clean version number (which is determined automagically)
make sure your git working directory is clean (no uncommitted changes etc). make sure your git working directory is clean (no uncommitted changes etc).
...@@ -234,5 +256,5 @@ In case of problems: ...@@ -234,5 +256,5 @@ In case of problems:
- Make sure the version tag is compliant with - Make sure the version tag is compliant with
[PEP 440](https://www.python.org/dev/peps/pep-0440/), otherwise ```twine upload``` [PEP 440](https://www.python.org/dev/peps/pep-0440/), otherwise ```twine upload```
will fail. This means commit hashes can not be part of a release version. will fail. This means commit hashes can not be part of the version number.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment