Skip to content
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

chore: release 1.8.0 #69

Merged
merged 1 commit into from
May 9, 2023
Merged

chore: release 1.8.0 #69

merged 1 commit into from
May 9, 2023

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented May 9, 2023

Also:

  • fix(python2.7): remove reference to ModuleNotFoundError which is not present in Python 2.7. Also, it is unnecessary, since it is a subclass of ImportError.
  • docs: add OAuth page to docs table-of-contents to fix Sphinx error

Also:

* fix(python2.7): remove reference to ModuleNotFoundError which is
  not present in Python 2.7. Also, it is unnecessary, since it is a subclass of
  ImportError.
* docs: add OAuth page to docs table-of-contents to fix Sphinx error
@tswast
Copy link
Collaborator Author

tswast commented May 9, 2023

All tests are passing locally.

nox -r
...
nox > Ran multiple sessions:
nox > * unit-2.7: success
nox > * unit-3.6: success
nox > * unit-3.7: success
nox > * unit-3.8: success
nox > * unit-3.9: success
nox > * unit-3.10: success
nox > * system-2.7: success
nox > * system-3.8: success
nox > * cover: success
nox > * lint: success
nox > * lint_setup_py: success
nox > * blacken: success
nox > * docs: success
nox > Running session unit-2.7
nox > Re-using existing virtual environment at .nox/unit-2-7.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-2.7.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-2.7.txt
nox > py.test --quiet --junitxml=unit_2.7_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]Coverage.py warning: Couldn't parse Python file '/Users/swast/src/github.com/pydata/pydata-google-auth/pydata_google_auth/__main__.py' (couldnt-parse)

----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_2.7_sponge_log.xml ------------------------------------


15 passed in 1.07 seconds
nox > Session unit-2.7 was successful.
nox > Running session unit-3.6
nox > Re-using existing virtual environment at .nox/unit-3-6.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.6.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.6.txt
nox > py.test --quiet --junitxml=unit_3.6_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]
----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_3.6_sponge_log.xml ------------------------------------
15 passed in 0.69s
nox > Session unit-3.6 was successful.
nox > Running session unit-3.7
nox > Re-using existing virtual environment at .nox/unit-3-7.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.7.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.7.txt
nox > py.test --quiet --junitxml=unit_3.7_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]
----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_3.7_sponge_log.xml ------------------------------------
15 passed in 0.71s
nox > Session unit-3.7 was successful.
nox > Running session unit-3.8
nox > Re-using existing virtual environment at .nox/unit-3-8.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.8.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.8.txt
nox > py.test --quiet --junitxml=unit_3.8_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]
----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_3.8_sponge_log.xml ------------------------------------
15 passed in 0.73s
nox > Session unit-3.8 was successful.
nox > Running session unit-3.9
nox > Re-using existing virtual environment at .nox/unit-3-9.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.9.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.9.txt
nox > py.test --quiet --junitxml=unit_3.9_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]
----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_3.9_sponge_log.xml ------------------------------------
15 passed in 0.72s
nox > Session unit-3.9 was successful.
nox > Running session unit-3.10
nox > Re-using existing virtual environment at .nox/unit-3-10.
nox > python -m pip install mock pyfakefs pytest pytest-cov -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.10.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.10.txt
nox > py.test --quiet --junitxml=unit_3.10_sponge_log.xml --cov=pydata_google_auth --cov=tests/unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
...............                                                                                                                                                    [100%]
----------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/unit_3.10_sponge_log.xml -----------------------------------
15 passed in 0.65s
nox > Session unit-3.10 was successful.
nox > Running session system-2.7
nox > Re-using existing virtual environment at .nox/system-2-7.
nox > python -m pip install --pre grpcio
nox > python -m pip install mock pyfakefs pytest pytest-cov google-cloud-testutils -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-2.7.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-2.7.txt
nox > py.test --quiet --junitxml=system_2.7_sponge_log.xml --cov=pydata_google_auth --cov=tests/system --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/system
.....                                                                                                                                                              [100%]Coverage.py warning: Couldn't parse Python file '/Users/swast/src/github.com/pydata/pydata-google-auth/pydata_google_auth/__main__.py' (couldnt-parse)

---------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/system_2.7_sponge_log.xml -----------------------------------


5 passed in 20.55 seconds
nox > Session system-2.7 was successful.
nox > Running session system-3.8
nox > Re-using existing virtual environment at .nox/system-3-8.
nox > python -m pip install --pre grpcio
nox > python -m pip install mock pyfakefs pytest pytest-cov google-cloud-testutils -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.8.txt
nox > python -m pip install -e . -c /Users/swast/src/github.com/pydata/pydata-google-auth/testing/constraints-3.8.txt
nox > py.test --quiet --junitxml=system_3.8_sponge_log.xml --cov=pydata_google_auth --cov=tests/system --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/system
.....                                                                                                                                                              [100%]
---------------------------------- generated xml file: /Users/swast/src/github.com/pydata/pydata-google-auth/system_3.8_sponge_log.xml -----------------------------------
5 passed in 10.91s
nox > Session system-3.8 was successful.
nox > Running session cover
nox > Re-using existing virtual environment at .nox/cover.
nox > python -m pip install coverage pytest-cov
nox > coverage report --show-missing --fail-under=60
Name                               Stmts   Miss  Cover   Missing
----------------------------------------------------------------
pydata_google_auth/__init__.py        10      0   100%
pydata_google_auth/__main__.py        36     36     0%   3-108
pydata_google_auth/_version.py       279    154    45%   87-98, 103-106, 117-138, 148-167, 174, 187, 189-223, 242, 246-248, 267, 271, 287, 296-297, 302-309, 320-322, 336, 355-360, 370-377, 390-404, 415-426, 437-446, 458-466, 472, 481, 485-496, 529-530, 541-550
pydata_google_auth/_webserver.py      26      0   100%
pydata_google_auth/auth.py           105     34    68%   37-54, 137, 155, 167, 205-210, 299, 312-321, 347-350, 357-358, 436-443, 486
pydata_google_auth/cache.py           91     15    84%   55-57, 103-106, 123-124, 145-151, 231
pydata_google_auth/exceptions.py       2      0   100%
tests/system/__init__.py               0      0   100%
tests/system/test_auth.py             29      0   100%
tests/unit/__init__.py                 0      0   100%
tests/unit/test_auth.py               51      0   100%
tests/unit/test_cache.py              43      1    98%   27
tests/unit/test_webserver.py          43      0   100%
----------------------------------------------------------------
TOTAL                                715    240    66%
nox > coverage erase
nox > Session cover was successful.
nox > Running session lint
nox > Re-using existing virtual environment at .nox/lint.
nox > python -m pip install flake8 black==22.12.0
nox > black --check docs pydata_google_auth tests noxfile.py setup.py
All done! ✨ 🍰 ✨
17 files would be left unchanged.
nox > flake8 --append-config .flake8 pydata_google_auth tests
nox > Session lint was successful.
nox > Running session lint_setup_py
nox > Re-using existing virtual environment at .nox/lint_setup_py.
nox > python -m pip install docutils pygments
nox > python setup.py check --restructuredtext --strict
running check
nox > Session lint_setup_py was successful.
nox > Running session blacken
nox > Re-using existing virtual environment at .nox/blacken.
nox > python -m pip install black==22.12.0
nox > black docs pydata_google_auth tests noxfile.py setup.py
All done! ✨ 🍰 ✨
17 files left unchanged.
nox > Session blacken was successful.
nox > Running session docs
nox > Re-using existing virtual environment at .nox/docs.
nox > python -m pip install sphinx==4.0.2 sphinx_rtd_theme ipython
nox > python -m pip install -e .
nox > sphinx-build -W -T -N -b html -d docs/source/_build/doctrees/ docs/source/ docs/source/_build/html/
Running Sphinx v4.0.2
loading translations [en]... done
making output directory... done
[autosummary] generating autosummary for: api.rst, changelog.rst, cli.rst, contributing.rst, index.rst, install.rst, intro.rst, oauth.rst, privacy.rst
loading intersphinx inventory from https://docs.python.org/objects.inv...
loading intersphinx inventory from https://google-auth.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://google-auth-oauthlib.readthedocs.io/en/latest/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 9 source files that are out of date
updating environment: [new config] 9 added, 0 changed, 0 removed
reading sources... [ 11%] api
reading sources... [ 22%] changelog
reading sources... [ 33%] cli
reading sources... [ 44%] contributing
reading sources... [ 55%] index
reading sources... [ 66%] install
reading sources... [ 77%] intro
reading sources... [ 88%] oauth
reading sources... [100%] privacy

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 11%] api
writing output... [ 22%] changelog
writing output... [ 33%] cli
writing output... [ 44%] contributing
writing output... [ 55%] index
writing output... [ 66%] install
writing output... [ 77%] intro
writing output... [ 88%] oauth
writing output... [100%] privacy

generating indices... genindex py-modindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in docs/source/_build/html.
nox > Session docs was successful.
nox > Ran multiple sessions:
nox > * unit-2.7: success
nox > * unit-3.6: success
nox > * unit-3.7: success
nox > * unit-3.8: success
nox > * unit-3.9: success
nox > * unit-3.10: success
nox > * system-2.7: success
nox > * system-3.8: success
nox > * cover: success
nox > * lint: success
nox > * lint_setup_py: success
nox > * blacken: success
nox > * docs: success

@tswast tswast merged commit 07d4363 into main May 9, 2023
@tswast tswast deleted the release-1.8.0 branch May 9, 2023 16:28
@tswast
Copy link
Collaborator Author

tswast commented May 9, 2023

Tested with test PyPI package on colab with success:

pip install --upgrade --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pydata-google-auth


[1]
10s
pip install --upgrade --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pydata-google-auth
Looking in indexes: https://test.pypi.org/simple/, https://us-python.pkg.dev/colab-wheels/public/simple/, https://pypi.org/simple
Requirement already satisfied: pydata-google-auth in /usr/local/lib/python3.10/dist-packages (1.7.0)
Collecting pydata-google-auth
  Downloading https://test-files.pythonhosted.org/packages/ce/c9/a4cfa1ebf3ce33c8fee0080f2e886fe9f8ca8f4dc5ea1b75b32cbf8d99a9/pydata_google_auth-1.8.0-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from pydata-google-auth) (67.7.2)
Requirement already satisfied: google-auth<3.0dev,>=1.25.0 in /usr/local/lib/python3.10/dist-packages (from pydata-google-auth) (2.17.3)
Requirement already satisfied: google-auth-oauthlib>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydata-google-auth) (1.0.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth<3.0dev,>=1.25.0->pydata-google-auth) (5.3.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from google-auth<3.0dev,>=1.25.0->pydata-google-auth) (0.3.0)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from google-auth<3.0dev,>=1.25.0->pydata-google-auth) (1.16.0)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from google-auth<3.0dev,>=1.25.0->pydata-google-auth) (4.9)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from google-auth-oauthlib>=0.4.0->pydata-google-auth) (1.3.1)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/local/lib/python3.10/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3.0dev,>=1.25.0->pydata-google-auth) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (3.2.2)
Requirement already satisfied: requests>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (2.27.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (2022.12.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib>=0.4.0->pydata-google-auth) (3.4)
Installing collected packages: pydata-google-auth
  Attempting uninstall: pydata-google-auth
    Found existing installation: pydata-google-auth 1.7.0
    Uninstalling pydata-google-auth-1.7.0:
      Successfully uninstalled pydata-google-auth-1.7.0
Successfully installed pydata-google-auth-1.8.0

import pandas

sql = """
    SELECT name
    FROM `bigquery-public-data.usa_names.usa_1910_current`
    WHERE state = 'TX'
    LIMIT 100
"""

# Run a Standard SQL query with the project set explicitly
project_id = 'swast-scratch'
df = pandas.read_gbq(sql, project_id=project_id, dialect='standard')
df
index name
0 Mary
1 Ruby
2 Annie
3 Willie
4 Ruth
5 Gladys
6 Maria
7 Frances
8 Margaret
9 Helen
10 Thelma
11 Mildred
12 Bessie
13 Lillian
14 Edna
15 Ethel
16 Lillie
17 Dorothy
18 Lucille
19 Minnie
20 Elizabeth
21 Hazel
22 Alice
23 Myrtle
24 Bertha
25 Opal
26 Irene
27 Emma
28 Marie
29 Mattie
30 Lois
31 Pauline
32 Juanita
33 Velma
34 Clara
35 Jessie
36 Louise
37 Beatrice
38 Julia
39 Martha
40 Anna
41 Alma
42 Grace
43 Ida
44 Evelyn
45 Vera
46 Virginia
47 Eva
48 Pearl
49 Ella
50 Viola
51 Gertrude
52 Laura
53 Edith
54 Rosa
55 Florence
56 Josephine
57 Mae
58 Elsie
59 Mabel
60 Hattie
61 Bernice
62 Lena
63 Lola
64 Lula
65 Fannie
66 Nellie
67 Sarah
68 Inez
69 Jewel
70 Katherine
71 Esther
72 Stella
73 Jewell
74 Cora
75 Eunice
76 Ada
77 Carrie
78 Vivian
79 Mable
80 Ora
81 Georgia
82 Johnnie
83 Ollie
84 Agnes
85 Eula
86 Rose
87 Beulah
88 Doris
89 Lela
90 Bonnie
91 Katie
92 Anita
93 Maggie
94 Ola
95 Leona
96 Lucile
97 Lucy
98 Manuela
99 Rosie

https://colab.research.google.com/drive/1HNTCOf7upXDCxHmarh1qbxXcGFioQgJl?usp=sharing

shobsi pushed a commit to shobsi/pydata-google-auth that referenced this pull request Jul 6, 2023
Also:

* fix(python2.7): remove reference to ModuleNotFoundError which is
  not present in Python 2.7. Also, it is unnecessary, since it is a subclass of
  ImportError.
* docs: add OAuth page to docs table-of-contents to fix Sphinx error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant