File tree Expand file tree Collapse file tree 5 files changed +22
-17
lines changed Expand file tree Collapse file tree 5 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,17 @@ jobs:
28
28
with :
29
29
ref : ${{ github.event.pull_request.head.ref }}
30
30
repository : ${{ github.event.pull_request.head.repo.full_name }}
31
- - name : Install requirements
32
- run : |
33
- pip config --site set global.progress_bar off
34
- pip install -r requirements.txt
35
- pip install -r complete-requirements.txt
36
- pip install -r test-requirements.txt
37
31
- name : Create source distribution
38
32
run : make package_nlp_primitives
39
- - name : Install source distribution
33
+ - name : Install nlp_primtivies from sdist
40
34
run : |
41
35
NLP_PRIMITIVES_VERSION=$(python setup.py --version)
42
36
pip install dist/nlp_primitives-${NLP_PRIMITIVES_VERSION}.tar.gz
43
- - name : Run unit tests
37
+ - name : Test by importing
44
38
run : |
45
39
cd nlp_primitives
46
40
python -c "import nlp_primitives; print(nlp_primitives.__version__)"
47
41
python -c "import sys; print(sys.path)"
48
- make -f ../Makefile unit-tests
42
+ - name : Check package conflicts
43
+ run : |
44
+ python -m pip check
Original file line number Diff line number Diff line change 30
30
make installdeps-complete
31
31
pip install -r test-requirements.txt
32
32
- name : Run lint tests
33
- run : make lint-tests
33
+ run : make lint
Original file line number Diff line number Diff line change 36
36
name : Install latest version of Featuretools from main branch
37
37
run : pip install git+https://github.com/alteryx/featuretools.git@main#egg=featuretools --force-reinstall
38
38
- name : Run unit tests
39
- run : make unit-tests
39
+ run : make test
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ lint-fix:
21
21
autopep8 --in-place --recursive --max-line-length=100 --select=${select} nlp_primitives
22
22
isort --recursive nlp_primitives
23
23
24
- .PHONY : lint-tests
25
- lint-tests :
24
+ .PHONY : lint
25
+ lint :
26
26
flake8 nlp_primitives
27
27
isort --check-only nlp_primitives
28
28
29
- .PHONY : unit-tests
30
- unit-tests :
29
+ .PHONY : test
30
+ test :
31
31
pytest --cache-clear --show-capture=stderr -vv
32
32
33
33
.PHONY : installdeps
@@ -56,8 +56,16 @@ checkdepscomplete:
56
56
$(eval allow_list='featuretools|nltk|tensorflow|tensorflow_hub')
57
57
pip freeze | grep -v " nlp_primitives.git" | grep -E $(allow_list ) > $(OUTPUT_FILEPATH )
58
58
59
+ .PHONY : upgradepip
60
+ upgradepip :
61
+ python -m pip install --upgrade pip
62
+
63
+ .PHONY : upgradebuild
64
+ upgradebuild :
65
+ python -m pip install --upgrade build
66
+
59
67
.PHONY : package_nlp_primitives
60
- package_nlp_primitives :
68
+ package_nlp_primitives : upgradepip upgradebuild
61
69
python setup.py sdist
62
70
$(eval PACKAGE=$(shell python setup.py --version) )
63
71
tar -zxvf " dist/nlp_primitives-${PACKAGE} .tar.gz"
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ Future Release
10
10
* Speed up LSA primitive initialization (:pr: `118 `)
11
11
* Documentation Changes
12
12
* Testing Changes
13
+ * Fix install test and update Makefile (:pr: `123 `)
13
14
14
15
Thanks to the following people for contributing to this release:
15
- :user: `rwedge `
16
+ :user: `rwedge `, :user: ` thehomebrewnerd `
16
17
17
18
v2.4.0 Mar 31, 2022
18
19
===================
You can’t perform that action at this time.
0 commit comments