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

V0.12.0 #175

Merged
47 commits merged into from Jan 3, 2019
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
49a3632
Major rewriting of SDK
erlendvollset Dec 20, 2018
123cd4d
Improve documentation
erlendvollset Dec 20, 2018
4db3ccf
Merge branch 'master' into new-sdk
Dec 20, 2018
2adfd36
Update docs and make api client limits protected
erlendvollset Dec 22, 2018
38fde15
Merge branch 'new-sdk' of github.com:cognitedata/cognite-sdk-python i…
erlendvollset Dec 22, 2018
6fedcba
Change from numbered versioning to stable/experimental
erlendvollset Dec 23, 2018
b5791ad
Remove unused code and fix __str__() for CogniteResponse
erlendvollset Dec 23, 2018
a7a6e59
Remove anything related to versions from documentation
erlendvollset Dec 23, 2018
01c6ba7
Minor fixes and updates to docstrings
erlendvollset Dec 23, 2018
4d67cfb
Update api key env var in Jenkinsfile
erlendvollset Dec 23, 2018
3c1260d
Update CONTRIBUTING.md
erlendvollset Dec 23, 2018
d746dcd
Remove unused print statements and add debug mode
erlendvollset Dec 23, 2018
bd3f2cc
Omit auxiliary directory from coverage report
erlendvollset Dec 23, 2018
7bd11f3
Increase coverage threshold to 2%
erlendvollset Dec 23, 2018
a856fff
Update documentation and docstrings
erlendvollset Dec 23, 2018
5933720
Add examples in docs for assets and datapoints
erlendvollset Dec 23, 2018
7cbb5c6
Fix assets test
erlendvollset Dec 23, 2018
1c33cab
Add simple examples for events, files, login and time_series
erlendvollset Dec 23, 2018
5a73db1
Fix examples in overview
erlendvollset Dec 23, 2018
f0ac6ea
Skip undeterministically failing sequences test
erlendvollset Dec 23, 2018
81a7b2d
Update main docs
erlendvollset Dec 23, 2018
6a7392b
Increase coverage threshold
erlendvollset Dec 23, 2018
73ab118
Fix typo in docs
erlendvollset Dec 23, 2018
c343f3b
Update jupyter examples
erlendvollset Dec 23, 2018
1e228fe
Clean up docs and fix ordering issue
erlendvollset Dec 23, 2018
1feb80e
Move version specification in to each individual client
erlendvollset Dec 24, 2018
12ac582
Make requested changes from F1's review
erlendvollset Dec 25, 2018
4356e1f
Update documentation
erlendvollset Jan 2, 2019
2c41697
Remove docstring from top-level __init__.py
erlendvollset Jan 2, 2019
194a8ff
Do not retry 401 or POST
erlendvollset Jan 2, 2019
e8b535a
Add default timeout of 60s for all requests and let user configure it.
erlendvollset Jan 2, 2019
b2bcf37
Fix bug in response object __str__()
erlendvollset Jan 2, 2019
3bd6279
Return None instead of empty dict where applicable
erlendvollset Jan 2, 2019
7dc398e
Remove some outdated kwargs from docstrings
erlendvollset Jan 2, 2019
db2ad65
Do not return empty dict as string repr for cognite response when 'da…
erlendvollset Jan 2, 2019
e84c584
Move to_json() method to CogniteResponse and remove where it is not n…
erlendvollset Jan 2, 2019
0b09717
Use .to_json() in .__str__() of CogniteResponse
erlendvollset Jan 2, 2019
6853c39
Fix failing tests after fixes
erlendvollset Jan 2, 2019
09a21b9
Move helpers only used in tests to conftest.py
erlendvollset Jan 2, 2019
2bf0b7c
Update some docstrings and include inherited members in docs
erlendvollset Jan 2, 2019
0189081
Add more examples
erlendvollset Jan 2, 2019
9caef8c
Fix bug in get_datapoints multithreading
erlendvollset Jan 2, 2019
b176ce3
Fix bug in example
erlendvollset Jan 2, 2019
b6ca6b1
Remove version parameter in client_factory and make it protected.
erlendvollset Jan 3, 2019
2679a34
Update CONTRIBUTING.md with link to semver.org instead of this homema…
erlendvollset Jan 3, 2019
adb8f51
Default to logging at INFO level and do not let user configure this
erlendvollset Jan 3, 2019
96c1f47
Fix bug in retry logic causing client to wait after last retry
erlendvollset Jan 3, 2019
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
2 changes: 2 additions & 0 deletions .coveragerc
Expand Up @@ -6,3 +6,5 @@ exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
omit =
cognite/_auxiliary/*
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -29,6 +29,7 @@ wheels/

# Other
test.py
.env

# Coverage
.coverage
Expand Down
14 changes: 2 additions & 12 deletions CONTRIBUTING.md
Expand Up @@ -8,7 +8,7 @@ $ pipenv shell
```

### Testing
Set up tests for all new functionality. Running the tests will require setting the environment variable 'COGNITE_TEST_API_KEY'.
Set up tests for all new functionality. Running the tests will require setting the environment variable 'COGNITE_API_KEY'.

Initiate unit tests by running the following command from the root directory:

Expand All @@ -33,14 +33,4 @@ $ make html
Documentation will be automatically generated from the google-style docstrings in the source code. It is then built and released when changes are merged into master.

### Release version conventions
TODO: Add more detailed instructions on releasing
Format:
```
MAJOR.MINOR[.PATCH]
```
Increment the:
* MAJOR version when you make incompatible API changes,
* MINOR version when you add functionality in a backwards-compatible manner, and
* PATCH version when you make backwards-compatible bug fixes.

For more information on versioning see https://semver.org/
See https://semver.org/
2 changes: 1 addition & 1 deletion Jenkinsfile
Expand Up @@ -25,7 +25,7 @@ podTemplate(
configMapVolume(configMapName: 'codecov-script-configmap', mountPath: '/codecov-script'),
],
envVars: [
secretEnvVar(key: 'COGNITE_TEST_API_KEY', secretName: 'ml-test-api-key', secretKey: 'testkey.txt'),
secretEnvVar(key: 'COGNITE_API_KEY', secretName: 'ml-test-api-key', secretKey: 'testkey.txt'),
secretEnvVar(key: 'CODECOV_TOKEN', secretName: 'codecov-token-cognite-sdk-python', secretKey: 'token.txt'),
// /codecov-script/upload-report.sh relies on the following
// Jenkins and Github environment variables.
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Expand Up @@ -7,7 +7,7 @@ coverage:
project:
default:
target: auto
threshold: 1%
threshold: 5%
base: auto
patch: off
changes: off
Expand Down
24 changes: 4 additions & 20 deletions cognite/__init__.py
@@ -1,21 +1,5 @@
"""Cognite API SDK
from cognite.client.cognite_client import CogniteClient
from cognite.client.exceptions import APIError

This package has been created to ensure excellent excellent user experience for data scientists using the Cognite
Data Platform (CDP).
"""

# RELEASE CONVENTIONS
#
# Format:
# MAJOR.MINOR[.PATCH]
#
# Increment the:
# * MAJOR version when you make changes which are NOT backwards-compatible
# * MINOR version when you add functionality in a backwards-compatible manner
# * PATCH version when you make backwards-compatible bug fixes.
#
# For more information on versioning see https://semver.org/
#

__all__ = ["v04", "v05", "v06", "preprocessing", "config", "data_transfer_service"]
__version__ = "0.11.22"
__all__ = ["data_transfer_service"]
__version__ = "0.12.0"
8 changes: 0 additions & 8 deletions cognite/__main__.py

This file was deleted.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions cognite/_constants.py

This file was deleted.

56 changes: 0 additions & 56 deletions cognite/auxiliary/_hosting/model/model/model.py

This file was deleted.

11 changes: 0 additions & 11 deletions cognite/auxiliary/_hosting/model/setup.py

This file was deleted.

1 change: 0 additions & 1 deletion cognite/cli/__init__.py

This file was deleted.

48 changes: 0 additions & 48 deletions cognite/cli/cli.py

This file was deleted.