Skip to content

Commit

Permalink
Added orjson, and 'all' to the setup script
Browse files Browse the repository at this point in the history
* Add "orjson" as install_requires
* Add a new "all" group with common python packages used in Gramps
* Updated the README (bsddb3 made optional, removed sqlite3)
  • Loading branch information
dsblank authored and Nick-Hall committed Feb 7, 2025
1 parent 149fb61 commit f5e551c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ The following three packages with GObject Introspection bindings (the gi package
* [**pango**](http://www.pango.org/) - a library for laying out and rendering of text, with an emphasis on internationalization.
* [**pangocairo**](http://www.pango.org/) - Allows you to use Pango with Cairo.
* [**librsvg2**](http://live.gnome.org/LibRsvg) - (SVG icon view) a library to render SVG files using cairo.
* [**bsddb3**](https://pypi.python.org/pypi/bsddb3/) - Python bindings for Oracle Berkeley database.
* [**sqlite3**](https://www.sqlite.org/) - Python bindings for SQLite Database library.
* [**orjson**](https://pypi.org/project/orjson/) - A fast JSON library for Python. Used to increase the performance of Gramps.

The following package is needed for full translation of the interface
Expand Down Expand Up @@ -81,6 +79,10 @@ The following packages are **STRONGLY RECOMMENDED** to be installed:

The following packages are optional:
------------------------------------
* [**bsddb3**](https://pypi.python.org/pypi/bsddb3/)

Python bindings for Oracle Berkeley database. Only needed to upgrade older Gramps databases.

* **gspell**

Enable spell checking in the notes.
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,19 @@ def run(self):
cmdclass={"build": build, "test": test},
packages=packages,
package_data={"gramps": package_data},
install_requires=["orjson"],
extras_require={
"bsddb": ["bsddb3"],
"image": ["Pillow"],
"i18n": ["PyICU"],
"GUI": ["PyGObject", "pycairo"],
"all": [
"Pillow",
"PyGObject",
"PyICU",
"imagesize",
"pycairo",
"pycountry",
],
"testing": ["jsonschema", "mock", "lxml"],
},
data_files=data_files,
Expand Down

0 comments on commit f5e551c

Please sign in to comment.