Skip to content

Commit

Permalink
MAINT: documentation for making new releases (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
anomam authored Jan 20, 2022
1 parent 91c7657 commit e0ea9d5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build-docs:
python setup.py build_sphinx

build-package:
python setup.py bdist_wheel sdist
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ To install the package in editable mode, you can use:
$ pip install -e .
Releasing
+++++++++

When releasing pvfactors, you will need to run a couple of build commands. First make sure to activate your virtual environment if any, then:

- create a tag on the latest master branch commit using `git tag -a vX.X.X`, and write a tag message. You can then push that tag to Github so that it will appear there.
- build the documentation by running `make build-docs`. When done running, you should be able to open `build/sphinx/html/index.html`, and confirm that the version displayed is the same as the one from the git tag. You can deploy by copying the content of of the `build/sphinx/html/` folder into the `gh-pages` branch of the repo (make sure to keep the `.nojekyll` file that's already present).
- build the release files by running `make build-package`. When done running, you should be able to open `dist/` and see both a whl file and and tar file. Make sure that their names include the correct git tag you created. Please confirm that the whl file was built correctly by installing it locally and testing the newly released updates. You can deploy by 1) making a Github release from the tag you created and pushed, and including the files in `dist/` in the release. 2) The last step is to publish a release in PyPI, for which you can use twine and the command `twine upload dist/*`




References
----------
Expand Down
6 changes: 5 additions & 1 deletion docs/sphinx/whatsnew/v1.5.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ Fixes
* Fixed a bug that affected some irradiance simulations when `surface_tilt` is exactly zero.
See `GH #125 <https://github.com/SunPower/pvfactors/issues/125>`_ for details. (:ghpull:`128`)

Maintenance
-----------

* Add documentation for making new releases (:ghpull:`133`)

Contributors
------------
* Marc Anoma (:ghuser:`anomam`)
* Kevin Anderson (:ghuser:`kanderso-nrel`)
* Marc Anoma (:ghuser:`anomam`)

0 comments on commit e0ea9d5

Please sign in to comment.