Skip to content

Commit e0e8de0

Browse files
authored
Merge branch 'master' into variable-types-#10
2 parents 46c2a19 + 764a652 commit e0e8de0

File tree

16 files changed

+149
-106
lines changed

16 files changed

+149
-106
lines changed

.DS_Store

-12 KB
Binary file not shown.

.circleci/config.yml

Lines changed: 106 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,121 @@
11
version: 2.1
22

3-
commands:
4-
install-packaged-autonormalize:
5-
description: "install autonormalize from source distribution"
6-
steps:
7-
- run : |
8-
source test_env/bin/activate
9-
python setup.py sdist
10-
AUTONORMALIZE_VERSION=$(python setup.py --version)
11-
tar -zxvf "dist/autonormalize-${AUTONORMALIZE_VERSION}.tar.gz"
12-
pip install -e "autonormalize-${AUTONORMALIZE_VERSION}/"
13-
pip install -r "autonormalize-${AUTONORMALIZE_VERSION}/test-requirements.txt"
14-
run-packaged-tests:
15-
description: "run unit tests on packaged testing files"
16-
steps:
17-
- run: |
18-
source test_env/bin/activate
19-
cd "autonormalize-$(python setup.py --version)/"
20-
pytest
21-
22-
jobs:
23-
"python-27":
24-
working_directory: ~/auto-norm
3+
executors:
4+
python:
5+
parameters:
6+
image_tag:
7+
type: string
8+
default: python:3.7
259
docker:
26-
- image: circleci/python:2.7
27-
steps:
28-
- checkout
29-
- run: virtualenv test_env && virtualenv dev_env
30-
- install-packaged-autonormalize
31-
- run: source dev_env/bin/activate && make installdeps
32-
- run: source dev_env/bin/activate && make lint
33-
- run-packaged-tests
10+
- image: circleci/<< parameters.image_tag >>
3411

35-
"python-35":
36-
working_directory: ~/auto-norm
37-
docker:
38-
- image: circleci/python:3.5
12+
commands:
13+
installation:
3914
steps:
4015
- checkout
41-
- run: virtualenv test_env && virtualenv dev_env
42-
- install-packaged-autonormalize
43-
- run: source dev_env/bin/activate && make installdeps
44-
- run: source dev_env/bin/activate && make lint
45-
- run-packaged-tests
16+
- run:
17+
name: Installation
18+
command: |
19+
python setup.py sdist
20+
PACKAGE=$(python setup.py --fullname)
21+
tar -zxvf dist/${PACKAGE}.tar.gz
22+
mv ${PACKAGE} package
23+
virtualenv python -q
24+
source python/bin/activate
25+
pip install -e package --progress-bar off
26+
pip install -r package/test-requirements.txt --progress-bar off
4627
47-
"python-36":
48-
working_directory: ~/auto-norm
49-
docker:
50-
- image: circleci/python:3.6
28+
jobs:
29+
Lint Tests:
30+
parameters:
31+
image_tag:
32+
type: string
33+
default: python:3.7
34+
executor:
35+
name: python
36+
image_tag: << parameters.image_tag >>
5137
steps:
52-
- checkout
53-
- run: virtualenv test_env && virtualenv dev_env
54-
- install-packaged-autonormalize
55-
- run: source dev_env/bin/activate && make installdeps
56-
- run: source dev_env/bin/activate && make lint
57-
- run-packaged-tests
38+
- installation
39+
- run:
40+
name: Lint Tests
41+
command: |
42+
source python/bin/activate
43+
make -C package lint --makefile ../Makefile
5844
59-
"python-37":
60-
working_directory: ~/auto-norm
61-
docker:
62-
- image: circleci/python:3.7
45+
Unit Tests:
46+
parameters:
47+
image_tag:
48+
type: string
49+
default: python:3.7
50+
codecov:
51+
type: boolean
52+
default: false
53+
executor:
54+
name: python
55+
image_tag: << parameters.image_tag >>
6356
steps:
64-
- checkout
65-
- run: virtualenv test_env && virtualenv dev_env
66-
- install-packaged-autonormalize
67-
- run: source dev_env/bin/activate && make installdeps
68-
- run: source dev_env/bin/activate && make lint
69-
- run-packaged-tests
57+
- installation
58+
- run:
59+
name: Unit Tests
60+
command: |
61+
source python/bin/activate
62+
cd package
63+
pytest autonormalize/ --cov=autonormalize
64+
- when:
65+
condition: << parameters.codecov >>
66+
steps:
67+
- run:
68+
name: Code Coverage
69+
command: |
70+
source python/bin/activate
71+
cd package
72+
codecov
7073
74+
Entry Point Test:
75+
parameters:
76+
image_tag:
77+
type: string
78+
default: python:3.7
79+
executor:
80+
name: python
81+
image_tag: << parameters.image_tag >>
82+
steps:
83+
- installation
84+
- run:
85+
name: Entry Point Test
86+
command: |
87+
source python/bin/activate
88+
make -C package entry-point-test --makefile ../Makefile
7189
7290
workflows:
7391
version: 2
74-
test_all_python_versions:
92+
Integration Tests:
7593
jobs:
76-
- "python-27"
77-
- "python-35"
78-
- "python-36"
79-
- "python-37"
94+
- Lint Tests:
95+
name: Py35 - Lint Tests
96+
image_tag: python:3.5
97+
- Lint Tests:
98+
name: Py36 - Lint Tests
99+
image_tag: python:3.6
100+
- Lint Tests:
101+
name: Py37 - Lint Tests
102+
image_tag: python:3.7
103+
- Unit Tests:
104+
name: Py35 - Unit Tests
105+
image_tag: python:3.5
106+
- Unit Tests:
107+
name: Py36 - Unit Tests
108+
image_tag: python:3.6
109+
- Unit Tests:
110+
name: Py37 - Unit Tests
111+
image_tag: python:3.7
112+
codecov: true
113+
- Entry Point Test:
114+
name: Py35 - Entry Point Test
115+
image_tag: python:3.5
116+
- Entry Point Test:
117+
name: Py36 - Entry Point Test
118+
image_tag: python:3.6
119+
- Entry Point Test:
120+
name: Py37 - Entry Point Test
121+
image_tag: python:3.7

.github/main.workflow

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
name: Release
6+
jobs:
7+
pypi:
8+
name: PyPI Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: PyPI Upload
13+
uses: FeatureLabs/gh-action-pypi-upload@master
14+
env:
15+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
16+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
17+
TEST_PYPI_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
18+
TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
13
# IDE
24
.vscode
35

Makefile

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
.PHONY: clean
2-
clean:
3-
find . -name '*.pyo' -delete
4-
find . -name '*.pyc' -delete
5-
find . -name __pycache__ -delete
6-
find . -name '*~' -delete
7-
8-
.PHONY: lint
9-
lint:
10-
flake8 autonormalize && isort --check-only --recursive autonormalize
1+
.PHONY: entry-point-test
2+
entry-point-test:
3+
cd ~ && python -c "from featuretools import autonormalize"
114

125
.PHONY: lint-fix
136
lint-fix:
14-
autopep8 --in-place --recursive --max-line-length=100 --select="E225,E303,E302,E203,E128,E231,E251,E271,E127,E126,E301,W291,W293,E226,E306,E221" autonormalize
7+
select="E225,E303,E302,E203,E128,E231,E251,E271,E127,E126,E301,W291,W293,E226,E306,E221"
8+
autopep8 --in-place --recursive --max-line-length=100 --select=${select} autonormalize
159
isort --recursive autonormalize
1610

11+
.PHONY: lint
12+
lint:
13+
flake8 autonormalize
14+
isort --check-only --recursive autonormalize
15+
1716
.PHONY: test
18-
test:
19-
pytest autonormalize/tests
17+
test: lint
18+
pytest autonormalize/
2019

2120
.PHONY: testcoverage
2221
testcoverage: lint
23-
pytest autonormalize/tests --cov=autonormalize
24-
25-
.PHONY: installdeps
26-
installdeps:
27-
pip install --upgrade pip -q
28-
pip install -e . -q
29-
pip install -r dev-requirements.txt -q
22+
pytest autonormalize/ --cov=autonormalize

autonormalize/.DS_Store

-10 KB
Binary file not shown.

autonormalize/demos/.DS_Store

-6 KB
Binary file not shown.

autonormalize/examples/.DS_Store

-6 KB
Binary file not shown.

autonormalize/tests/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)