Skip to content

Commit

Permalink
Release/v1.12.0 (#556)
Browse files Browse the repository at this point in the history
* Remove support for python 3.5

Remove support for python 3.5

* Remove support for python 3.5

Remove support for python 3.5

* Update __version__.py

update version to v1.12.0

* Implement wait param in non-query bulk operations (#545)

* Implement wait param in non-query bulk operations

Add the wait parameter to workers spawned from _bulk_operation for
non-query calls (it already exists for query calls).

* Mimic formatting

Co-authored-by: David Arcuri <david.arcuri@consultch.com>

* Add optional flag use ordinary dict (#548)

* add object_pairs_hook option

* add object_pairs_hook to SFType

* set attribute _object_pairs_hook

* modify param desc to pass line limit pylint

* added tests

* updated corrected tests

* Update test_api.py

fix result = client.query to match response mock in test_query_parse_to_json_to_Dict and test_query_parse_to_json_to_OrderedDict

* Update test_api.py

update test names to fix pylint invalid-name

* fix trailing whitespace

fix trailing whitespace

Co-authored-by: JonWobken <49450080+jon-wobken@users.noreply.github.com>

* create dynamic sized batches to respect bulk api limits (#546)

* add autosize feature

* add docstring

* add support for char_limit

Co-authored-by: Hal Ali <hal.ali@agilebits.com>

* Feature/release/v1.12.0/refresh session (#555)

* FEAT: refresh sessions automatically (#507)

* add support for refreshing sessions automatically

* recalculate headers with new session_id

* fix tests

* extend support to SFType objects as well

* reach into Salesforce from SFType to refresh session

* fix session_id getter

* rearrange arguments when creating SFType

* Update CHANGES

* Added upload_base64, update_base64, get_base64 functionality (#485)

Co-authored-by: Adam <adamm@ownbackup.com>

* Added support for all metadata api operations (#475)

* Added support for all metadata api operations

* Update metadata.py to support bulk api like syntax

* Update metadata.py

* Update metadata.py

* Fixed docstrings

* Update metadata.py

Changed new() method to __call__ for easier syntax when creating new objects. Added flag to  zeep settings so that out of order complex types are parsed successfully in read response

* Update metadata.py

* Added documentation for metadata API operations

* Update MANIFEST.in

* Update metadata.py

* Update api.py

* Update metadata.py

* Update metadata.py

* Update metadata.py

* Update metadata.py

* Moved sandbox from class variable to method parameter

* Update api.py

Co-authored-by: pdahiya <pdahiya@commvault.com>

* Issue #517 Fixing hanging batch results in worker. (#518)

* Issue #517 Fixing hanging batch results in worker.

* Issue #517 Found another use of Not Processed and changed to NotProcessed.

Co-authored-by: Martin Gardner (Slalom) <martin.gardner@slalom.com>

* Update default api version to Winter 22 (#515)

Co-authored-by: JonWobken <49450080+jon-wobken@users.noreply.github.com>

* update link for sfdc jwt (#512)

* Add parse_float function to allow parsing floats to decimal.Decimal (#495)

* Add parse_float function to allow parsing floats to decimal.Decimal

* Refactor json parsing into separate functions

* Fix linting

* Add parse_float test to SFType tests

* Fix linting in test

* Check types in test for SFType

Co-authored-by: JonWobken <49450080+jon-wobken@users.noreply.github.com>

* Update __version__.py

* Update CHANGES

* Update .pylintrc

* Update metadata.py

fix pylint line too long

* Update api.py

fix pylint line too long

* Update .travis.yml

fix travis-ci cryptography build error

* Update api.py

fix formatting error in update_base64

* Update metadata.py

* Update api.py

* Update .travis.yml

fix travis-ci cryptography build

* Add kwargs to query_more call in query_all_iter (#524)

* Update .travis.yml

fix travis-ci cryography compile

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update setup.py

fix travis-ci pyp3 build error with crytography

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

remove pypy3 failing due to cartography build

* Update api.py

fix pylint trailing whitespaces/line too long

* Update api.py

fix pylint errors (white space, line too long, too many lines)

* Update api.py

* Update api.py

fix pylint errors

* Update api.py

Ignore protected class

* Update test_api.py

pylint disable W0212

Co-authored-by: JonWobken <49450080+jon-wobken@users.noreply.github.com>
Co-authored-by: Adam Mahameed <23741427+adam-mah@users.noreply.github.com>
Co-authored-by: Adam <adamm@ownbackup.com>
Co-authored-by: Pranav Dahiya <31065394+pranav-dahiya@users.noreply.github.com>
Co-authored-by: pdahiya <pdahiya@commvault.com>
Co-authored-by: magardner <magardner@users.noreply.github.com>
Co-authored-by: Martin Gardner (Slalom) <martin.gardner@slalom.com>
Co-authored-by: Uli Stärk <github@uli-staerk.de>
Co-authored-by: Matthew Nataloni <27374786+men6288@users.noreply.github.com>
Co-authored-by: Timo <6358247+timotk@users.noreply.github.com>
Co-authored-by: will-hall <77327489+will-hall@users.noreply.github.com>

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update api.py

* Update .pylintrc

Co-authored-by: Noah Cardoza <noahcardoza@gmail.com>
Co-authored-by: Adam Mahameed <23741427+adam-mah@users.noreply.github.com>
Co-authored-by: Adam <adamm@ownbackup.com>
Co-authored-by: Pranav Dahiya <31065394+pranav-dahiya@users.noreply.github.com>
Co-authored-by: pdahiya <pdahiya@commvault.com>
Co-authored-by: magardner <magardner@users.noreply.github.com>
Co-authored-by: Martin Gardner (Slalom) <martin.gardner@slalom.com>
Co-authored-by: Uli Stärk <github@uli-staerk.de>
Co-authored-by: Matthew Nataloni <27374786+men6288@users.noreply.github.com>
Co-authored-by: Timo <6358247+timotk@users.noreply.github.com>
Co-authored-by: will-hall <77327489+will-hall@users.noreply.github.com>

* Support OAuth2 endpoint APIs (#550)

OAuth Endpoints (https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_endpoints.htm&type=5)

Co-authored-by: JonWobken <49450080+jon-wobken@users.noreply.github.com>

* Update CHANGES

Co-authored-by: David A <45184827+Haeilifax@users.noreply.github.com>
Co-authored-by: David Arcuri <david.arcuri@consultch.com>
Co-authored-by: sohith <77746813+sohithkumar@users.noreply.github.com>
Co-authored-by: Hal Ali <haleemur@users.noreply.github.com>
Co-authored-by: Hal Ali <hal.ali@agilebits.com>
Co-authored-by: Noah Cardoza <noahcardoza@gmail.com>
Co-authored-by: Adam Mahameed <23741427+adam-mah@users.noreply.github.com>
Co-authored-by: Adam <adamm@ownbackup.com>
Co-authored-by: Pranav Dahiya <31065394+pranav-dahiya@users.noreply.github.com>
Co-authored-by: pdahiya <pdahiya@commvault.com>
Co-authored-by: magardner <magardner@users.noreply.github.com>
Co-authored-by: Martin Gardner (Slalom) <martin.gardner@slalom.com>
Co-authored-by: Uli Stärk <github@uli-staerk.de>
Co-authored-by: Matthew Nataloni <27374786+men6288@users.noreply.github.com>
Co-authored-by: Timo <6358247+timotk@users.noreply.github.com>
Co-authored-by: will-hall <77327489+will-hall@users.noreply.github.com>
Co-authored-by: Hiroki Kajiwara <hkajiwara@gmail.com>
  • Loading branch information
18 people committed Jul 13, 2022
1 parent c875b0e commit 45f21e6
Show file tree
Hide file tree
Showing 8 changed files with 339 additions and 114 deletions.
16 changes: 8 additions & 8 deletions .pylintrc
Expand Up @@ -8,7 +8,7 @@
#init-hook=

# Profiled execution.
profile=no
# profile=no

# Add files or directories to the blacklist. They should be base names, not
# paths.
Expand Down Expand Up @@ -38,7 +38,7 @@ load-plugins=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=consider-using-f-string,too-many-public-methods,too-few-public-methods,no-member,super-on-old-class,too-many-ancestors,I0011,deprecated-disable-all,file-ignored,import-error,no-name-in-module,maybe-no-member,fixme,duplicate-code,cyclic-import,wrong-import-order,wrong-import-position,ungrouped-imports,redefined-variable-type,bad-continuation,len-as-condition
disable=consider-using-f-string,too-many-public-methods,too-few-public-methods,no-member,too-many-ancestors,I0011,deprecated-disable-all,file-ignored,import-error,no-name-in-module,maybe-no-member,fixme,duplicate-code,cyclic-import,wrong-import-order,wrong-import-position,ungrouped-imports,len-as-condition


[REPORTS]
Expand All @@ -51,7 +51,7 @@ output-format=colorized
# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
files-output=no
# files-output=no

# Tells whether to display a full report or only the messages
reports=yes
Expand All @@ -65,7 +65,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme

# Add a comment according to your evaluation note. This is used by the global
# evaluation report (RP0004).
comment=no
# comment=no

# Template used to display messages. This is a python new-style format string
# used to format the massage information. See doc for all details
Expand All @@ -75,10 +75,10 @@ comment=no
[BASIC]

# Required attributes for module, separated by a comma
required-attributes=
# required-attributes=

# List of builtins function names that should not be used, separated by a comma
bad-functions=map,filter,apply,input
# bad-functions=map,filter,apply,input

# Regular expression which should only match correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
Expand Down Expand Up @@ -176,7 +176,7 @@ ignored-classes=SQLObject

# When zope mode is activated, add a predefined set of Zope acquired attributes
# to generated-members.
zope=no
# zope=no

# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E0201 when accessed. Python regular
Expand All @@ -202,7 +202,7 @@ additional-builtins=

# List of interface methods to ignore, separated by a comma. This is used for
# instance to not check methods defines in Zope's Interface base class.
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
# ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by

# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,6 @@ os: linux
dist: bionic
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
Expand All @@ -17,6 +16,7 @@ before_install:
- python -m pip install --upgrade virtualenv
install:
- pip install -U tox
- pip install --force-reinstall setuptools==59.5.0
script: tox
notifications:
email: false
Expand Down
11 changes: 11 additions & 0 deletions CHANGES
@@ -1,3 +1,14 @@
v1.12.0
======
Drop support for Python 3.5

Features
--------
- [#507] Added automatic session refresh
- [#546] Added dynamic sized batches to respect bulk api limits
- [#548] Added optional dict flag for results returned in queries
- [#550] Added support for OAuth2 endpoints

v1.11.5
======
Hotfix missing wsdl file
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -49,7 +49,6 @@
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down
2 changes: 1 addition & 1 deletion simple_salesforce/__version__.py
Expand Up @@ -5,7 +5,7 @@
__title__ = 'simple-salesforce'
__description__ = 'A basic Salesforce.com REST API client.'
__url__ = 'https://github.com/simple-salesforce/simple-salesforce'
__version__ = '1.11.6'
__version__ = '1.12.0'
__author__ = 'Nick Catalano'
__author_email__ = 'nickcatal@gmail.com'
__license__ = 'Apache 2.0'
Expand Down

0 comments on commit 45f21e6

Please sign in to comment.