From ca9dbec199c21a940ecc8545c00116538bb2aff6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 05:18:16 +0000 Subject: automatic import of python-cognite-transformations-cli --- .gitignore | 1 + python-cognite-transformations-cli.spec | 302 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 304 insertions(+) create mode 100644 python-cognite-transformations-cli.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7827b93 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/cognite_transformations_cli-2.3.6.tar.gz diff --git a/python-cognite-transformations-cli.spec b/python-cognite-transformations-cli.spec new file mode 100644 index 0000000..4799e97 --- /dev/null +++ b/python-cognite-transformations-cli.spec @@ -0,0 +1,302 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cognite-transformations-cli +Version: 2.3.6 +Release: 1 +Summary: A CLI for the Transformations service in CDF +License: Apache-2.0 +URL: https://github.com/cognitedata/transformations-cli +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ff/c9/e89e2a611a6113b8694b002a113b39b2afda61f135621559e7d6021e5919/cognite_transformations_cli-2.3.6.tar.gz +BuildArch: noarch + +Requires: python3-PyYAML +Requires: python3-click +Requires: python3-cognite-sdk +Requires: python3-dacite +Requires: python3-pyparsing +Requires: python3-dotenv +Requires: python3-regex +Requires: python3-sqlparse +Requires: python3-tabulate +Requires: python3-types-retry +Requires: python3-types-tabulate + +%description +# Cognite Transformations CLI + +[![Build Status](https://github.com/cognitedata/transformations-cli/workflows/release/badge.svg)](https://github.com/cognitedata/transformations-cli/actions) +[![Documentation Status](https://readthedocs.com/projects/cognite-transformations-cli/badge/?version=latest)](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/?badge=latest) +[![codecov](https://codecov.io/gh/cognitedata/transformations-cli/branch/main/graph/badge.svg?token=PSkli74vvX)](https://codecov.io/gh/cognitedata/transformations-cli) +[![PyPI version](https://badge.fury.io/py/cognite-transformations-cli.svg)](https://pypi.org/project/cognite-transformations-cli) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cognite-transformations-cli) +[![License](https://img.shields.io/github/license/cognitedata/python-extractor-utils)](LICENSE) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) + +## Transformations CLI + +Use the Transformations command-line interface (**Transformations CLI**) to manage the lifecycle of your transformation jobs using the command line. With the Transformations CLI, you can process data from the CDF staging area (RAW) into the CDF data model. To learn more about how the Cognite Transformations CLI package works, see the **documentation** [here](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/) + +The **Transformations CLI** is based on Python and replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). + +### GitHub Action + +The **Transformations CLI** provides a GitHub Action to deploy transformations. You'll find the documentation [here](githubaction.md). + +We've also created a **CI/CD template** that uses GitHub Workflows. You'll find the documentation [here](https://github.com/cognitedata/transformations-action-template). + +### Using Transformations CLI in Azure Pipelines + +We publish `transformations-cli` docker images in [dockerhub](https://hub.docker.com/r/cognite/transformations-cli/tags) for every version released. The images tagged as `cognite/transformations-cli:-azure` can be used in Azure Pipelines (See an example tag [here](https://hub.docker.com/layers/transformations-cli/cognite/transformations-cli/2.1.1-azure/images/sha256-310aa01bcfc4f379c82076cc0386cc401ed1565d3ce4a2d8c3235d7061428145?context=explore)). We suggest you check [the example Azure Pipeline workflow configuration](azure_pipelines_example/azure-pipelines.yaml) and [the corresponding transformation manifest](azure_pipelines_example/transformations/manifest.yaml). + +### Migrating from Jetfire CLI + +**Transformations CLI** replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). If you've already used the **Jetfire CLI** in a GitHub Action, we recommend migrating to the **Transformations CLI** GitHub Action. You'll find the migration guide [here](migrationguide.md). + +### Contributing + +We use [poetry](https://python-poetry.org) to manage dependencies and to administrate virtual environments. To develop +**Transformations CLI**, follow these steps to set up your local environment: + +1. Install poetry: (add `--user` if desirable) + ``` + $ pip install poetry + ``` +2. Clone repository: + ``` + $ git clone git@github.com:cognitedata/transformations-cli.git + ``` +3. Move into the newly created local repository: + ``` + $ cd transformations-cli + ``` +4. Create a virtual environment and install dependencies: + + ``` + $ poetry install + ``` + +5. All the code must pass [black](https://github.com/ambv/black) and [isort](https://github.com/timothycrosley/isort) style + checks before it can be merged. We recommend installing pre-commit hooks to ensure this locally before you commit your code: + +``` +$ poetry run pre-commit install +``` + +6. To run tests: +``` +$ poetry run pytest +$ poetry run pytest +$ poetry run pytest :: +``` + +7. To publish a new version, change the version in `cognite/transformations_cli/__init__.py` and `pyproject.toml`. Make sure to update the `CHANGELOG`. + +This project adheres to the [Contributor Covenant v2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/) +as a code of conduct. + + + + +%package -n python3-cognite-transformations-cli +Summary: A CLI for the Transformations service in CDF +Provides: python-cognite-transformations-cli +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cognite-transformations-cli +# Cognite Transformations CLI + +[![Build Status](https://github.com/cognitedata/transformations-cli/workflows/release/badge.svg)](https://github.com/cognitedata/transformations-cli/actions) +[![Documentation Status](https://readthedocs.com/projects/cognite-transformations-cli/badge/?version=latest)](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/?badge=latest) +[![codecov](https://codecov.io/gh/cognitedata/transformations-cli/branch/main/graph/badge.svg?token=PSkli74vvX)](https://codecov.io/gh/cognitedata/transformations-cli) +[![PyPI version](https://badge.fury.io/py/cognite-transformations-cli.svg)](https://pypi.org/project/cognite-transformations-cli) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cognite-transformations-cli) +[![License](https://img.shields.io/github/license/cognitedata/python-extractor-utils)](LICENSE) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) + +## Transformations CLI + +Use the Transformations command-line interface (**Transformations CLI**) to manage the lifecycle of your transformation jobs using the command line. With the Transformations CLI, you can process data from the CDF staging area (RAW) into the CDF data model. To learn more about how the Cognite Transformations CLI package works, see the **documentation** [here](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/) + +The **Transformations CLI** is based on Python and replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). + +### GitHub Action + +The **Transformations CLI** provides a GitHub Action to deploy transformations. You'll find the documentation [here](githubaction.md). + +We've also created a **CI/CD template** that uses GitHub Workflows. You'll find the documentation [here](https://github.com/cognitedata/transformations-action-template). + +### Using Transformations CLI in Azure Pipelines + +We publish `transformations-cli` docker images in [dockerhub](https://hub.docker.com/r/cognite/transformations-cli/tags) for every version released. The images tagged as `cognite/transformations-cli:-azure` can be used in Azure Pipelines (See an example tag [here](https://hub.docker.com/layers/transformations-cli/cognite/transformations-cli/2.1.1-azure/images/sha256-310aa01bcfc4f379c82076cc0386cc401ed1565d3ce4a2d8c3235d7061428145?context=explore)). We suggest you check [the example Azure Pipeline workflow configuration](azure_pipelines_example/azure-pipelines.yaml) and [the corresponding transformation manifest](azure_pipelines_example/transformations/manifest.yaml). + +### Migrating from Jetfire CLI + +**Transformations CLI** replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). If you've already used the **Jetfire CLI** in a GitHub Action, we recommend migrating to the **Transformations CLI** GitHub Action. You'll find the migration guide [here](migrationguide.md). + +### Contributing + +We use [poetry](https://python-poetry.org) to manage dependencies and to administrate virtual environments. To develop +**Transformations CLI**, follow these steps to set up your local environment: + +1. Install poetry: (add `--user` if desirable) + ``` + $ pip install poetry + ``` +2. Clone repository: + ``` + $ git clone git@github.com:cognitedata/transformations-cli.git + ``` +3. Move into the newly created local repository: + ``` + $ cd transformations-cli + ``` +4. Create a virtual environment and install dependencies: + + ``` + $ poetry install + ``` + +5. All the code must pass [black](https://github.com/ambv/black) and [isort](https://github.com/timothycrosley/isort) style + checks before it can be merged. We recommend installing pre-commit hooks to ensure this locally before you commit your code: + +``` +$ poetry run pre-commit install +``` + +6. To run tests: +``` +$ poetry run pytest +$ poetry run pytest +$ poetry run pytest :: +``` + +7. To publish a new version, change the version in `cognite/transformations_cli/__init__.py` and `pyproject.toml`. Make sure to update the `CHANGELOG`. + +This project adheres to the [Contributor Covenant v2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/) +as a code of conduct. + + + + +%package help +Summary: Development documents and examples for cognite-transformations-cli +Provides: python3-cognite-transformations-cli-doc +%description help +# Cognite Transformations CLI + +[![Build Status](https://github.com/cognitedata/transformations-cli/workflows/release/badge.svg)](https://github.com/cognitedata/transformations-cli/actions) +[![Documentation Status](https://readthedocs.com/projects/cognite-transformations-cli/badge/?version=latest)](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/?badge=latest) +[![codecov](https://codecov.io/gh/cognitedata/transformations-cli/branch/main/graph/badge.svg?token=PSkli74vvX)](https://codecov.io/gh/cognitedata/transformations-cli) +[![PyPI version](https://badge.fury.io/py/cognite-transformations-cli.svg)](https://pypi.org/project/cognite-transformations-cli) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cognite-transformations-cli) +[![License](https://img.shields.io/github/license/cognitedata/python-extractor-utils)](LICENSE) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) + +## Transformations CLI + +Use the Transformations command-line interface (**Transformations CLI**) to manage the lifecycle of your transformation jobs using the command line. With the Transformations CLI, you can process data from the CDF staging area (RAW) into the CDF data model. To learn more about how the Cognite Transformations CLI package works, see the **documentation** [here](https://cognite-transformations-cli.readthedocs-hosted.com/en/latest/) + +The **Transformations CLI** is based on Python and replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). + +### GitHub Action + +The **Transformations CLI** provides a GitHub Action to deploy transformations. You'll find the documentation [here](githubaction.md). + +We've also created a **CI/CD template** that uses GitHub Workflows. You'll find the documentation [here](https://github.com/cognitedata/transformations-action-template). + +### Using Transformations CLI in Azure Pipelines + +We publish `transformations-cli` docker images in [dockerhub](https://hub.docker.com/r/cognite/transformations-cli/tags) for every version released. The images tagged as `cognite/transformations-cli:-azure` can be used in Azure Pipelines (See an example tag [here](https://hub.docker.com/layers/transformations-cli/cognite/transformations-cli/2.1.1-azure/images/sha256-310aa01bcfc4f379c82076cc0386cc401ed1565d3ce4a2d8c3235d7061428145?context=explore)). We suggest you check [the example Azure Pipeline workflow configuration](azure_pipelines_example/azure-pipelines.yaml) and [the corresponding transformation manifest](azure_pipelines_example/transformations/manifest.yaml). + +### Migrating from Jetfire CLI + +**Transformations CLI** replaces the [Jetfire CLI](https://github.com/cognitedata/jetfire-cli). If you've already used the **Jetfire CLI** in a GitHub Action, we recommend migrating to the **Transformations CLI** GitHub Action. You'll find the migration guide [here](migrationguide.md). + +### Contributing + +We use [poetry](https://python-poetry.org) to manage dependencies and to administrate virtual environments. To develop +**Transformations CLI**, follow these steps to set up your local environment: + +1. Install poetry: (add `--user` if desirable) + ``` + $ pip install poetry + ``` +2. Clone repository: + ``` + $ git clone git@github.com:cognitedata/transformations-cli.git + ``` +3. Move into the newly created local repository: + ``` + $ cd transformations-cli + ``` +4. Create a virtual environment and install dependencies: + + ``` + $ poetry install + ``` + +5. All the code must pass [black](https://github.com/ambv/black) and [isort](https://github.com/timothycrosley/isort) style + checks before it can be merged. We recommend installing pre-commit hooks to ensure this locally before you commit your code: + +``` +$ poetry run pre-commit install +``` + +6. To run tests: +``` +$ poetry run pytest +$ poetry run pytest +$ poetry run pytest :: +``` + +7. To publish a new version, change the version in `cognite/transformations_cli/__init__.py` and `pyproject.toml`. Make sure to update the `CHANGELOG`. + +This project adheres to the [Contributor Covenant v2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/) +as a code of conduct. + + + + +%prep +%autosetup -n cognite-transformations-cli-2.3.6 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-cognite-transformations-cli -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 2.3.6-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..f6c3fa3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +68ca214236a0eeafdb9e3817a8824a73 cognite_transformations_cli-2.3.6.tar.gz -- cgit v1.2.3