Compare commits

..

No commits in common. "58357737ef27e81b4d88c5e370d26648d0740d7c" and "5a8da108b98363e902ccd1452be8966e5ffc3c34" have entirely different histories.

2 changed files with 6 additions and 7 deletions

View file

@ -702,10 +702,9 @@ 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)
try:
repo = os.path.realpath(os.environ['CONSERVANCY_REPOSITORY'])
except KeyError:
raise argparse.ArgumentTypeError('$CONSERVANCY_REPOSITORY environment variable is not set.')
repo = os.path.realpath(os.getenv('CONSERVANCY_REPOSITORY'))
if not repo:
raise argparse.ArgumentTypeError('$CONSERVANCY_REPOSITORY 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.21.0
version = 1.20.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://f.sfconservancy.org/NPO-Accounting/conservancy_beancount
url = https://k.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
pdfminer.six>=20200101
python-dateutil>=2.7
PyYAML>=3.0
regex