File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ profile.html
32
32
/docs /site /*
33
33
pyproject.lock
34
34
/poetry.lock
35
+ setup.py
35
36
36
37
# editor
37
38
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ setup: setup-python
23
23
test :
24
24
@py.test --cov=pendulum --cov-config .coveragerc tests/ -sq
25
25
26
- release : wheels_x64 cp_wheels_x64 wheels_i686 cp_wheels_i686 wheel
26
+ release : wheels_x64 cp_wheels_x64 wheel
27
27
28
28
publish :
29
29
@poetry publish --no-build
Original file line number Diff line number Diff line change 2
2
3
3
import pendulum
4
4
import os
5
+ import struct
5
6
6
7
from math import copysign
7
8
from datetime import datetime , date , timedelta
11
12
with_extensions = os .getenv ("PENDULUM_EXTENSIONS" , "1" ) == "1"
12
13
13
14
try :
14
- if not with_extensions :
15
+ if not with_extensions or struct . calcsize ( "P" ) == 4 :
15
16
raise ImportError ()
16
17
17
18
from ._extensions ._helpers import (
Original file line number Diff line number Diff line change 1
- import re
2
1
import copy
2
+ import os
3
+ import re
4
+ import struct
3
5
4
6
from datetime import datetime , date , time
5
7
from dateutil import parser
6
8
7
9
from .exceptions import ParserError
8
10
11
+ with_extensions = os .getenv ("PENDULUM_EXTENSIONS" , "1" ) == "1"
12
+
9
13
try :
14
+ if not with_extensions or struct .calcsize ("P" ) == 4 :
15
+ raise ImportError ()
16
+
10
17
from ._iso8601 import parse_iso8601
11
18
except ImportError :
12
19
from .iso8601 import parse_iso8601
You can’t perform that action at this time.
0 commit comments