chore: cleanin' and bumpin'

* Updated copyright years / company name on LICENSE.
* Fixed up spacing in the README.
* Bumped version number.
This commit is contained in:
Josh Sherman 2019-04-19 22:58:53 -05:00
parent 6e92b65a9a
commit a2c5190805
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
4 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2016 Josh Sherman Copyright (c) 2016, 2017, 2018, 2019 Gravity Boulevard, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -15,16 +15,16 @@ import holidayapi
hapi = holidayapi.v1('_YOUR_API_KEY_') hapi = holidayapi.v1('_YOUR_API_KEY_')
parameters = { parameters = {
# Required # Required
'country': 'US', 'country': 'US',
'year': 2016, 'year': 2016,
# Optional # Optional
# 'month': 7, # 'month': 7,
# 'day': 4, # 'day': 4,
# 'previous': True, # 'previous': True,
# 'upcoming': True, # 'upcoming': True,
# 'public': True, # 'public': True,
# 'pretty': True, # 'pretty': True,
} }
holidays = hapi.holidays(parameters) holidays = hapi.holidays(parameters)

View file

@ -15,7 +15,7 @@ class v1:
response = requests.get(url, params=parameters); response = requests.get(url, params=parameters);
data = response.json() data = response.json()
if not response.ok: if not response.ok:
if not data.get('error'): if not data.get('error'):
data['error'] = 'Unknown error.' data['error'] = 'Unknown error.'

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name='python-holidayapi', name='python-holidayapi',
version='1.0.0', version='1.1.0',
description='Official Python library for Holiday API', description='Official Python library for Holiday API',
url='https://holidayapi.com', url='https://holidayapi.com',
author='Josh Sherman', author='Josh Sherman',