Skip to content

Commit ca6e7fc

Browse files
committed
Move environment.yml into the root directory
1 parent 0edd4d5 commit ca6e7fc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/public-analyze-code-graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
python-version: ${{ matrix.python }}
110110
miniforge-version: ${{ matrix.miniforge }}
111111
activate-environment: codegraph
112-
environment-file: ./jupyter/environment.yml
112+
environment-file: ./environment.yml
113113
auto-activate-base: false
114114
show-channel-urls: true
115115
- name: (Python Setup) Conda environment info

COMMANDS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ Here is an example on how to use [executeJupyterNotebook.sh](./scripts/executeJu
389389
conda activate codegraph
390390
```
391391

392-
or by using the environment file [codegraph-environment.yml](./jupyter/environment.yml):
392+
or by using the codegraph environment file [environment.yml](./environment.yml):
393393

394394
```shell
395-
conda env create --file ./jupyter/environment.yml
395+
conda env create --file ./environment.yml
396396
conda activate codegraph
397397
```
398398

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-an
137137
- Start [Neo4j](https://neo4j.com) Graph Database ([analysis.sh](./scripts/analysis/analyze.sh))
138138
- Generate CSV Reports [scripts/reports](./scripts/reports) using the command line JSON parser [jq](https://jqlang.github.io/jq)
139139
- Uses [Neo4j Graph Data Science](https://neo4j.com/product/graph-data-science) for community detection, centrality, similarity, node embeddings and topological sort ([analysis.sh](./scripts/analysis/analyze.sh))
140-
- Generate [Jupyter Notebook](https://jupyter.org) reports using these libraries specified in the [environment.yml](./jupyter/environment.yml):
140+
- Generate [Jupyter Notebook](https://jupyter.org) reports using these libraries specified in the [environment.yml](./environment.yml):
141141
- [Python](https://www.python.org)
142142
- [jupyter](https://jupyter.org)
143143
- [matplotlib](https://matplotlib.org)
File renamed without changes.

scripts/activateCondaEnvironment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Activates the Conda (Python package manager) environment "codegraph" with all packages needed to execute the Jupyter Notebooks.
44

55
# Note: This script uses the conda environment defined in CODEGRAPH_CONDA_ENVIRONMENT (defaults to "codegraph").
6-
# If the environment hadn't been created yet it will use "environment.yml"
6+
# If the environment hadn't been created yet, it will use "environment.yml" from the root directory
77
# in the same directory as the given jupyter notebook ipynb file
88
# to create the environment.
99

@@ -25,7 +25,7 @@ echo "activateCondaEnvironment: JUPYTER_NOTEBOOK_DIRECTORY=${JUPYTER_NOTEBOOK_DI
2525

2626
# Get the file name of the environment description file for the conda package and environment manager
2727
# that contains all dependencies and their versions.
28-
CONDA_ENVIRONMENT_FILE=${CONDA_ENVIRONMENT_FILE:-"${JUPYTER_NOTEBOOK_DIRECTORY}/environment.yml"} # Conda (package manager for Python) environment file path
28+
CONDA_ENVIRONMENT_FILE=${CONDA_ENVIRONMENT_FILE:-"${JUPYTER_NOTEBOOK_DIRECTORY}/../environment.yml"} # Conda (package manager for Python) environment file path
2929
if [ ! -f "${CONDA_ENVIRONMENT_FILE}" ] ; then
3030
echo "activateCondaEnvironment: Couldn't find environment file ${CONDA_ENVIRONMENT_FILE}."
3131
exit 2

0 commit comments

Comments
 (0)