Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

docs: add multiprocessing #11

Merged
merged 30 commits into from May 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4d16eea
changes without context
yoshi-automation May 27, 2020
a44b8a9
chore(java_templates): mark version bumps of current library as a cho…
yoshi-automation May 27, 2020
9d7a8bc
fix: do not run node 8 CI (#456)
yoshi-automation May 27, 2020
cc02923
chore(python): add license headers to config files; make small tweaks…
yoshi-automation May 27, 2020
3956632
docs: remove "install stable" instructions (#461)
yoshi-automation May 27, 2020
cb4c9dc
fix: allow local and external deps to be specified (#469)
yoshi-automation May 27, 2020
5235b1f
chore(deps): update dependency com.google.cloud.samples:shared-config…
yoshi-automation May 27, 2020
f3f1b4d
fix: pin sphinx to <3.0.0 as new version causes new error (#471)
yoshi-automation May 27, 2020
bf83409
chore(java): release-please only updates non maven versions in README…
yoshi-automation May 27, 2020
794c9a2
fix: installs test_utils from its common repo (#480)
yoshi-automation May 27, 2020
f9898a5
build(nodejs): remove unused codecov config (#486)
yoshi-automation May 27, 2020
cb432d2
doc: document context-aware commit flags (#481)
yoshi-automation May 27, 2020
cb015f2
fix: use https vcs install for python-test-utils (#492)
yoshi-automation May 27, 2020
d602167
fix: stop recording the git log in the metadata (#477)
yoshi-automation May 27, 2020
99c01c1
build: use codecov's action, now that it's authless (#499)
yoshi-automation May 27, 2020
deb7938
fix(python): install testutils from pypi (#503)
yoshi-automation May 27, 2020
515a807
chore: merge autosynth repo into this repo (#508)
yoshi-automation May 27, 2020
2f7008e
fix: typo (#512)
yoshi-automation May 27, 2020
bd4b1e5
chore(python): create thread_safety doc (#517)
yoshi-automation May 27, 2020
21ab54a
feat: include trailers in PR body (#526)
yoshi-automation May 27, 2020
2ac5d3d
chore: store autosynth synth logs as sponge_log.log for use as build …
yoshi-automation May 27, 2020
d18e827
chore: move ci.yaml to workflows dir (#535)
yoshi-automation May 27, 2020
21a5b49
chore(python): remove extra #!/bin/bash (#538)
yoshi-automation May 27, 2020
b55c73a
docs: update CONTRIBUTING.md to include code formatting (#534)
yoshi-automation May 27, 2020
e00d989
fix: report autosynth status to GitHub early and don't crash on repor…
yoshi-automation May 27, 2020
19514e8
chore: bump nodejs autosynth timeout to 5 hours (#563)
yoshi-automation May 27, 2020
08df37e
chore(python): remove one remaining extra bash line (#565)
yoshi-automation May 27, 2020
81157e7
fix: autosynth for nodejs-apiary (#569)
yoshi-automation May 27, 2020
95937c8
Merge branch 'master' into autosynth-synthtool
busunkim96 May 28, 2020
916ddb7
docs: add multiprocessing note
busunkim96 May 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions .flake8
@@ -1,3 +1,19 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E266, E501, W503, F401, F821, F841, W291
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/python-game-servers/issues
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python

If you are still having issues, please be sure to include as much information as possible:

Expand Down
2 changes: 0 additions & 2 deletions .kokoro/publish-docs.sh
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -eo pipefail

# Disable buffering, so that the logs stream through.
Expand Down
2 changes: 0 additions & 2 deletions .kokoro/release.sh
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -eo pipefail

# Start the releasetool reporter
Expand Down
15 changes: 3 additions & 12 deletions CONTRIBUTING.rst
Expand Up @@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions: 2.7,
3.5, 3.6, and 3.7 on both UNIX and Windows.
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
Expand Down Expand Up @@ -214,26 +214,18 @@ We support:
- `Python 3.5`_
- `Python 3.6`_
- `Python 3.7`_
- `Python 3.8`_

.. _Python 3.5: https://docs.python.org/3.5/
.. _Python 3.6: https://docs.python.org/3.6/
.. _Python 3.7: https://docs.python.org/3.7/
.. _Python 3.8: https://docs.python.org/3.8/


Supported versions can be found in our ``noxfile.py`` `config`_.

.. _config: https://github.com/googleapis/python-game-servers/blob/master/noxfile.py

We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
and lack of continuous integration `support`_.

.. _Python 2.5: https://docs.python.org/2.5/
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/

We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
longer supported by the core development team.

Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.

We also explicitly decided to support Python 3 beginning with version
Expand All @@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995

**********
Versioning
Expand Down
16 changes: 16 additions & 0 deletions MANIFEST.in
@@ -1,3 +1,19 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
include README.rst LICENSE
recursive-include google *.json *.proto
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
@@ -1,5 +1,7 @@
.. include:: README.rst

.. include:: multiprocessing.rst

API Reference
-------------
.. toctree::
Expand Down
7 changes: 7 additions & 0 deletions docs/multiprocessing.rst
@@ -0,0 +1,7 @@
.. note::

Because this client uses :mod:`grpcio` library, it is safe to
share instances across threads. In multiprocessing scenarios, the best
practice is to create client instances *after* the invocation of
:func:`os.fork` by :class:`multiprocessing.Pool` or
:class:`multiprocessing.Process`.
5 changes: 2 additions & 3 deletions noxfile.py
Expand Up @@ -110,8 +110,7 @@ def system(session):

# Install all test dependencies, then install this package into the
# virtualenv's dist-packages.
session.install("mock", "pytest")

session.install("mock", "pytest", "google-cloud-testutils")
session.install("-e", ".")

# Run py.test against the system tests.
Expand Down Expand Up @@ -139,7 +138,7 @@ def docs(session):
"""Build the docs for this library."""

session.install("-e", ".")
session.install("sphinx", "alabaster", "recommonmark")
session.install("sphinx<3.0.0", "alabaster", "recommonmark")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand Down
16 changes: 16 additions & 0 deletions setup.cfg
@@ -1,3 +1,19 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
[bdist_wheel]
universal = 1
2 changes: 1 addition & 1 deletion synth.metadata
Expand Up @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ee4330a0e5f4b93978e8683fbda8e6d4148326b7"
"sha": "274dd49554809834287c24b6dd324a85283f1182"
}
}
],
Expand Down