Skip to content

Commit 2ed5ee5

Browse files
authored
chore: remove references to conda (#795)
See also, internal change 650726157. Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/python-bigquery-pandas/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) 🦕
1 parent ea64e59 commit 2ed5ee5

File tree

10 files changed

+10
-181
lines changed

10 files changed

+10
-181
lines changed

.kokoro/build.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2023 Google LLC
2+
# Copyright 2024 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -23,28 +23,16 @@ cd "${PROJECT_ROOT}"
2323

2424
# Disable buffering, so that the logs stream through.
2525
export PYTHONUNBUFFERED=1
26-
export CONDA_EXE=/root/conda/bin/conda
27-
export CONDA_PREFIX=/root/conda
28-
export CONDA_PROMPT_MODIFIER=(base)
29-
export _CE_CONDA=
30-
export CONDA_SHLVL=1
31-
export CONDA_PYTHON_EXE=/root/conda/bin/python
32-
export CONDA_DEFAULT_ENV=base
33-
export PATH=/root/conda/bin:/root/conda/condabin:${PATH}
34-
3526

3627
# Debug: show build environment
37-
env
28+
env | grep KOKORO
3829

3930
# Setup service account credentials.
4031
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
4132

4233
# Setup project id.
4334
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
4435

45-
# Install nox
46-
python3 -m pip install --upgrade --quiet nox
47-
4836
# If this is a continuous build, send the test log to the FlakyBot.
4937
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
5038
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then

.kokoro/presubmit/conda_test.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
### Bug Fixes
77

88
* Handle None when converting numerics to parquet ([#768](https://github.com/googleapis/python-bigquery-pandas/issues/768)) ([53a4683](https://github.com/googleapis/python-bigquery-pandas/commit/53a46833a320963d5c15427f6eb631e0199fb332))
9-
* Set minimum allowable version of sqlite when performing a conda install ([#780](https://github.com/googleapis/python-bigquery-pandas/issues/780)) ([8a03d44](https://github.com/googleapis/python-bigquery-pandas/commit/8a03d44fbe125ae1202f43b7c6e54c98eca94d4d))
109

1110

1211
### Documentation
@@ -369,8 +368,6 @@ df = gbq.read_gbq(
369368
([#281](https://github.com/googleapis/python-bigquery-pandas/issues/281))
370369
- Fix `pytest.raises` usage for latest pytest. Fix warnings in tests.
371370
([#282](https://github.com/googleapis/python-bigquery-pandas/issues/282))
372-
- Update CI to install nightly packages in the conda tests.
373-
([#254](https://github.com/googleapis/python-bigquery-pandas/issues/254))
374371

375372
## 0.10.0 / 2019-04-05
376373

README.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pandas-gbq
22
==========
33

4-
|preview| |pypi| |versions|
4+
|preview| |pypi| |versions|
55

66
**pandas-gbq** is a package providing an interface to the Google BigQuery API from pandas.
77

@@ -20,14 +20,6 @@ pandas-gbq
2020
Installation
2121
------------
2222

23-
24-
Install latest release version via conda
25-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26-
27-
.. code-block:: shell
28-
29-
$ conda install pandas-gbq --channel conda-forge
30-
3123
Install latest release version via pip
3224
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3325

@@ -52,7 +44,7 @@ Perform a query
5244
.. code:: python
5345
5446
import pandas_gbq
55-
47+
5648
result_dataframe = pandas_gbq.read_gbq("SELECT column FROM dataset.table WHERE value = 'something'")
5749
5850
Upload a dataframe
@@ -61,7 +53,7 @@ Upload a dataframe
6153
.. code:: python
6254
6355
import pandas_gbq
64-
56+
6557
pandas_gbq.to_gbq(dataframe, "dataset.table")
6658
6759
More samples

docs/contributing.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,31 +145,9 @@ Install in Development Mode
145145
It's helpful to install pandas-gbq in development mode so that you can
146146
use the library without reinstalling the package after every change.
147147

148-
Conda
149-
~~~~~
150-
151-
Create a new conda environment and install the necessary dependencies
152-
153-
.. code-block:: shell
154-
155-
$ conda create -n my-env --channel conda-forge \
156-
db-dtypes \
157-
pandas \
158-
pydata-google-auth \
159-
google-cloud-bigquery
160-
$ source activate my-env
161-
162-
Install pandas-gbq in development mode
163-
164-
.. code-block:: shell
165-
166-
$ python setup.py develop
167-
168148
Pip & virtualenv
169149
~~~~~~~~~~~~~~~~
170150

171-
*Skip this section if you already followed the conda instructions.*
172-
173151
Create a new `virtual
174152
environment <https://virtualenv.pypa.io/en/stable/userguide/>`__.
175153

docs/install.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
Installation
22
============
33

4-
You can install pandas-gbq with ``conda``, ``pip``, or by installing from source.
4+
You can install pandas-gbq with ``pip`` or by installing from source.
55

6-
Conda
7-
-----
8-
9-
.. code-block:: shell
10-
11-
$ conda install pandas-gbq --channel conda-forge
12-
13-
This installs pandas-gbq and all common dependencies, including ``pandas``.
146

157
Pip
168
---

docs/reading.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ quickly (but at an `increased cost
103103
104104
pip install --upgrade google-cloud-bigquery-storage pyarrow
105105
106-
With conda:
107-
108-
.. code-block:: sh
109-
110-
conda install -c conda-forge google-cloud-bigquery-storage
111106
#. Set ``use_bqstorage_api`` to ``True`` when calling the
112107
:func:`~pandas_gbq.read_gbq` function. As of the ``google-cloud-bigquery``
113108
package, version 1.11.1 or later,the function will fallback to the

noxfile.py

Lines changed: 2 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import pathlib
2424
import re
2525
import shutil
26-
import subprocess
2726
import time
2827
import warnings
2928

@@ -57,11 +56,6 @@
5756
"3.9": [],
5857
}
5958

60-
CONDA_TEST_PYTHON_VERSIONS = [
61-
UNIT_TEST_PYTHON_VERSIONS[0],
62-
UNIT_TEST_PYTHON_VERSIONS[-1],
63-
]
64-
6559
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
6660
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6761
"mock",
@@ -316,21 +310,14 @@ def system(session):
316310
@_calculate_duration
317311
def prerelease(session):
318312
session.install(
313+
# https://arrow.apache.org/docs/developers/python.html#installing-nightly-packages
319314
"--extra-index-url",
320315
"https://pypi.fury.io/arrow-nightlies/",
321316
"--prefer-binary",
322317
"--pre",
323318
"--upgrade",
324319
"pyarrow",
325320
)
326-
session.install(
327-
"--extra-index-url",
328-
"https://pypi.anaconda.org/scipy-wheels-nightly/simple",
329-
"--prefer-binary",
330-
"--pre",
331-
"--upgrade",
332-
"pandas",
333-
)
334321
session.install(
335322
"--prefer-binary",
336323
"--pre",
@@ -342,6 +329,7 @@ def prerelease(session):
342329
"google-resumable-media",
343330
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
344331
"grpcio!=1.49.0rc1",
332+
"pandas",
345333
)
346334
session.install(
347335
"freezegun",
@@ -504,86 +492,3 @@ def docfx(session):
504492
os.path.join("docs", ""),
505493
os.path.join("docs", "_build", "html", ""),
506494
)
507-
508-
509-
def install_conda_unittest_dependencies(session, standard_deps, conda_forge_packages):
510-
"""Installs packages from conda forge, pypi, and locally."""
511-
512-
# Install from conda-forge and default conda package repos.
513-
session.conda_install(*conda_forge_packages, channel=["defaults", "conda-forge"])
514-
515-
# Install from pypi for packages not readily available on conda forge.
516-
session.install(
517-
*standard_deps,
518-
)
519-
520-
# Install via pip from the local repo, avoid doing dependency resolution
521-
# via pip, so that we don't override any conda resolved dependencies
522-
session.install("-e", ".", "--no-deps")
523-
524-
525-
@nox.session(python=CONDA_TEST_PYTHON_VERSIONS, venv_backend="mamba")
526-
@_calculate_duration
527-
def conda_test(session):
528-
"""Run test suite in a conda virtual environment.
529-
530-
Installs all test dependencies, then installs this package.
531-
NOTE: Some of these libraries are not readily available on conda-forge
532-
at this time and are thus installed using pip after the base install of
533-
libraries from conda-forge.
534-
535-
We decided that it was more important to prove a base ability to install
536-
using conda than to complicate things with adding a whole nother
537-
set of constraints just for a conda install, so this install does not
538-
attempt to constrain packages (i.e. in a constraints-x.x.txt file)
539-
manually.
540-
"""
541-
542-
standard_deps = (
543-
UNIT_TEST_STANDARD_DEPENDENCIES
544-
+ UNIT_TEST_DEPENDENCIES
545-
+ UNIT_TEST_EXTERNAL_DEPENDENCIES
546-
)
547-
548-
conda_forge_packages = [
549-
"db-dtypes",
550-
"google-api-core",
551-
"google-auth",
552-
"google-auth-oauthlib",
553-
"google-cloud-bigquery",
554-
"google-cloud-bigquery-storage",
555-
"numpy",
556-
"pandas",
557-
"pyarrow",
558-
"pydata-google-auth",
559-
"tqdm",
560-
"protobuf",
561-
"sqlite>3.31.1", # v3.31.1 caused test failures
562-
]
563-
564-
install_conda_unittest_dependencies(session, standard_deps, conda_forge_packages)
565-
566-
# Provide a list of all installed packages (both from conda forge and pip)
567-
# for troubleshooting purposes.
568-
session.run("mamba", "list")
569-
570-
# Using subprocess.run() instead of session.run() because
571-
# session.run() does not correctly handle the pip check command.
572-
subprocess.run(
573-
["pip", "check"], check=True
574-
) # Raise an exception if pip check fails
575-
576-
# Tests are limited to unit tests only, at this time.
577-
session.run(
578-
"py.test",
579-
"--quiet",
580-
f"--junitxml=unit_{session.python}_sponge_log.xml",
581-
"--cov=pandas_gbq",
582-
"--cov=tests/unit",
583-
"--cov-append",
584-
"--cov-config=.coveragerc",
585-
"--cov-report=",
586-
"--cov-fail-under=0",
587-
os.path.join("tests", "unit"),
588-
*session.posargs,
589-
)

owlbot.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,9 @@
5656
"docs/multiprocessing.rst",
5757
"noxfile.py",
5858
"README.rst",
59-
60-
# exclude .kokoro/build.sh which is customized due to support for conda
61-
".kokoro/build.sh",
62-
6359
# exclude this file as we have an alternate prerelease.cfg
6460
".kokoro/presubmit/prerelease-deps.cfg",
65-
]
61+
],
6662
)
6763

6864
# ----------------------------------------------------------------------------

release-procedure.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333

3434
twine upload dist/*
3535

36-
* Create the [release on GitHub](https://github.com/pydata/pandas-gbq/releases/new) using the tag created earlier.
36+
* Create the [release on GitHub](https://github.com/googleapis/python-bigquery-pandas/releases/new) using the tag created earlier.
3737

3838
* Upload wheel and source zip from `dist/` directory.
39-
40-
* Do a pull-request to the feedstock on `pandas-gbq-feedstock <https://github.com/conda-forge/pandas-gbq-feedstock/>`__
41-
(Or review PR from @regro-cf-autotick-bot which updates the feedstock).
42-
43-
* update the version
44-
* update the SHA256 (retrieve from PyPI)
45-
* update the dependencies (if they changed)

0 commit comments

Comments
 (0)