Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
Merging upstream rather than rebasing.
  • Loading branch information
Arch Ont committed Aug 20, 2024
2 parents 0472487 + 5c02597 commit eef9849
Show file tree
Hide file tree
Showing 32 changed files with 2,124 additions and 456 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
time: "03:00"
open-pull-requests-limit: 10
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: ofxstatement

on:
push:
branches: master
pull_request:

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv coveralls
pipenv sync --dev
- name: Test with pytest
run: |
pipenv run pytest -v --cov src/ofxstatement
- name: Check with mypy
run: |
pipenv run mypy src
- name: Check with black
run: |
pipenv run black --check setup.py src
- name: Coveralls
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
COVERALLS_PARALLEL: true
run: |
coveralls --service=github
report:
needs: test
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
- name: Coveralls Finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
run: |
pip install coveralls
coveralls --service=github --finish
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

73 changes: 71 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,77 @@
~~~~~~~
Changes
~~~~~~~
-------

0.9.2 (unreleased)
==================

- Switch to importlib.metadata from deprecated pkg_resources for plugin lookup (internal
infrastructure update, #262)
- Fix invest transactions unit precision (#257)


0.9.1 (2023-09-16)
==================

- Make OFX output conform to DTD (#243).


0.9.0 (2023-08-07)
==================

- New `-c` (`--config`) option for `convert` command, allows to specify the
configuration file to use (#235).
- Print the number of transactions in the output (#236).


0.8.0 (2021-09-06)
==================

- Support OFX CURRENCY and ORIGCURRENCY in statement lines. This allows plugins
to add information about transaction currency to generated OFX statements.
- Add `--pretty` flag to `convert` command to produce nicely intented OFX files.

0.7.1 (2020-09-14)
==================

- Include PEP-561 marker into source code distribution


0.7.0 (2020-09-13)
==================

- Drop support for Python 3.4, 3.5, add support for Python 3.8
- Fixed naive end balance validation (#106)
- Modernize development environment (use pipenv, mypy, black)

0.6.5 (2020-06-09)
==================

- Added balance checks and improved generation of unique ids (#100, #104)


0.6.4 (2020-03-04)
==================

- Fix regression introduced in 0.6.3 - `edit-config` command stopped working.


0.6.3 (2020-02-13)
==================

- Fix config editing on Windows

0.6.2 (2020-01-20)
==================

- Better `EDITOR` environment variable handling for `edit-config` command
- Support Python-3.7
- API: type of StatementLine.date_user (date when user initiated transaction)
will not be a string by default.
- API: More unique generated transaction ids (when one is not available from
the statement file)

0.6.1 (2017-05-07)
==================

- Fix installation problem on python-3.5 (#55)

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include CHANGES.rst README.rst
include src/ofxstatement/plugins/README.txt
include src/ofxstatement/py.typed
graft src/ofxstatement/tests/samples
37 changes: 13 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
VENV=$(abspath .venv)
PIP=$(VENV)/bin/pip

all: bin/ofxstatement bin/pytest

$(VENV):
virtualenv -p python3 --no-site-packages $(VENV)

bin:
mkdir $@

bin/ofxstatement: $(VENV)/bin/ofxstatement | bin
ln -sf $(VENV)/bin/ofxstatement $@
touch $@

bin/pytest: $(VENV)/bin/ofxstatement | bin
ln -sf $(VENV)/bin/pytest $@
touch $@

$(VENV)/bin/ofxstatement: $(VENV) setup.py
$(PIP) install --editable .[test]
all: test mypy black

PHONY: test
test: bin/pytest
bin/pytest
test:
pytest

PHONY: coverage
coverage: bin/pytest
./bin/pytest --cov src/ofxstatement
pytest --cov src/ofxstatement

.PHONY: black
black:
black setup.py src

.PHONY: mypy
mypy:
mypy src

19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "*"
pytest-cov = "*"
black = "*"
mypy = "*"
exceptiongroup = {markers="python_version < '3.11'"}
tomli = {markers="python_version < '3.11'"}
types-appdirs = "*"

[packages]
ofxstatement = {editable = true,path = "."}
exceptiongroup = "*"
importlib_metadata = {version = ">=3.8", markers="python_version < '3.10'"}
zipp = {version = ">=3.8", markers="python_version < '3.10'"}
Loading

0 comments on commit eef9849

Please sign in to comment.