Skip to content

Separate parsing functions out from tslib #17363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Sep 26, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
kludge to move tslibs/parsing to make asv work
  • Loading branch information
jbrockmendel committed Sep 6, 2017
commit e36f8be13ec9aacdf23cff72aa79915d5ea6647e
2 changes: 1 addition & 1 deletion pandas/_libs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from tslib cimport (
_get_dst_info,
_nat_scalar_rules)

from tslibs.parsing import parse_time_string, NAT_SENTINEL
from .parsing import parse_time_string, NAT_SENTINEL

from pandas.tseries import offsets
from pandas.tseries import frequencies
Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/src/inference.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ iNaT = util.get_nat()

cdef bint PY2 = sys.version_info[0] == 2

from pandas._libs.tslibs.parsing import (
from pandas._libs.parsing import (
try_parse_dates,
try_parse_date_and_time,
try_parse_year_month_day,
Expand Down
4 changes: 2 additions & 2 deletions pandas/_libs/tslib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ from khash cimport (
kh_init_int64, kh_int64_t,
kh_resize_int64, kh_get_int64)

from tslibs import parsing # noqa
from tslibs.parsing import ( # noqa
from . import parsing # noqa
from .parsing import ( # noqa
DateParseError,
_format_is_iso,
_DATEUTIL_LEXER_SPLIT,
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class CheckSDist(sdist_class):
_pyxfiles = ['pandas/_libs/lib.pyx',
'pandas/_libs/hashtable.pyx',
'pandas/_libs/tslib.pyx',
'pandas/_libs/tslibs/parsing.pyx',
'pandas/_libs/parsing.pyx',
'pandas/_libs/period.pyx',
'pandas/_libs/index.pyx',
'pandas/_libs/algos.pyx',
Expand Down Expand Up @@ -482,7 +482,7 @@ def pxd(name):
'pxdfiles': ['_libs/hashtable'],
'depends': (['pandas/_libs/src/klib/khash_python.h']
+ _pxi_dep['hashtable'])},
'_libs.tslibs.parsing': {'pyxfile': '_libs/tslibs/parsing'},
'_libs.parsing': {'pyxfile': '_libs/parsing'},
'_libs.tslib': {'pyxfile': '_libs/tslib',
'pxdfiles': ['_libs/src/util', '_libs/lib'],
'depends': tseries_depends,
Expand Down