-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release version 0.2.0 and upload to PyPI (#24)
* Add release data to whatsnew * Update version number in setup.cfg * Create publish.yml * Update whatsnew date * Fix typo in field_layout_discretization.ipynb * Update whatsnew.md * Update whatsnew.md * Add functions to whatsnew.md * Update whatsnew.md * Update whatsnew.md * Update whatsnew.md
- Loading branch information
1 parent
1189212
commit 251a4fd
Showing
4 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish distributions to PyPI | ||
|
||
# if this workflow is modified to be a generic CI workflow then | ||
# add an if statement to the publish step so it only runs on tags. | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish distributions to PyPI | ||
if: github.repository == 'pvlib/twoaxistracking' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# fetch all commits and tags so versioneer works | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install build tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools wheel | ||
- name: Build packages | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
[metadata] | ||
name = twoaxistracking | ||
version = 0.1.0 | ||
author = Adam R. Jensen | ||
version = 0.2.0 | ||
author = 'Adam R. Jensen, Kevin Anderson' | ||
author_email = [email protected] | ||
description = twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/pvlib/twoaxistracking | ||
project_urls = | ||
Bug Tracker = https://github.com/pvlib/twoaxistracking/issues | ||
Documentation = https://twoaxistracking.readthedocs.io | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: BSD License | ||
|