Skip to content

Commit

Permalink
Merge pull request #220 from jim-easterbrook/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
jim-easterbrook committed Nov 11, 2023
2 parents a9aa05b + 6ea8188 commit f0ffbff
Show file tree
Hide file tree
Showing 19 changed files with 8,194 additions and 85 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PyQt6 = ["PyQt6 >= 6.2", "PyQt6-WebEngine >= 6.2",
]
PySide2 = ["PySide2 >= 5.11"]
PySide6 = ["PySide6 >= 6.2"]
gpxpy = ["gpxpy >= 1.3.5, < 1.6"]
gpxpy = ["gpxpy >= 1.3.5, != 1.6.0"]
Pillow = ["Pillow >= 2.0"]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from setuptools import setup
from setuptools import __version__ as setuptools_version

if tuple(map(int, setuptools_version.split('.'))) >= (61, 0):
if tuple(map(int, setuptools_version.split('.')[:2])) >= (61, 0):
# use metadata from pyproject.toml directly
setup()
else:
Expand Down
5 changes: 2 additions & 3 deletions src/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@
#version =
# The full version, including alpha/beta/rc tags.
#release =
from photini import __version__, build
release = __version__ + '.dev' + build.split()[0]
version = __version__
from photini import __version__ as version
from photini._version import version as release

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/other/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ It is already installed on many computers, but on Windows you will probably need

Note that pip has installed the new version in ``/home/jim/.local`` as normal users can't write to ``/usr``.
(Don't be tempted to get round this by using ``sudo`` to run pip.
``/usr`` should only be written by the operating system's package manager.)
``/usr/lib/python3/dist-packages`` should only be written by the operating system's package manager.)
You may need to log out and then log in again to update your PATH settings.
(On some Linux distributions you can simply run ``source ~/.profile`` instead of logging out & in.)

Expand Down Expand Up @@ -185,6 +185,7 @@ I use the name ``photini`` and create it in my home directory:
This ensures that the latest version will be used to install Photini.

You should stay in this virtual environment while installing and testing Photini.
After that Photini can be run without activating the virtual environment.

Qt package
^^^^^^^^^^
Expand Down Expand Up @@ -597,7 +598,6 @@ This is not a very convenient way to run Photini, so most users will want to add
.. tabs::
.. code-tab:: none Linux/MacOS

sarah@mint:~$ /home/jim/photini/bin/photini-post-install
sarah@mint:~$ /home/jim/photini/bin/photini-post-install
desktop-file-install \
--dir=/home/sarah/.local/share/applications \
Expand Down
Loading

0 comments on commit f0ffbff

Please sign in to comment.