Skip to content

Commit 7d7ca93

Browse files
committed
fix: Updates noxfile with pip freeze and pandas 1.2
1 parent 490cd61 commit 7d7ca93

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

noxfile.py

+13
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def lint(session):
8888
serious code quality issues.
8989
"""
9090
session.install(FLAKE8_VERSION, BLACK_VERSION)
91+
session.run("python", "-m", "pip", "freeze")
9192
session.run(
9293
"black",
9394
"--check",
@@ -100,6 +101,7 @@ def lint(session):
100101
def blacken(session):
101102
"""Run black. Format code to uniform standard."""
102103
session.install(BLACK_VERSION)
104+
session.run("python", "-m", "pip", "freeze")
103105
session.run(
104106
"black",
105107
*LINT_PATHS,
@@ -115,6 +117,7 @@ def format(session):
115117
session.install(BLACK_VERSION, ISORT_VERSION)
116118
# Use the --fss option to sort imports using strict alphabetical order.
117119
# See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections
120+
session.run("python", "-m", "pip", "freeze")
118121
session.run(
119122
"isort",
120123
"--fss",
@@ -130,6 +133,7 @@ def format(session):
130133
def lint_setup_py(session):
131134
"""Verify that setup.py is valid (including RST check)."""
132135
session.install("docutils", "pygments")
136+
session.run("python", "-m", "pip", "freeze")
133137
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
134138

135139

@@ -169,6 +173,8 @@ def default(session, tests_path):
169173
)
170174
install_unittest_dependencies(session, "-c", constraints_path)
171175

176+
session.run("python", "-m", "pip", "freeze")
177+
172178
# Run py.test against the unit tests.
173179
session.run(
174180
"py.test",
@@ -342,6 +348,8 @@ def system(session):
342348

343349
install_systemtest_dependencies(session, "-c", constraints_path)
344350

351+
session.run("python", "-m", "pip", "freeze")
352+
345353
# Run py.test against the system tests.
346354
if system_test_exists:
347355
session.run(
@@ -371,6 +379,8 @@ def cover(session):
371379
test runs (not system test runs), and then erases coverage data.
372380
"""
373381
session.install("coverage", "pytest-cov")
382+
session.run("python", "-m", "pip", "freeze")
383+
374384
session.run("coverage", "report", "--show-missing", "--fail-under=100")
375385

376386
session.run("coverage", "erase")
@@ -397,6 +407,7 @@ def docs(session):
397407
)
398408

399409
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
410+
session.run("python", "-m", "pip", "freeze")
400411
session.run(
401412
"sphinx-build",
402413
"-W", # warnings as errors
@@ -432,6 +443,7 @@ def docfx(session):
432443
)
433444

434445
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
446+
session.run("python", "-m", "pip", "freeze")
435447
session.run(
436448
"sphinx-build",
437449
"-T", # show full traceback on exception
@@ -515,6 +527,7 @@ def prerelease_deps(session):
515527
"requests",
516528
]
517529
session.install(*other_deps)
530+
session.run("python", "-m", "pip", "freeze")
518531

519532
# Print out prerelease package versions
520533
session.run(

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
dependencies = [
3333
"packaging >= 17.0",
34-
"pandas >= 0.24.2",
34+
"pandas >= 1.2.0",
3535
"pyarrow>=3.0.0",
3636
"numpy >= 1.16.6",
3737
]

testing/constraints-3.7.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#
66
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev",
77
packaging==17.0
8-
# Make sure we test with pandas 0.24.2. The Python version isn't that relevant.
9-
pandas==0.24.2
8+
pandas==1.2.0
109
pyarrow==3.0.0
1110
numpy==1.16.6

0 commit comments

Comments
 (0)