Compare commits

...

2 commits

Author SHA1 Message Date
58357737ef
Unpin pdfminer.six due to version comparison issues
Seems pip couldn't tell that pdfminer.six 20250506 >= 20200101.

Also updated package URL to Forgejo.
2025-07-12 13:21:03 +10:00
cc4be8b010
Handle case when CONSERVANCY_REPOSITORY isn't set at all 2025-07-12 13:20:05 +10:00
2 changed files with 7 additions and 6 deletions

View file

@ -702,9 +702,10 @@ def parse_repo_relative_path(path: str) -> str:
if not os.path.exists(path):
raise argparse.ArgumentTypeError(f'File {path} does not exist.')
real_path = os.path.realpath(path)
repo = os.path.realpath(os.getenv('CONSERVANCY_REPOSITORY'))
if not repo:
raise argparse.ArgumentTypeError('$CONSERVANCY_REPOSITORY is not set.')
try:
repo = os.path.realpath(os.environ['CONSERVANCY_REPOSITORY'])
except KeyError:
raise argparse.ArgumentTypeError('$CONSERVANCY_REPOSITORY environment variable is not set.')
if not real_path.startswith(repo):
raise argparse.ArgumentTypeError(
f'File {real_path} does not share a common prefix with $CONSERVANCY_REPOSITORY {repo}.'

View file

@ -1,6 +1,6 @@
[metadata]
name = conservancy_beancount
version = 1.20.0
version = 1.21.0
author = Software Freedom Conservancy
author_email = info@sfconservancy.org
description = Plugin, library, and reports for reading Conservancys books
@ -12,7 +12,7 @@ long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
project_urls =
Source = %(url)s
url = https://k.sfconservancy.org/NPO-Accounting/conservancy_beancount
url = https://f.sfconservancy.org/NPO-Accounting/conservancy_beancount
[bdist_wheel]
universal = 1
@ -36,7 +36,7 @@ install_requires =
colorama
GitPython>=2.0
odfpy>=1.4.0,!=1.4.1
pdfminer.six>=20200101
pdfminer.six
python-dateutil>=2.7
PyYAML>=3.0
regex