Skip to content

Commit 2ed64db

Browse files
authored
Merge pull request #728 from finos/python_monorepo
convert to monolithic python install
2 parents 9bc0bfa + 616fbec commit 2ed64db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+7112
-1470
lines changed

.travis.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ matrix:
2121
cache: pip
2222
services: docker
2323

24-
- python: "3.6"
25-
language: python
26-
env: TEST=PYTHON_TABLE
27-
cache: pip
28-
services: docker
29-
30-
- python: "3.6"
31-
language: python
32-
env: TEST=PYTHON_NODE
33-
cache: pip
34-
services: docker
35-
3624
- language: c++
3725
env: TEST=CPP_OSX
3826
os: osx
@@ -48,7 +36,7 @@ env:
4836

4937
install:
5038
- if [ "$TEST" = "CPP_OSX" ]; then brew install yarn; fi
51-
- if [ "$TEST" = "PYTHON_NODE"]; then curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install npm; fi
39+
- if [ "$TEST" = "PYTHON"]; then curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install npm; fi
5240
- yarn
5341

5442
script:
@@ -59,7 +47,5 @@ script:
5947
- if [ "$TEST" = "CPP" ]; then PSP_DOCKER=1 yarn build_cpp; fi
6048
- if [ "$TEST" = "CPP" ]; then PSP_DOCKER=1 yarn test_cpp; fi
6149
- if [ "$TEST" = "PYTHON" ]; then PSP_DOCKER=1 yarn ci_python; fi
62-
- if [ "$TEST" = "PYTHON_TABLE" ]; then PSP_DOCKER=1 yarn ci_python:table; fi
63-
- if [ "$TEST" = "PYTHON_NODE" ]; then PSP_DOCKER=1 yarn ci_python:node; fi
6450
- if [ "$TEST" = "CPP_OSX" ]; then yarn build_cpp; fi
6551
- if [ "$TEST" = "CPP_OSX" ]; then yarn test_cpp; fi

cpp/perspective/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ elseif(PSP_CPP_BUILD OR PSP_PYTHON_BUILD)
241241
# PYTHON BINDINGS BUILD #
242242
#########################
243243
include_directories("/usr/local/include/python3.7m") # FIXME
244-
include_directories("${CMAKE_SOURCE_DIR}/../../python/table/perspective/include")
244+
include_directories("${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/include")
245245
find_package( PythonInterp 3.7 REQUIRED )
246246
find_package( PythonLibs 3.7 REQUIRED )
247247
include_directories( ${PYTHON_INCLUDE_DIRS} )
@@ -356,14 +356,14 @@ set (SOURCE_FILES
356356
)
357357

358358
set (PYTHON_SOURCE_FILES
359-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/accessor.cpp
360-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/context.cpp
361-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/fill.cpp
362-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/python.cpp
363-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/serialization.cpp
364-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/table.cpp
365-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/utils.cpp
366-
${CMAKE_SOURCE_DIR}/../../python/table/perspective/src/view.cpp
359+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/accessor.cpp
360+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/context.cpp
361+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/fill.cpp
362+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/python.cpp
363+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/serialization.cpp
364+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/table.cpp
365+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/utils.cpp
366+
${CMAKE_SOURCE_DIR}/../../python/perspective/perspective/src/view.cpp
367367
)
368368

369369
if (WIN32)

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,39 +72,28 @@
7272
"build": "node scripts/build.js",
7373
"build_cpp": "node scripts/build_cpp.js",
7474
"build_python": "node scripts/build_python.js",
75-
"build_python:table": "node scripts/build_python.js --target table",
76-
"build_python:node": "node scripts/build_python.js --target node",
7775
"ci_python": "node scripts/ci_python.js",
78-
"ci_python:table": "node scripts/ci_python.js --target table",
79-
"ci_python:node": "node scripts/ci_python.js --target node",
8076
"install_python": "cd python/table && python3 setup.py install",
81-
"install_python:table": "cd python/perspective && python3 setup.py install",
8277
"bench": "node scripts/bench.js",
8378
"setup": "node scripts/setup.js",
8479
"docs": "node scripts/docs.js",
8580
"test": "node scripts/test.js",
8681
"test_js": "node scripts/test_js.js",
8782
"test_cpp": "node scripts/test_cpp.js",
8883
"test_python": "node scripts/test_python.js",
89-
"test_python:table": "node scripts/test_python.js --target table",
90-
"test_python:node": "node scripts/test_python.js --target node",
9184
"clean": "node scripts/clean.js",
9285
"start": "lerna run start --stream --scope",
9386
"precommit": "npm run lint",
9487
"publish_python": "python3 setup.py sdist upload -r pypi",
95-
"lint": "npm-run-all lint:* lint_python:*",
88+
"lint": "npm-run-all lint:* lint_python",
9689
"lint:eslint": "eslint packages/*/src/**/*.js packages/*/test/**/*.js examples/*/*.js",
9790
"lint_python": "node scripts/lint_python.js",
98-
"lint_python:table": "node scripts/lint_python.js --target table",
99-
"lint_python:node": "node scripts/lint_python.js --target node",
10091
"fix:es": "npm run lint:eslint -- --fix",
10192
"fix:cpp": "node scripts/fix_cpp.js",
10293
"fix:less": "prettier --tab-width 4 --write packages/**/src/less/*.less",
10394
"fix:html": "html-beautify packages/**/src/html/*.html -r",
10495
"fix:json": "prettier --tab-width 4 --write **/package.json",
10596
"fix_python": "node scripts/lint_python.js --fix",
106-
"fix_python:table": "node scripts/lint_python.js --fix --target table",
107-
"fix_python:node": "node scripts/lint_python.js --fix --target node",
10897
"fix": "npm-run-all --silent fix:*",
10998
"toggle_puppeteer": "node scripts/toggle_puppeteer.js"
11099
}

python/node/.gitignore

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

python/node/MANIFEST.in

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

python/node/Makefile

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

python/node/README.md

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

python/node/docs/Makefile

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

0 commit comments

Comments
 (0)