Skip to content

Commit 5d29d1f

Browse files
authored
Merge pull request #314 from ej2/0.9.4
0.9.4 Release
2 parents 9d7e4a5 + e9d8606 commit 5d29d1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+340
-457
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=========
3+
* 0.9.4 (August 29, 2023)
4+
* Removed python 2 compatible decorators
5+
* Removed python 2 dependencies
6+
* Fixed issue with MarkupInfo field on AccountBasedExpenseLineDetail
7+
* Removed test files from package
8+
39
* 0.9.3 (March 7, 2023)
410
* Added support for Recurring Transaction
511
* Added support for optional query params

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include README.md
22
include LICENSE
3-
recursive-include tests *
3+
recursive-exclude tests *

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
publish: clean
32
python setup.py sdist
43
twine upload dist/*

Pipfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ urllib3 = ">=1.26.5"
1010
bleach = ">=3.3.0"
1111
intuit-oauth = "==1.2.4"
1212
rauth = ">=0.7.3"
13-
requests = ">=2.26.0"
14-
simplejson = ">=3.17.0"
15-
six = ">=1.14.0"
13+
requests = ">=2.31.0"
14+
simplejson = ">=3.19.1"
1615
nose = "*"
1716
coverage = "*"
1817
twine = "*"

Pipfile.lock

Lines changed: 289 additions & 280 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python-quickbooks
44
[![Python package](https://github.com/ej2/python-quickbooks/actions/workflows/python-package.yml/badge.svg)](https://github.com/ej2/python-quickbooks/actions/workflows/python-package.yml)
55
[![Coverage Status](https://coveralls.io/repos/github/ej2/python-quickbooks/badge.svg?branch=master)](https://coveralls.io/github/ej2/python-quickbooks?branch=master)
66
[![](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/ej2/python-quickbooks/blob/master/LICENSE)
7+
[![PyPI](https://img.shields.io/pypi/v/python-quickbooks)](https://pypi.org/project/python-quickbooks/)
78

89
A Python 3 library for accessing the Quickbooks API. Complete rework of
910
[quickbooks-python](https://github.com/troolee/quickbooks-python).
@@ -14,6 +15,13 @@ You can find additional examples of usage in [Integration tests folder](https://
1415

1516
For information about contributing, see the [Contributing Page](https://github.com/ej2/python-quickbooks/blob/master/contributing.md).
1617

18+
Installation
19+
------------
20+
21+
```bash
22+
pip install python-quickbooks
23+
```
24+
1725
QuickBooks OAuth
1826
------------------------------------------------
1927

dev_requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
coverage==6.4.2
2-
ipdb==0.13.9
3-
mock==2.0.0
1+
coverage==7.3.0
2+
ipdb==0.13.13
3+
mock==5.1.0
44
nose==1.3.7

quickbooks/mixins.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from future.moves.urllib.parse import quote
1+
from urllib.parse import quote
22

33
try: import simplejson as json
44
except ImportError: import json
55

6-
import six
76
from .utils import build_where_clause, build_choose_clause
87
from .client import QuickBooks
98
from .exceptions import QuickbooksException
@@ -70,14 +69,9 @@ def to_dict(obj, classkey=None):
7069
elif hasattr(obj, "__iter__") and not isinstance(obj, str):
7170
return [to_dict(v, classkey) for v in obj]
7271
elif hasattr(obj, "__dict__"):
73-
if six.PY2:
74-
data = dict([(key, to_dict(value, classkey))
75-
for key, value in obj.__dict__.iteritems()
76-
if not callable(value) and not key.startswith('_')])
77-
else:
78-
data = dict([(key, to_dict(value, classkey))
79-
for key, value in obj.__dict__.items()
80-
if not callable(value) and not key.startswith('_')])
72+
data = dict([(key, to_dict(value, classkey))
73+
for key, value in obj.__dict__.items()
74+
if not callable(value) and not key.startswith('_')])
8175

8276
if classkey is not None and hasattr(obj, "__class__"):
8377
data[classkey] = obj.__class__.__name__

quickbooks/objects/account.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
from six import python_2_unicode_compatible
21
from .base import Ref, QuickbooksManagedObject, QuickbooksTransactionEntity
32

43

5-
@python_2_unicode_compatible
64
class Account(QuickbooksManagedObject, QuickbooksTransactionEntity):
75
"""
86
QBO definition: Account is a component of a Chart Of Accounts, and is part of a Ledger. Used to record a total

quickbooks/objects/attachable.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from six import python_2_unicode_compatible
21
from .base import Ref, QuickbooksManagedObject, QuickbooksTransactionEntity, AttachableRef
32
from ..client import QuickBooks
43
from ..mixins import DeleteMixin
54

65

7-
@python_2_unicode_compatible
86
class Attachable(DeleteMixin, QuickbooksManagedObject, QuickbooksTransactionEntity):
97
"""
108
QBO definition: This page covers the Attachable, Upload, and Download resources used for attachment management. Attachments are supplemental information linked to a transaction or Item object. They can be files, notes, or a combination of both.

0 commit comments

Comments
 (0)