Page:
Setting up a new development environment
Pages
Changes in Photos 6 Big Sur
Database changes from 16.0 to 16.0.1
Developer Tools
Home
Logs of shared images
Machine Learning Photo Classification in Photos 5
Motivation for this project
Photos 4 database schema
Photos 5 database schema
Photos 6 database schema (Big Sur)
Photos 6 to Photos 7 Diff (Big Sur to Monterey 12.0.1)
Photos 7 (Monterey) Schema
Photos 7 to Photos 8 (Monterey to Ventura developer preview) Diff
Photos 7 to Photos 8 diff
Photos 8 Ventura 13.0 dev preview to Ventura 13.0.0 release diff
Photos 8 schema (Ventura MacOS 13.0 developer preview)
Photos 8 schema (Ventura MacOS 13.0.0)
Photos 8 to Photos 9 schema diff (Ventura to Sonoma)
Photos 9 (Sonoma) schema
Photos Behavior
Photos search data (psi.sqlite) diff Monterey to Ventura
Photos version 4 database
Photos version 5 database
Related projects
Schema changes from Photos 2 to Photos 3
Schema changes from Photos 3 to Photos 4
Schema changes from Photos 5 to Photos 6
Setting up a new development environment
Steps to create sql diff of two database versions
Structure of the code
Understanding the Photos database
iPhoto DataModelVersion.plist format
iPhoto database schema
psi.sqlite (search database) changes from Photos 5 to Photos 6
psi.sqlite schema (Photos 5)
psi.sqlite schema (Photos 6)
psi.sqlite schema (Photos 7, Monterey, macOS 12.0.1)
psi.sqlite schema (Photos 8, Ventura, macOS 13.0)
Clone
1
Setting up a new development environment
Rhet Turnbull edited this page 2020-07-23 06:54:03 -07:00
Table of Contents
Setting up a development environment on your Mac
- Download and install Python if you haven't already. You'll need python3 and you'll want want a separate python than what is installed by default on MacOS. Options include:
If you want to build a stand-alone executable of osxphotos I recommend Anaconda as the python.org version of python doesn't currently work to build the executable with pyinstaller.
- Run the following commands in your terminal.
$ git clone https://github.com/RhetTbull/osxphotos.git
$ cd osxphotos
- Setup a virtual environment so you aren't developing in your system-wide python.
$ python3 -m venv .venv
# activate the new environment
$ source .venv/bin/activate
- Confirm you're now using the python in in the virtual environment.
$ which python3
/Users/rhet/Dropbox/Code/working/osxphotos/.venv/bin/python3
- Install additional packages required for testing.
$ python3 -m pip install pytest
$ python3 -m pip install pytest-mock
- Run setup.py develop which installs osxphotos such that it's linked to your dev environment so that any edits have immediate effect
$ python3 setup.py develop
- Run
osxphotos-- this will run the version you just installed in the local environment
$ python3 -m osxphotos
- Run the tests
$ python3 -m pytest