Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 355bffc

Browse files
authored
Merge pull request #179 from smartsheet-platform/tw-updates
Rolled multiple PRs into this one
2 parents ef256b7 + 18e1281 commit 355bffc

File tree

17 files changed

+132
-39
lines changed

17 files changed

+132
-39
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
dist: trusty
1+
dist: focal
22

33
language: python
4+
jdk: openjdk10
45

56
cache:
67
directories:
@@ -12,19 +13,21 @@ git:
1213
jobs:
1314
include:
1415
- stage: test
15-
python: "2.7"
16+
python: "3.6"
17+
script:
18+
- jdk_switcher use openjdk10
19+
- sh test.sh
20+
- # stage name not required
21+
python: "3.7"
1622
script: sh test.sh
17-
if: env(deploy) IS NOT present
1823
- # stage name not required
19-
python: "3.4"
24+
python: "3.8"
2025
script: sh test.sh
21-
if: env(deploy) IS NOT present
2226
- # stage name not required
23-
python: "3.5"
27+
python: "3.9"
2428
script: sh test.sh
25-
if: env(deploy) IS NOT present
2629
- # stage name not required
27-
python: "3.6"
30+
python: "3.10"
2831
script: sh test.sh
2932
- # stage name not required
3033
python: "pypy"

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [2.177.0] - 2022-08-03
10+
### Added
11+
- add support for commenter permissions
12+
- add base URL for smartsheet.eu
13+
- add `level` parameter to get_row
14+
15+
### Changed
16+
- pull updates for Python 3.10 compatibility
17+
- update setup and readme for Python version 3.7 - 3.10
18+
- update EnumeratedValue `__eq__` method to handle comparisons to NoneType
19+
20+
### Fixed
21+
- separate `DatetimeObjectValue` from `DateObjectValue` to fix Sheet Summary Field serialization
22+
923
## [2.105.1] - 2020-10-15
1024
### Fixed
1125
- don't add time offset to date types when serializing

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Smartsheet Python SDK
2-
Copyright 2016 Smartsheet.com, Inc.
2+
Copyright 2016-2021 Smartsheet.com, Inc.
33

44
Portions of this software were developed by SmartBear Software under
55
the Apache License, Version 2.0. The original software is available

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
This library is intended to simplify connecting to the [Smartsheet API](https://smartsheet.redoc.ly) from Python applications.
44

55
## System Requirements
6-
The SDK currently supports Python 2.7, 3.4, 3.5, 3.6, pypy, and pypy3.
7-
**Note:** Python version 3.4 or higher is required for Unicode support, for example, if your Smartsheet data includes non-ASCII characters.
6+
The SDK currently supports Python 3.6, 3.7, 3.8, 3.9, pypy, and pypy3. Integrations built on previous versions may still function, but Smartsheet recommends staying current with the Python end-of-life guidelines.
7+
**Note:** Python version 3.6 or higher is required for Unicode support, for example, if your Smartsheet data includes non-ASCII characters.
88

99
The following packages are required.
1010

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ applications.
88
System Requirements
99
-------------------
1010

11-
The SDK currently supports Python 2.7, 3.4, 3.5, 3.6, pypy, and pypy3.
11+
The SDK currently supports Python 3.6, 3.7, 3.8, 3.9, 3.10, pypy, and pypy3.
1212
The following packages are required.
1313

1414
- `requests <https://pypi.python.org/pypi/requests>`__

docs-source/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Getting started is easy:
1919
>>> import smartsheet
2020
#. Refer to the `Smartsheet API Documentation`_ for dozens of Python SDK usage examples.
2121

22-
.. _direct API access: https://smartsheet-platform.github.io/api-docs/index.html#direct-api-access
23-
.. _smartsheet page on the Python Package Index: http://pypi.python.org/pypi/smartsheet-python-sdk
24-
.. _Smartsheet API Documentation: https://smartsheet-platform.github.io/api-docs/index.html?python
22+
##. _direct API access: https://smartsheet-platform.github.io/api-docs/index.html#direct-api-access
23+
##. _smartsheet page on the Python Package Index: http://pypi.python.org/pypi/smartsheet-python-sdk
24+
##. _Smartsheet API Documentation: https://smartsheet-platform.github.io/api-docs/index.html?python
2525

2626
API Documentation
2727
-----------------
2828

2929
If you are looking for information on a specific function, class or method,
3030
this part of the documentation is for you.
3131

32-
.. toctree::
32+
##. toctree::
3333
:maxdepth: 1
3434

3535
smartsheet

docs/_sources/index.rst.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Getting started is easy:
1919
>>> import smartsheet
2020
#. Refer to the `Smartsheet API Documentation`_ for dozens of Python SDK usage examples.
2121

22-
.. _direct API access: https://smartsheet-platform.github.io/api-docs/index.html#direct-api-access
23-
.. _smartsheet page on the Python Package Index: http://pypi.python.org/pypi/smartsheet-python-sdk
24-
.. _Smartsheet API Documentation: https://smartsheet-platform.github.io/api-docs/index.html?python
22+
##. _direct API access: https://smartsheet-platform.github.io/api-docs/index.html#direct-api-access
23+
##. _smartsheet page on the Python Package Index: http://pypi.python.org/pypi/smartsheet-python-sdk
24+
##. _Smartsheet API Documentation: https://smartsheet-platform.github.io/api-docs/index.html?python
2525

2626
API Documentation
2727
-----------------
2828

2929
If you are looking for information on a specific function, class or method,
3030
this part of the documentation is for you.
3131

32-
.. toctree::
32+
#. toctree::
3333
:maxdepth: 1
3434

3535
smartsheet

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ def run_tests(self):
5454
'Operating System :: OS Independent',
5555
'License :: OSI Approved :: Apache Software License',
5656
'Programming Language :: Python',
57-
'Programming Language :: Python :: 2.7',
5857
'Programming Language :: Python :: 3.4',
5958
'Programming Language :: Python :: 3.5',
6059
'Programming Language :: Python :: 3.6',
60+
'Programming Language :: Python :: 3.7',
61+
'Programming Language :: Python :: 3.8',
62+
'Programming Language :: Python :: 3.9',
6163
'Programming Language :: Python :: Implementation :: PyPy',
6264
'Programming Language :: Python :: Implementation :: CPython',
6365
'Topic :: Software Development :: Libraries :: Python Modules',

smartsheet/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pylint: disable=C0111,C0413
22
# Smartsheet Python SDK.
33
#
4-
# Copyright 2016 Smartsheet.com, Inc.
4+
# Copyright 2016-2021 Smartsheet.com, Inc.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License"): you may
77
# not use this file except in compliance with the License. You may obtain
@@ -18,6 +18,7 @@
1818
from __future__ import absolute_import
1919

2020
__api_base__ = 'https://api.smartsheet.com/2.0'
21+
__eu_base__ = 'https://api.smartsheet.eu/2.0'
2122
__gov_base__ = 'https://api.smartsheetgov.com/2.0'
2223
__api_version__ = '2.0'
2324

smartsheet/models/date_object_value.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
class DateObjectValue(ObjectValue):
2727
"""Smartsheet DateObjectValue data model."""
2828

29-
def __init__(self, props=None, object_type=None, base_obj=None):
29+
def __init__(self, props=None, base_obj=None):
3030
"""Initialize the DateObjectValue model."""
31-
super(DateObjectValue, self).__init__(object_type, base_obj)
31+
super(DateObjectValue, self).__init__(base_obj)
3232
self._base = None
3333
if base_obj is not None:
3434
self._base = base_obj
@@ -50,5 +50,5 @@ def value(self, value):
5050
self._value = value
5151
else:
5252
if isinstance(value, six.string_types):
53-
value = parse(value)
53+
value = parse(value).date()
5454
self._value = value

0 commit comments

Comments
 (0)