Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
MOPAC_VERSION: 23.2
MOPAC_VERSION: 23.2.1

jobs:
build-src:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/sphinx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main

env:
MOPAC_VERSION: 23.2.1

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,10 +20,10 @@ jobs:

- name: Get MOPAC shared library
run: |
curl -OL https://github.com/openmopac/mopac/releases/download/v23.2/mopac-23.2-linux.tar.gz
tar -xvzf mopac-23.2-linux.tar.gz
curl -OL https://github.com/openmopac/mopac/releases/download/v${{ env.MOPAC_VERSION }}/mopac-${{ env.MOPAC_VERSION }}-linux.tar.gz
tar -xvzf mopac-${{ env.MOPAC_VERSION }}-linux.tar.gz
mkdir src/mopactools/lib
cp mopac-23.2-linux/lib/* src/mopactools/lib
cp mopac-${{ env.MOPAC_VERSION }}-linux/lib/* src/mopactools/lib

- name: Build HTML
uses: ammaraskar/sphinx-action@master
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ cython_debug/
*.so
*.dll
src/mopactools/lib

# Mac stuff
.DS_Store
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mopactools"
version = "0.1.1"
version = "0.1.2"
authors = [
{ name="Jonathan Moussa", email="jemoussa@vt.edu" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/mopactools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def from_file(input_path):
binding.libmopac.get_mopac_version(buffer)
#: Semantic version number of the MOPAC shared library
VERSION = buffer.value.decode('utf-8')
MIN_VERSION = "23.2"
MIN_VERSION = "23.2.1"
try:
if Version(VERSION) < Version(MIN_VERSION):
raise ValueError(f"MOPAC shared library version ({VERSION}) is older than the minimum required version ({MIN_VERSION}).")
Expand Down