Skip to content

Commit

Permalink
Merge branch 'gramps-project:master' into resource_path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichault committed Feb 15, 2024
2 parents 5034637 + f41cddc commit be44374
Show file tree
Hide file tree
Showing 113 changed files with 5,836 additions and 7,485 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: psf/black@stable
2 changes: 1 addition & 1 deletion .github/workflows/gramps-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
shell: msys2 {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
Expand All @@ -39,7 +39,7 @@ jobs:
run: |
cd aio
./build.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: GrampsAIO
path: D:\a\gramps\gramps\aio\mingw64\src\GrampsAIO-*.exe
Expand Down
24 changes: 6 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ The following packages are **STRONGLY RECOMMENDED** to be installed:

Used by Graphviz reports to help create PDF files.

* **python-imagesize**

Provides better image processing performance. If this module is not available,
we continue to use Gdk. This provides a real improvement when we need to
process many big images.

The following packages are optional:
------------------------------------
* **gspell**
Expand Down Expand Up @@ -121,24 +127,6 @@ The following packages are optional:
Python bindings of fontconfig are required for displaying
genealogical symbols

* **magic**

Python magic bindings required to have better performances with image
processing.
If this module is not available, we continue to use Gdk.
This avoid to load the image in memory. This is a real improvement
when we have many big images.
Used in odfdoc, rtfdoc and webreport and tested with png, gif, jpeg, bmp, tiff
#
# file size with magic without (Gdk) ratio
# example 1 : 256k 0.00080 0.00575 7
# example 2 : 21M 0.00171 0.55860 326

Debian, Ubuntu, ... : python3-magic
Fedora, Redhat, ... : python3-magic
openSUSE : python-magic
ArchLinux : python-magic

Optional packages required by Third-party Addons
------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion aio/grampsaioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
environ["G_ENABLE_DIAGNOSTIC"] = "0"
environ["G_PARAM_DEPRECATED"] = "0"
environ["GRAMPS_RESOURCES"] = join(aio, "share")
environ["PATH"] = aio + ";" + aio + "\lib;" + environ["PATH"]
environ["PATH"] = aio + ";" + aio + "\\lib;" + environ["PATH"]


def close():
Expand Down
2 changes: 1 addition & 1 deletion aio/grampsaiocd.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
environ["G_ENABLE_DIAGNOSTIC"] = "0"
environ["G_PARAM_DEPRECATED"] = "0"
environ["GRAMPS_RESOURCES"] = join(aio, "share")
environ["PATH"] = aio + ";" + aio + "\lib;" + environ["PATH"]
environ["PATH"] = aio + ";" + aio + "\\lib;" + environ["PATH"]

import gramps.grampsapp as app

Expand Down
2 changes: 1 addition & 1 deletion aio/grampsaiow.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
environ["G_ENABLE_DIAGNOSTIC"] = "0"
environ["G_PARAM_DEPRECATED"] = "0"
environ["GRAMPS_RESOURCES"] = join(aio, "share")
environ["PATH"] = aio + ";" + aio + "\lib;" + environ["PATH"]
environ["PATH"] = aio + ";" + aio + "\\lib;" + environ["PATH"]

import atexit
import ctypes
Expand Down
1 change: 1 addition & 0 deletions aio/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Use with:
python3 setup.py build_exe --no-compress -O1
"""

import sys
import os
import site
Expand Down
2 changes: 1 addition & 1 deletion data/man/en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ To explicitly specify the formats in the above example, append filenames with
appropriate **-f** options::

gramps -i file1.ged -f gedcom -i file2.tgz -f gramps-pkg \
-i ~/db3.gramps -f gramps-xml -i file4.wft -f wft -a check
-i ~/db3.gramps -f gramps -i file4.wft -f wft -a check

To record the database resulting from all imports, supply a **-e** flag (use
**-f** if the filename does not allow gramps to guess the format)::
Expand Down

0 comments on commit be44374

Please sign in to comment.