Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wtlib
WindEnergyToolbox
Commits
95a009e9
Commit
95a009e9
authored
8 years ago
by
davidovitch
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/developer-guide.md
+26
-4
26 additions, 4 deletions
docs/developer-guide.md
with
26 additions
and
4 deletions
docs/developer-guide.md
+
26
−
4
View file @
95a009e9
...
@@ -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 releas
e version.
will fail. This means commit hashes can not be part of
th
e version
number
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment