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.6
1.2.2. Create and activate a virtualenv
pip3 install --upgrade virtualenv
python3 -m virtualenv --python python3.6 env
source ./env/bin/activate
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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| google-datacatalog-connectors-commons-test-0.7.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_datacatalog_connectors_commons_test-0.7.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / google-datacatalog-connectors-commons-test-0.7.0.tar.gz
| Download URL | google-datacatalog-connectors-commons-test-0.7.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bec774c059269ff7cc0bd7a6b88b942daef86e181851d80f3398f466187a4def
|
|
BLAKE2b-256 checksum How to use checksums |
673c78600bd96180f0d0affc88b909d513b953a394dc9aa4ae25dffe660af48e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0
|
Release files / google_datacatalog_connectors_commons_test-0.7.0-py2.py3-none-any.whl
| Download URL | google_datacatalog_connectors_commons_test-0.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
197f82444dcf799d83c5e2966143cbd094c86e5f103c635197179f188df82e31
|
|
BLAKE2b-256 checksum How to use checksums |
b208309fa019f648bfc9171523566b416b3c7c440b05d3e334e96e5255df9120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0
|