From 81955e9181c58b092c2f3a21041d884f49fef262 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Fri, 11 Mar 2022 21:59:10 +0100 Subject: [PATCH] Release version 0.2.1 and fix PyPI upload (#25) * Update publish.yml * Update .gitignore * Make pandas required * Update whatsnew.md * Update version in setup.cfg * Update whatsnew.md * Update whatsnew.md --- .github/workflows/publish.yml | 4 ++-- .gitignore | 3 ++- docs/source/whatsnew.md | 8 ++++++++ setup.cfg | 4 ++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5d260ce..118181e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,9 +26,9 @@ jobs: - name: Install build tools run: | python -m pip install --upgrade pip - python -m pip install --upgrade setuptools wheel + python -m pip install --upgrade setuptools wheel build - name: Build packages - run: python setup.py sdist bdist_wheel + run: python -m build --sdist --wheel - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@master diff --git a/.gitignore b/.gitignore index e4e5ce5..50129fd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,8 @@ __pycache__/ # Distribution / packaging -*/build/ +build/ +dist/ *.egg-info/ # generated documentation diff --git a/docs/source/whatsnew.md b/docs/source/whatsnew.md index 4635897..1e36504 100644 --- a/docs/source/whatsnew.md +++ b/docs/source/whatsnew.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.1] - 2022-03-11 +Add pandas as a required dependency and fix the workflow file responsible for +uploading the package to PyPI. + +### Requirements +- Added pandas to the list of required dependencies + + ## [0.2.0] - 2022-03-11 The code in the second release is a complete restructure in order for the code to be made into a package and available on PyPI. diff --git a/setup.cfg b/setup.cfg index bd721b9..fe8e423 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = twoaxistracking -version = 0.2.0 +version = 0.2.1 author = 'Adam R. Jensen, Kevin Anderson' author_email = adam-r-j@hotmail.com description = twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading. @@ -24,12 +24,12 @@ install_requires = numpy matplotlib shapely + pandas [options.extras_require] test = pytest pytest-cov - pandas doc = sphinx==4.4.0 myst-nb==0.13.2