Skip to content

Commit

Permalink
Merge pull request #26 from kmedian/dev-202302
Browse files Browse the repository at this point in the history
v0.4.8
  • Loading branch information
ulf1 committed Feb 6, 2023
2 parents adb0928 + 0d0e772 commit b0144d0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [ulf1, fatkaratekid, vinschess]
github: [ulf1]
2 changes: 1 addition & 1 deletion .github/workflows/syntax-and-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9','3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']

name: Python ${{ matrix.python-version }} Tests

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.8 / 2023-02-06

* Installation bug fixed. RST file wasn't available.

# 0.4.7 / 2021-11-13

* Bugfixes for Act AFB and ISDA by @emiliobasualdo
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[![PyPI version](https://badge.fury.io/py/yearfrac.svg)](https://badge.fury.io/py/yearfrac)
[![yearfrac](https://snyk.io/advisor/python/yearfrac/badge.svg)](https://snyk.io/advisor/python/yearfrac)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/kmedian/yearfrac.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kmedian/yearfrac/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/kmedian/yearfrac.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kmedian/yearfrac/context:python)
[![deepcode](https://www.deepcode.ai/api/gh/badge?key=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGF0Zm9ybTEiOiJnaCIsIm93bmVyMSI6ImttZWRpYW4iLCJyZXBvMSI6InllYXJmcmFjIiwiaW5jbHVkZUxpbnQiOmZhbHNlLCJhdXRob3JJZCI6Mjk0NTIsImlhdCI6MTYxOTU0MjUyOX0.RI73MEmFUVlndzYdZq9l6ip2XozSJldBOhDHyIGsfwI)](https://www.deepcode.ai/app/gh/kmedian/yearfrac/_/dashboard?utm_content=gh%2Fkmedian%2Fyearfrac)


# yearfrac

Expand Down Expand Up @@ -53,7 +51,7 @@ pip3 install -r requirements-demo.txt
Publish

```sh
pandoc README.md --from markdown --to rst -s -o README.rst
# pandoc README.md --from markdown --to rst -s -o README.rst # RST file is too much trouble
python setup.py sdist
twine upload -r pypi dist/*
```
Expand All @@ -63,6 +61,8 @@ Please [open an issue](https://github.com/kmedian/yearfrac/issues/new) for suppo


### Contributors
* Adam Groszer [@agroszer](https://github.com/agroszer)
* Emilio Basualdo [@emiliobasualdo](https://github.com/emiliobasualdo)
* Ivan Nesic [@fatkaratekid](https://github.com/fatkaratekid)
* Vinay Gupta [@vinschess](https://github.com/vinschess)
* Ulf Hamster [@ulf1](https://github.com/ulf1)
Expand Down
2 changes: 1 addition & 1 deletion yearfrac/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.4.7'
__version__ = '0.4.8'

from .isaleapyear import isaleapyear
from .julianday import date_to_jd, jd_to_date
Expand Down
2 changes: 1 addition & 1 deletion yearfrac/isaleapyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ def isaleapyear(y: int) -> bool:
if y < 0:
raise Exception("y is negative")

return not(y % 4) and (bool(y % 100) or not(y % 400))
return not (y % 4) and (bool(y % 100) or not (y % 400))

0 comments on commit b0144d0

Please sign in to comment.