ppa-dev-tools:fix-lp1983056-setup-xdg

Last commit made on 2022-07-28
Get this branch:
git clone -b fix-lp1983056-setup-xdg https://git.launchpad.net/ppa-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information

Name:
fix-lp1983056-setup-xdg
Repository:
lp:ppa-dev-tools

Recent commits

5edb734... by Bryce Harrington

lp: Adapt use of the pip xdg module if present

The xdg module from pip does not appear to provide the same import
targets as the Debian python3-xdg module, however if xdg is installed
via pip it will be loaded in preference to the system module.

Work around this situation by catching the import error and using the
pip xdg's API to get the config directory.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1983056

e2af947... by Bryce Harrington

setup.py: Drop pip requirements, to avoid confusion with xdg module

The xdg module installed from Ubuntu via apt seems to have different
import syntax than the xdg module installed via pip. The INSTALL.md
directions explain the former, which works with the codebase, but
running setup.py triggers pip to install xdg from pypi.

See: https://bugs.launchpad.net/ppa-dev-tools/+bug/1983056

83ae0f6... by Bryce Harrington

Add pyproject.toml

8a2800c... by Bryce Harrington

setup.py: Fix software name to ppa-dev-tools

ef47872... by Bryce Harrington

snap: Add a snapcraft.yaml configuration

8ff9b75... by Bryce Harrington

ppa: Code documentation and example usage

633f759... by Bryce Harrington

ppa: Implement has_packages()

55c8e04... by Bryce Harrington

lp: Fix incorrect reference to lp object

04cfbb9... by Bryce Harrington

lp: Use next() rather than index a possibly empty list

Fixes a pylint issue

4e34b5c... by Bryce Harrington

setup: Update for python3 and newer Ubuntu releases