Skip to content

Commit a6bfe5f

Browse files
committed
chore: Add PDM
1 parent 31a782f commit a6bfe5f

File tree

12 files changed

+976
-737
lines changed

12 files changed

+976
-737
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build
44
dist
55
*.egg-info
66
__pycache__
7+
.pdm-python

Pipfile

-22
This file was deleted.

Pipfile.lock

-660
This file was deleted.

pdm.lock

+941
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[project]
2+
name = "ing-ynab"
3+
version = "0.3.0"
4+
description = "Import your ING Germany bank statements via FinTS into YNAB."
5+
authors = [{ name = "Arne Bahlo", email = "[email protected]" }]
6+
dependencies = ["requests", "fints>=4.0.0"]
7+
requires-python = ">=3.7"
8+
readme = "README.md"
9+
license = { text = "MIT" }
10+
11+
[build-system]
12+
requires = ["pdm-backend"]
13+
build-backend = "pdm.backend"
14+
15+
16+
[tool.pdm]
17+
distribution = false
18+
19+
[tool.pdm.resolution]
20+
allow-prereleases = true
21+
22+
[[tool.pdm.source]]
23+
name = "pypi"
24+
url = "https://pypi.python.org/simple"
25+
verify_ssl = true
26+
27+
[tool.pdm.dev-dependencies]
28+
dev = ["pylint", "black", "pytest", "pipenv-setup"]
29+
30+
[tool.pdm.scripts]
31+
start = { shell = "cd src && python -m ing_ynab" }

setup.py

-49
This file was deleted.
File renamed without changes.

ing_ynab/__main__.py renamed to src/ing_ynab/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import sys
66

7-
from ing_ynab.cli import main
7+
from .cli import main
88

99
if __name__ == "__main__":
1010
sys.exit(main())

ing_ynab/cli.py renamed to src/ing_ynab/cli.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
import os
99
import sys
1010
from getpass import getpass
11-
from dotenv import load_dotenv
1211

13-
from ing_ynab.ynab import YNABClient, YNABError
14-
from ing_ynab.ing import INGClient, AccountNotFoundException
12+
from .ynab import YNABClient, YNABError
13+
from .ing import INGClient, AccountNotFoundException
1514

1615

1716
def ing_to_ynab(
@@ -47,8 +46,6 @@ def main() -> int:
4746
"""
4847
Start the main business logic.
4948
"""
50-
load_dotenv()
51-
5249
# Parse environment variables
5350
debug = os.environ.get("DEBUG") == "1"
5451
if debug:
File renamed without changes.
File renamed without changes.

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)