Merged PR 158805: [powerbi-jupyter]: Supporting legal guidance for release

## In this PR:
- Updated LICENSE.txt
- Moved SETUP.md to CONTRIBUTING.md
- Updated README.md
- Added license file headers in source files

Related work items: #555731
This commit is contained in:
Mayur Garhwal 2021-04-20 09:23:01 +00:00
Родитель d6d5e5b693
Коммит f92e1cd40f
11 изменённых файлов: 61 добавлений и 35 удалений

Просмотреть файл

@ -1,7 +1,14 @@
# Development Installation
This document provides the steps for setting up the powerbiclient widget on your system.
# Contributing
## Setup
Clone the repository:
```
git clone https://github.com/Microsoft/PowerBI-Jupyter.git
```
Navigate to `powerbi-jupyter` directory after cloning
First install the python package. This will also build the JS packages:
```bash
pip install -e ".[test, demo]"

Просмотреть файл

@ -1,27 +1,21 @@
Copyright (c) 2020 Microsoft
All rights reserved.
Copyright (c) Microsoft Corporation.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
MIT License
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Просмотреть файл

@ -1,4 +1,3 @@
# powerbi-jupyter
Powerbi-jupyter is a python IPyWidget that enables customers to use many embedding capabilities in a Jupyter notebook seamlessly
@ -38,4 +37,16 @@ To run the demo, run the following commands:
cd demo
jupyter notebook
```
Now, run demo.ipynb
Now, run demo.ipynb
## Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
Please read the [contributing guide](./CONTRIBUTING.md) before starting.
## We Value and Adhere to the Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Просмотреть файл

@ -1 +1,4 @@
/* Copyright (c) Microsoft Corporation.
Licensed under the MIT license. */
/* Add custom CSS here */

Просмотреть файл

@ -1,7 +1,8 @@
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Microsoft.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
Authenticates a Power BI User and acquires an access token

Просмотреть файл

@ -1,3 +1,9 @@
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from enum import IntEnum
# Permissions for embedding Power BI report

Просмотреть файл

@ -1,7 +1,8 @@
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Microsoft.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
Embeds Power BI Report

Просмотреть файл

@ -1,8 +1,8 @@
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Microsoft.
# Distributed under the terms of the Modified BSD License.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import pytest

Просмотреть файл

@ -69,12 +69,12 @@ setup_args = dict(
author = 'Microsoft',
author_email = '',
url = 'https://github.com/Microsoft/powerbi-jupyter',
license = 'BSD',
license = 'MIT',
platforms = "Linux, Mac OS X, Windows",
keywords = ['Jupyter', 'Widgets', 'IPython'],
classifiers = [
'Intended Audience :: Developers',
# TODO: Update License before release using 'License :: <your_license>'
'License :: MIT License'
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',

Просмотреть файл

@ -1,5 +1,5 @@
// Copyright (c) Microsoft
// Distributed under the terms of the Modified BSD License.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { DOMWidgetModel, DOMWidgetView, ISerializers } from '@jupyter-widgets/base';

Просмотреть файл

@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { models, Page, Report } from 'powerbi-client';
import { ReportView } from './report';