Skip to content

Commit

Permalink
Merge pull request #38 from andreasgerstmayr/update-pyproject-toml
Browse files Browse the repository at this point in the history
Use PEP 621 compliant pyproject.toml
  • Loading branch information
blais authored Jan 26, 2025
2 parents bcd8251 + b5fcca2 commit 9021218
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ There are three related scripts:
side-product. This script can read that file and fetch those missing dates,
which you can insert in your ledger and then rerun compute_returns.py for a
more precise calculation.

## Example

To run the example:
```
cd example
uv run beangrow-returns ledger.beancount config.pbtxt ./reports
```

The reports are available at `example/reports/groups`.
File renamed without changes.
32 changes: 15 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ['setuptools']
build-backend = 'setuptools.build_meta'

[tool.poetry]
[project]
name = "beangrow"
version = '1.0.1'
description = 'Returns calculations on portfolios in Beancount Resources'
Expand All @@ -26,26 +26,24 @@ classifiers = [
'Programming Language :: SQL',
'Topic :: Office/Business :: Financial :: Accounting',
]
packages = [
{ include = "beangrow", from = "." },
requires-python = '>= 3.10'
dependencies = [
'numpy >= 1.26.4',
'pandas >= 2.2.2',
'matplotlib >= 3.9.0',
'beancount >= 2.3.6',
'scipy >= 1.13.1',
'beanprice >= 1.2.1',
'pandas-stubs >= 2.2.2.240514',
'matplotlib-stubs >= 0.2.0',
"protobuf >= 5.29.3",
]

[tool.poetry.scripts]
[project.scripts]
beangrow-returns = "beangrow.compute_returns:main"
beangrow-prices = "beangrow.download_prices:main"
beangrow-prices-file = "beangrow.download_prices_from_file:main"

[tool.poetry.dependencies]
python = ">=3.10"
numpy = "^1.26.4"
pandas = "^2.2.2"
matplotlib = "^3.9.0"
beancount = "^2.3.6"
scipy = "^1.13.1"
beanprice = "^1.2.1"
pandas-stubs = "^2.2.2.240514"
matplotlib-stubs = "^0.2.0"

[tool.black]
line-length = 88

Expand Down

0 comments on commit 9021218

Please sign in to comment.