Skip to content

Commit

Permalink
Adjust all envs
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Sep 9, 2023
1 parent e29e43e commit d1be94a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 38 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pyflask-build-and-dist-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:

- run: npm ci

# fix for macos build
- if: matrix.os == 'macos-latest'
run: rm /Users/runner/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/sonpy/linux/sonpy.so

- name: Build PyFlask distribution
run: npm run build:flask:${{ matrix.shorthand }}

Expand Down
37 changes: 14 additions & 23 deletions environments/environment-Linux.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
name: nwb-guide
channels:
- defaults
- conda-forge
- defaults
dependencies:
- python = 3.9.17
- PyInstaller = 4.7
- nodejs = 16.14.2
- libgcc = 7.2.0
- git = 2.20.1
- python = 3.9.18
- PyInstaller = 5.13.0
- nodejs = 18.16.1
- numcodecs = 0.11.0
# install these from conda-forge so that dependent packages get included in the distributable
- jsonschema = 4.18.0 # installs jsonschema-specifications
- pydantic[email] = 2.0.2 # installs email-validator
- pip
- pip:
- chardet == 4.0.0
- pandas == 1.4.2
- openpyxl == 3.0.3
- pennsieve == 6.1.2
- configparser == 4.0.2
- python-docx == 0.8.10
- xlrd == 1.2.0
- biopython == 1.79
- flask == 2.0.2
- flask_restx
- protobuf == 3.20.0
- gevent == 21.12.0
- werkzeug == 2.0.2
- opencv-python == 4.5.3.56
- chardet == 5.1.0
- configparser == 6.0.0
- flask == 2.3.2
- flask-cors == 4.0.0
- flask_restx == 1.1.0
- neuroconv @ git+https://github.com/catalystneuro/neuroconv.git@main#neuroconv[full]
- hdmf >= 3.7.0
- pytest == 7.2.2
- pytest == 7.4.0
- pytest-cov == 4.1.0
- flask-cors === 3.0.10
5 changes: 3 additions & 2 deletions environments/environment-MAC-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ dependencies:
- PyInstaller = 5.13.0
- nodejs = 18.16.1
- numcodecs = 0.11.0
- jsonschema = 4.18.0 # this installs jsonschema-specifications which is needed for validation
- pydantic[email] = 2.0.2 # email validator is used by dandi
- lxml = 4.9.3 # pypi build fails due to x64/arm64 mismatch so install from conda-forge
- pyedflib = 0.1.32 # pypi build fails due to x64/arm64 mismatch so install from conda-forge
- numpy # may have x64/arm64 mismatch issues so install from conda-forge
# install these from conda-forge so that dependent packages get included in the distributable
- jsonschema = 4.18.0 # installs jsonschema-specifications
- pydantic[email] = 2.0.2 # installs email-validator
- pip
- pip:
- chardet == 5.1.0
Expand Down
5 changes: 3 additions & 2 deletions environments/environment-MAC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ dependencies:
- PyInstaller = 5.13.0
- nodejs = 18.16.1
- numcodecs = 0.11.0
- jsonschema = 4.18.0 # this installs jsonschema-specifications which is needed for validation
- pydantic[email] = 2.0.2 # email validator is used by dandi
# install these from conda-forge so that dependent packages get included in the distributable
- jsonschema = 4.18.0 # installs jsonschema-specifications
- pydantic[email] = 2.0.2 # installs email-validator
- pip
- pip:
- chardet == 5.1.0
Expand Down
21 changes: 11 additions & 10 deletions environments/environment-Windows.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: nwb-guide
channels:
- defaults
- conda-forge
- defaults
dependencies:
- python = 3.9.17
- nodejs = 18.16.1
- python = 3.9.18
- PyInstaller = 5.13.0
- pywin32 = 303
- git = 2.20.1
- setuptools=58.0.4
- nodejs = 18.16.1
- numcodecs = 0.11.0 # not sure if this is needed
- pywin32 = 303 # not sure if this is needed
# install these from conda-forge so that dependent packages get included in the distributable
- jsonschema = 4.18.0 # installs jsonschema-specifications
- pydantic[email] = 2.0.2 # installs email-validator
- pip
- pip:
- chardet == 5.1.0
- configparser == 6.0.0
- flask == 2.3.2
- flask-cors === 3.0.10
- flask-cors == 4.0.0
- flask_restx == 1.1.0
- neuroconv @ git+https://github.com/catalystneuro/neuroconv.git@main#neuroconv[full]
- hdmf >= 3.7.0
- pytest == 7.2.2
- pytest == 7.4.0
- pytest-cov == 4.1.0
- email-validator == 2.0.0

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": "npm run build:app",
"build:app": "electron-vite build --outDir build",
"build:win": "npm run build && npm run build:flask:win && npm run build:electron:win",
"build:mac": "npm run build && rm /Users/runner/miniconda3/envs/nwb-guide/lib/python3.9/site-packages/sonpy/linux/sonpy.so && npm run build:flask:unix && npm run build:electron:mac",
"build:mac": "npm run build && npm run build:flask:unix && npm run build:electron:mac",
"build:linux": "npm run build && npm run build:flask:unix && npm run build:electron:linux",
"build:flask:base": "python -m PyInstaller --log-level DEBUG --name nwb-guide --onedir --clean --noconfirm ./pyflask/app.py --distpath ./build/flask --collect-data jsonschema_specifications --collect-all nwbinspector --collect-all neuroconv --collect-all pynwb --collect-all hdmf --collect-all ci_info --collect-all ndx_dandi_icephys --hidden-import scipy._distributor_init --hidden-import scipy._lib.messagestream --hidden-import scipy._lib._ccallback --hidden-import scipy._lib._testutils",
"build:flask:win": "npm run build:flask:base -- --add-data ./paths.config.json;. --add-data ./package.json;.",
Expand Down

0 comments on commit d1be94a

Please sign in to comment.