Skip to content

Commit fd0e2e8

Browse files
committed
migrate to pyproject.toml based setuptools config
1 parent 4faf3f4 commit fd0e2e8

5 files changed

Lines changed: 47 additions & 57 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
python-version: "3.14"
4444
- name: Install Dependencies
4545
run: |
46-
pip install wheel setuptools
46+
pip install wheel setuptools build
4747
- name: Build distribution
4848
run: >-
4949
make dist

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ lint:
1111

1212
.PHONY: install
1313
install:
14-
pip3 install --editable .
14+
pip install --editable .
1515

16-
dist: smart_importer setup.cfg setup.py
16+
dist: smart_importer pyproject.toml
1717
rm -rf dist
18-
python setup.py sdist bdist_wheel
18+
python -m build
1919

2020
# Before making a release, CHANGES needs to be updated and
2121
# a tag and GitHub release should be created too.

pyproject.toml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
1+
[project]
2+
name = "smart_importer"
3+
description = "Augment Beancount importers with machine learning functionality."
4+
readme = "README.rst"
5+
requires-python = ">=3.10"
6+
license = "MIT"
7+
authors = [{ name = "Johannes Harms" }]
8+
keywords = ["fava", "beancount", "accounting", "machinelearning"]
9+
classifiers = [
10+
"Development Status :: 1 - Planning",
11+
"Environment :: Web Environment",
12+
"Environment :: Console",
13+
"Intended Audience :: Education",
14+
"Intended Audience :: End Users/Desktop",
15+
"Intended Audience :: Financial and Insurance Industry",
16+
"Intended Audience :: Information Technology",
17+
"Natural Language :: English",
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Programming Language :: Python :: 3.14",
24+
"Topic :: Office/Business :: Financial :: Accounting",
25+
"Topic :: Office/Business :: Financial :: Investment",
26+
]
27+
dependencies = [
28+
"beancount>=3",
29+
"beangulp",
30+
"scikit-learn>=1.0",
31+
"numpy>=1.18.0",
32+
"typing-extensions>=4.9",
33+
]
34+
dynamic = ["version"]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/beancount/smart_importer"
38+
Issues = "https://github.com/beancount/smart_importer/issues"
39+
40+
[tool.setuptools.packages.find]
41+
exclude = ["tests"]
42+
143
[build-system]
2-
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
44+
requires = ["setuptools>=80", "setuptools_scm[simple]>=8"]
345
build-backend = "setuptools.build_meta"
446

547
[tool.black]

setup.cfg

Lines changed: 0 additions & 43 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)