-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5002 from plotly/simplify-dir-structure
Move `packages/python/plotly` to top level
- Loading branch information
Showing
15,197 changed files
with
655 additions
and
689 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,13 @@ commands: | |
- run: | ||
name: Install dependencies | ||
command: | | ||
cd packages/python/plotly | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip wheel | ||
pip install -r ./test_requirements/requirements_<<parameters.py>>_core.txt | ||
- run: | ||
name: Test core | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest plotly/tests/test_core | ||
no_output_timeout: 20m | ||
|
@@ -41,7 +39,6 @@ commands: | |
- run: | ||
name: Install dependencies | ||
command: | | ||
cd packages/python/plotly | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip wheel | ||
|
@@ -52,47 +49,40 @@ commands: | |
- run: | ||
name: Install plotly-geo | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pip install plotly-geo | ||
- run: | ||
name: Test core | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest plotly/tests/test_core | ||
no_output_timeout: 20m | ||
- run: | ||
name: Test optional | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest plotly/tests/test_optional | ||
no_output_timeout: 40m | ||
- run: | ||
name: Test utils | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest _plotly_utils/tests/ | ||
no_output_timeout: 20m | ||
- run: | ||
name: Test io | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest plotly/tests/test_io | ||
no_output_timeout: 20m | ||
- run: | ||
name: Test dependencdies not imported | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest -x test_init/test_dependencies_not_imported.py | ||
- run: | ||
name: Test lazy imports | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest -x test_init/test_lazy_imports.py | ||
test_orca: | ||
|
@@ -107,15 +97,13 @@ commands: | |
- run: | ||
name: Install dependencies | ||
command: | | ||
cd packages/python/plotly | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip wheel | ||
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt | ||
- run: | ||
name: Install plotly-geo | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pip install plotly-geo | ||
- run: | ||
|
@@ -129,12 +117,11 @@ commands: | |
- run: | ||
name: Test orca | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
pytest plotly/tests/test_orca | ||
no_output_timeout: 20m | ||
- store_artifacts: | ||
path: packages/python/plotly/plotly/tests/test_orca/images/linux/failed | ||
path: plotly/tests/test_orca/images/linux/failed | ||
|
||
jobs: | ||
check-code-formatting: | ||
|
@@ -283,9 +270,9 @@ jobs: | |
python -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip wheel | ||
pip install -e ./packages/python/plotly | ||
pip install -e . | ||
pip install plotly-geo | ||
pip install -r ./packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt | ||
pip install -r test_requirements/requirements_39_pandas_2_optional.txt | ||
- run: | ||
name: Build html figures (Pandas 2) | ||
|
@@ -322,7 +309,6 @@ jobs: | |
- run: | ||
name: Install dependencies | ||
command: | | ||
cd packages/python/plotly | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip wheel | ||
|
@@ -331,27 +317,23 @@ jobs: | |
- run: | ||
name: Update jupyter widget plotly.js version | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
python setup.py updateplotlywidgetversion | ||
- run: | ||
name: Update plotly.js to dev | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
python setup.py updateplotlyjsdev | ||
- run: | ||
name: Test core | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
locale | ||
pytest -k 'not nodev' plotly/tests/test_core | ||
no_output_timeout: 20m | ||
- run: | ||
name: Commit | ||
command: | | ||
cd packages/python/plotly | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
git add -A | ||
|
@@ -360,12 +342,11 @@ jobs: | |
- run: | ||
name: Build source distribution packages | ||
command: | | ||
cd packages/python/plotly | ||
. venv/bin/activate | ||
python setup.py sdist | ||
when: always | ||
- store_artifacts: | ||
path: packages/python/plotly/dist | ||
path: dist/ | ||
|
||
full_build: | ||
docker: | ||
|
@@ -392,7 +373,7 @@ jobs: | |
command: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate env | ||
cd packages/python/plotly/js | ||
cd js | ||
npm ci | ||
npm run build | ||
git status | ||
|
@@ -402,27 +383,25 @@ jobs: | |
command: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate env | ||
cd packages/python/plotly | ||
python setup.py sdist bdist_wheel | ||
cp -R dist ../../../output/dist | ||
cp -R dist output/dist | ||
git status | ||
- run: | ||
name: Conda Build | ||
command: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate env | ||
cd packages/python/plotly | ||
conda build recipe/ | ||
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 ../../../output | ||
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 output/ | ||
git status | ||
- run: | ||
name: Build Widget javascript bundle | ||
command: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate env | ||
cd packages/python/plotly/js | ||
cd js | ||
npm ci | ||
npm run build | ||
|
@@ -471,12 +450,12 @@ jobs: | |
pip install -r requirements.txt | ||
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then | ||
pip uninstall -y plotly | ||
cd ../packages/python/plotly | ||
cd .. | ||
pip install -e . | ||
cd js | ||
npm ci | ||
npm run build | ||
cd ../../../../doc | ||
cd ../doc | ||
fi | ||
cd .. | ||
- run: | ||
|
@@ -553,9 +532,9 @@ jobs: | |
# graph_objs/graph_objects | ||
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then | ||
pip uninstall -y plotly | ||
cd ../packages/python/plotly | ||
cd .. | ||
pip install -e . | ||
cd ../../../doc | ||
cd doc | ||
cd apidoc | ||
make html | ||
cd _build/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
packages/python/plotly/plotly/_version.py export-subst | ||
plotly/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.