Skip to content

Commit ee64a03

Browse files
authored
Updates dependencies (#176)
1 parent 6b8cd58 commit ee64a03

File tree

22 files changed

+47
-75
lines changed

22 files changed

+47
-75
lines changed

.github/workflows/build_installer.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ jobs:
4848
else
4949
./build_installer.sh --remote --tag $GITHUB_REF_NAME
5050
fi
51-
./build_installer.sh --remote
5251
- name: Upload installer
5352
uses: actions/upload-artifact@v4
5453
with:
5554
name: linux installer
5655
path: installer/linux/*.run
5756
MacOS-installer:
58-
runs-on: macos-13
57+
runs-on: macos-latest
5958
steps:
6059
- uses: actions/checkout@v4
6160
- uses: conda-incubator/setup-miniconda@v3

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
platform: [windows-latest, ubuntu-latest, macos-13]
18+
platform: [windows-latest, ubuntu-latest, macos-latest]
1919
runs-on: ${{ matrix.platform }}
2020

2121
steps:
@@ -49,7 +49,6 @@ jobs:
4949
run: |
5050
conda init bash
5151
conda activate sscanss
52-
conda install -y -c conda-forge numpy==1.23.5
5352
python make.py --build-all
5453
- name: Upload coverage files
5554
uses: actions/upload-artifact@v4

.github/workflows/publish_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
with:
2020
ref: gh-pages
2121
path: docs/_web
22-
- name: Set up Python 3.10
22+
- name: Set up Python 3.12
2323
uses: actions/setup-python@v4
2424
with:
25-
python-version: '3.10'
25+
python-version: '3.12'
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Installation
1616
------------
1717
Installers are available on the [release](https://github.com/ISISNeutronMuon/SScanSS-2/releases) page. It should be noted that while the code is
1818
Python 3 compatible, a single version will be tested for each release to ensure a consistent experience for all users.
19-
The supported version for the next release is Python 3.10.
19+
The supported version for the next release is Python 3.12.
2020

2121
Citing SScanSS 2
2222
----------------

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: sscanss
22
channels:
33
- defaults
44
dependencies:
5-
- python=3.10
5+
- python=3.12
66
- pip
77
- pip:
88
- -r requirements.txt

installer/linux/build_installer.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,14 @@ echo ""
115115
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O "$TMP_DIR/miniconda.sh"
116116
bash ./miniconda.sh -b -p ./miniconda
117117

118-
./miniconda/bin/conda create -n sscanss -y python=3.10
118+
./miniconda/bin/conda create -n sscanss -y python=3.12
119119

120120
echo ""
121121
echo "Downloading Dependencies"
122122
echo ""
123123
python_exec="./miniconda/envs/sscanss/bin/python"
124124
mkdir "$TMP_DIR/packages"
125125
$python_exec -m pip download -r "./sscanss/requirements.txt" --dest "$TMP_DIR/packages"
126-
# workaround for centos 7
127-
$python_exec -m pip download --only-binary=":all:" --platform="manylinux_2_17_x86_64" --dest "$TMP_DIR/packages" pillow==9.2
128126

129127
echo ""
130128
echo "Compressing Package.tar.gz ..."

installer/linux/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ python_exec="./envs/sscanss/bin/python"
119119
CFLAGS=$(./envs/sscanss/bin/python3-config --includes)
120120
export CFLAGS=$CFLAGS
121121
$python_exec -m pip install --no-cache-dir --no-index --no-build-isolation --find-links packages -r "./sscanss/requirements.txt" >/dev/null
122-
chmod 777 -R "./envs/sscanss/lib/python3.10/site-packages/PyQt6/"
122+
chmod 777 -R "./envs/sscanss/lib/python3.12/site-packages/PyQt6/"
123123
if [ "$INSTALL_EDITOR" = y ]; then
124124
$python_exec "./sscanss/make.py" --build-sscanss --build-editor >/dev/null
125125
else

installer/linux/readme.txt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
Before Installation
2-
-------------------
3-
SScanSS 2 requires OpenSSL CA certificates when checking for updates. If you want to
4-
use this feature, install OpenSSL if not installed (Most linux distros have OpenSSL
5-
pre-installed.)
6-
7-
> sudo apt-get install openssl
8-
9-
Add environment variable "SSL_CERT_DIR" and set its value to the path of the
10-
CA certificate directory. The OpenSSL install directory can be found by typing
11-
12-
> openssl version -d
13-
14-
The "SSL_CERT_DIR" variable should be set to the path of the "certs" folder in the
15-
OpenSSL install directory e.g.
16-
17-
SSL_CERT_DIR=/usr/lib/ssl/certs
18-
19-
Ensure the variable is permanent, i.e. close and reopen the terminal and check that
20-
the variable is still available. You may need to write the variable to a file e.g.
21-
"etc/environment" on Ubuntu.
22-
23-
241
Installation
252
------------
263
Run the install script in a terminal as below and follow the prompts to continue

make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
]
2929
HIDDEN_IMPORT = ['--hidden-import', 'OpenGL.platform.egl']
3030
IS_WINDOWS = sys.platform.startswith('win')
31-
IS_MAC = True if sys.platform == 'darwin' else False
31+
IS_MAC = sys.platform == 'darwin'
3232

3333

3434
def format_code(check=False):

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
coverage==7.0.5
2-
pylint==2.16.2
3-
Sphinx==5.3.0
1+
coverage==7.9.2
2+
pylint==3.3.7
3+
Sphinx==8.1.3
44
sphinx-bootstrap-theme==0.8.1
55
yapf==0.31.0

0 commit comments

Comments
 (0)