proteus 7.2.1__py3-none-any.whl → 7.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of proteus might be problematic. Click here for more details.

proteus/__init__.py CHANGED
@@ -10,7 +10,7 @@ from decimal import Decimal
10
10
 
11
11
  import proteus.config
12
12
 
13
- __version__ = "7.2.1"
13
+ __version__ = "7.4.1"
14
14
  __all__ = ['Model', 'Wizard', 'Report']
15
15
 
16
16
  _MODELS = threading.local()
proteus/pyson.py CHANGED
@@ -662,7 +662,8 @@ class DateTime(Date):
662
662
  and not isinstance(now, datetime.datetime)):
663
663
  now = datetime.datetime.combine(now, datetime.time())
664
664
  if not isinstance(now, datetime.datetime):
665
- now = datetime.datetime.utcnow()
665
+ now = datetime.datetime.now(
666
+ datetime.timezone.utc).replace(tzinfo=None)
666
667
  return now + relativedelta(
667
668
  year=dct['y'],
668
669
  month=dct['M'],
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: proteus
3
- Version: 7.2.1
3
+ Version: 7.4.1
4
4
  Summary: Library to access Tryton server as a client
5
5
  Home-page: http://www.tryton.org/
6
- Download-URL: http://downloads.tryton.org/7.2/
6
+ Download-URL: http://downloads.tryton.org/7.4/
7
7
  Author: Tryton
8
8
  Author-email: foundation@tryton.org
9
9
  License: LGPL-3
@@ -34,10 +34,10 @@ License-File: LICENSE
34
34
  Requires-Dist: defusedxml
35
35
  Requires-Dist: python-dateutil
36
36
  Provides-Extra: trytond
37
- Requires-Dist: trytond<7.3,>=7.2; extra == "trytond"
37
+ Requires-Dist: trytond<7.5,>=7.4; extra == "trytond"
38
38
  Provides-Extra: test
39
- Requires-Dist: trytond<7.3,>=7.2; extra == "test"
40
- Requires-Dist: trytond_party<7.3,>=7.2; extra == "test"
39
+ Requires-Dist: trytond<7.5,>=7.4; extra == "test"
40
+ Requires-Dist: trytond_party<7.5,>=7.4; extra == "test"
41
41
 
42
42
  =======================
43
43
  Tryton Scripting Client
@@ -1,6 +1,6 @@
1
- proteus/__init__.py,sha256=ArkZx6V3vQ0hlsnejgtXhA8Py-lpIpuLWYba0tPlxEo,49573
1
+ proteus/__init__.py,sha256=cQZM7x8QLvKGJHqsd8il90qBGSn_LLm8E32JIvHCFFc,49573
2
2
  proteus/config.py,sha256=IfH1s7Dhenga6tZXtntRX6zgKnwQpzf8NkTLr9Mvw_s,13493
3
- proteus/pyson.py,sha256=R4K1oyt2EpbxfsnXEM7EEU-nWclgbQnOPo9tJHoyWQM,22081
3
+ proteus/pyson.py,sha256=SJWnzaugE1yfEvIkdPqCe3BST-g3nc3_56g7sDKbQcE,22137
4
4
  proteus/tests/__init__.py,sha256=ntQJf_2grlorGbYPXySORFaXIlMhvSGhJ9rB2rrhE7g,366
5
5
  proteus/tests/common.py,sha256=rrNCNEyXHLP1Qevs7dkHRkro931hQkMFmk012K-jzIo,454
6
6
  proteus/tests/test_config.py,sha256=0c97M4kSP6YEcDunFn-4BAqRTTk077-Ee0dHSbTY4Rg,1484
@@ -9,9 +9,9 @@ proteus/tests/test_model.py,sha256=zcZBFwDZ0kQVYEVBMulAK6tGk2fJzRvqwnGHHmfow88,1
9
9
  proteus/tests/test_readme.py,sha256=Uhm7QhQiia00qWGhQUqri7_-SYAyNSQfNv74sNb6ReQ,817
10
10
  proteus/tests/test_report.py,sha256=OaDSNQIAyiDM_26glyZPSq2t7xzMDUto6h0EVXmAoZ0,793
11
11
  proteus/tests/test_wizard.py,sha256=vxEhnE578KBxu5ls-rcMA_m8lRUZF8A-vItxWiGsa_I,2150
12
- proteus-7.2.1.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
- proteus-7.2.1.dist-info/METADATA,sha256=3TT5jvI23BIv0PSY43oHFUL_EMgcRQ1-1uxNb2YXywM,5799
14
- proteus-7.2.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
15
- proteus-7.2.1.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
- proteus-7.2.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
- proteus-7.2.1.dist-info/RECORD,,
12
+ proteus-7.4.1.dist-info/LICENSE,sha256=LVyRoc66HRMBoJdRqIQRlJtpzzrgb4eBWrlJwhcC9fc,42788
13
+ proteus-7.4.1.dist-info/METADATA,sha256=moBcwnkh6_CgJ3aGDwuKuhe1ll7At_zyG9d42dN-8t0,5799
14
+ proteus-7.4.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
15
+ proteus-7.4.1.dist-info/top_level.txt,sha256=7LjMNpvlVFgsEJnTt9d28ZE5oRrsViu9ZyORIWB9QeQ,8
16
+ proteus-7.4.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
17
+ proteus-7.4.1.dist-info/RECORD,,