Skip to main content

google-datacatalog-connectors-commons-test

Common test resources for Data Catalog connectors

Disclaimer: This is not an officially supported Google product.

Table of Contents


1. Installable file build process

1.1. Get the code

git clone https://github.com/GoogleCloudPlatform/datacatalog-connectors
cd google-datacatalog-connectors-commons-test

1.2. Virtualenv

Using virtualenv is optional, but strongly recommended.

1.2.1. Install Python 3.5
1.2.2. Create and activate a virtualenv
pip install --upgrade virtualenv
python3 -m virtualenv --python python3 env
source ./env/bin/activate

1.3. Generate a wheel file

python setup.py bdist_wheel

The wheel file can used to install the package as a local pip dependency to other projects while it's not published to The Python Package Index (PyPI).

2. Developer environment

2.1. Install and run YAPF formatter

pip install --upgrade yapf

# Auto update files
yapf --in-place --recursive src tests

# Show diff
yapf --diff --recursive src tests

# Set up pre-commit hook
# From the root of your git project.
curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh
chmod a+x pre-commit.sh
mv pre-commit.sh .git/hooks/pre-commit

2.2. Install and run Flake8 linter

pip install --upgrade flake8
flake8 src tests

2.3. Install the package in editable mode (i.e. setuptools “develop mode”)

pip install --editable .

2.4. Run the unit tests

python setup.py test

Metadata

Release files for google-datacatalog-connectors-commons-test 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-datacatalog-connectors-commons-test 0.5.0
File Size Uploaded
google-datacatalog-connectors-commons-test-0.5.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-datacatalog-connectors-commons-test 0.5.0
File Interpreter ABI Platform
google_datacatalog_connectors_commons_test-0.5.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.6 kB

Release files / google-datacatalog-connectors-commons-test-0.5.0.tar.gz

Download URL google-datacatalog-connectors-commons-test-0.5.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f969b65ac10704457cc2bd8a22fdf03f8ce43250fd609743a0e6c193c1d7df19
BLAKE2b-256 checksum
How to use checksums
df1d73752a754a9b77427ae11b8a151ff76c1f81c8a1615e86b07f0a90075ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release files / google_datacatalog_connectors_commons_test-0.5.0-py2.py3-none-any.whl

Download URL google_datacatalog_connectors_commons_test-0.5.0-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
62b0db6bea4b2fc263750812c9642910159a1303e95767dbcf2f902e83be1aec
BLAKE2b-256 checksum
How to use checksums
ef2a8ae8cfb9e0d495ff0af9d5c67549a6ecd2c2bdb701d649bd3d17b3c7dad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release history Release notifications | RSS feed

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

This release

0.5.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page