8000 TabPy v1 by 0golovatyi · Pull Request #400 · tableau/TabPy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TabPy v1 #400

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

Merged
merged 17 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .coveragerc

This file was deleted.

61 changes: 2 additions & 59 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Test Run on Pull Request
on: [pull_request]

jobs:
ubuntu-build:
build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v1
Expand All @@ -27,63 +27,6 @@ jobs:
pip install -r requirements_test.txt
pip install -r requirements_dev.txt

- name: Test with pytest
run: |
pytest tests --cov=tabpy
coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

windows-build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.7, 3.8]
os: [windows-latest]

steps:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt

- name: Test with pytest
run: |
pytest tests

mac-build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.7, 3.8]
os: [macos-latest]

steps:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt

- name: Test with pytest
run: |
pytest tests
62 changes: 3 additions & 59 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Test Run on Push
on: [push]

jobs:
ubuntu-build:
build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v1
Expand All @@ -27,63 +27,7 @@ jobs:
pip install -r requirements_test.txt
pip install -r requirements_dev.txt

- name: Test with pytest
run: |
pytest tests --cov=tabpy
coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

windows-build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.7, 3.8]
os: [windows-latest]

steps:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt

- name: Test with pytest
run: |
pytest tests

mac-build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.7, 3.8]
os: [macos-latest]

steps:
- uses: actions/checkout@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt

- name: Test with pytest
run: |
pytest tests

55 changes: 34 additions & 21 deletions .scrutinizer.yml
6D40
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
build:
environment:
python: 3.6
nodes:
analysis:
project_setup:
override:
- pip install sklearn pandas numpy textblob nltk scipy
tests:
override:
- py-scrutinizer-run
-
command: pylint-run
use_website_config: true
tests: true
environment:
python: 3.7.6
nodes:
coverage:
project_setup:
override:
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- pip install -r requirements_dev.txt
tests:
override:
- command: 'pytest tests --cov=tabpy --cov-config=setup.cfg'
coverage:
file: '.coverage'
config_file: 'setup.cfg'
format: 'py-cc'
analysis:
project_setup:
override:
- pip install -r requirements_test.txt
tests:
override:
- py-scrutinizer-run
-
command: pylint-run
use_website_config: true
tests: true
checks:
python:
code_rating: true
duplicate_code: true
python:
code_rating: true
duplicate_code: true
filter:
excluded_paths:
- '*/test/*'
dependency_paths:
- 'lib/*'
excluded_paths:
- '*/tests/*'
dependency_paths:
- 'lib/*'
12 changes: 12 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## v1.0.0

### Improvements

- Minor: feature name changed to analytics extensions.
- Startup script files deleted.
- Index page updated.

### Other

- TabPy is now Tableau Supported (used to be Community Supported).

## v0.9.0

### Improvements
Expand Down
5 changes: 2 additions & 3 deletions README.md
F438
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# TabPy

[![Community Supported](https://img.shields.io/badge/Support%20Level-Community%20Supported-457387.svg)](https://www.tableau.com/support-levels-it-and-developer-tools)
[![Tableau Supported](https://img.shields.io/badge/Support%20Level-Tableau%20Supported-53bd92.svg)](https://www.tableau.com/support-levels-it-and-developer-tools)
[![GitHub](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/Tableau/TabPy/master/LICENSE)

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tableau/tabpy/Test%20Run%20on%20Push)](https://github.com/tableau/TabPy/actions?query=workflow%3A%22Test+Run+on+Push%22)
[![Coverage Status](https://img.shields.io/coveralls/github/tableau/TabPy.svg)](https://coveralls.io/github/tableau/TabPy)
![Scrutinizer coverage (GitHub/BitBucket)](https://img.shields.io/scrutinizer/coverage/g/tableau/tabpy)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/tableau/TabPy/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/tableau/TabPy/?branch=master)

[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tabpy?label=PyPI%20Python%20versions)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/tabpy)
[![PyPI version](https://badge.fury.io/py/tabpy.svg)](https://pypi.python.org/pypi/tabpy/)
Expand Down
5 changes: 3 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coveralls
hypothesis
pytest
pytest-cov
pytest-cov
twisted
18 changes: 17 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,20 @@ max-line-length = 98
max-line-length = 98

[bdist_wheel]
universal=1
universal=1

[report]
# Exclude lines that match patterns from coverage report.
exclude_lines =
if __name__ == .__main__.:
\\$

# Only show one number after decimal point in report.
precision = 1

[run]
omit =
tabpy/models/*
tabpy/tabpy.py
tabpy/utils/*
tests/*
3 changes: 0 additions & 3 deletions startup.cmd

This file was deleted.

3 changes: 0 additions & 3 deletions startup.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tabpy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
1.0.0
1 change: 1 addition & 0 deletions tabpy/tabpy_server/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h1>Useful links:</h1>
<li><a href="https://tableau.github.io/TabPy/">TabPy Documentation</a></li>
<li><a href="https://github.com/tableau/TabPy">TabPy Source Code</a></li>
<li><a href="https://pypi.org/project/tabpy/">TabPy PyPi</a></li>
<li><a href="http://tabscifi.com">Tableau Sci-Fi - Advanced Analytics Team blog</a></li>
</ul>

</body>
Expand Down
0