Skip to content

Commit 9f6db94

Browse files
committed
🔨 migrate from setuptools to hatch / hatchling
1 parent 58a0408 commit 9f6db94

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

MANIFEST.in

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

pyproject.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "mysql-to-sqlite3"
77
description = "A simple Python tool to transfer data from MySQL to SQLite 3"
8+
readme = "README.md"
89
license = { text = "MIT" }
910
requires-python = ">=3.7"
1011
authors = [
@@ -46,20 +47,20 @@ dependencies = [
4647
"tqdm>=4.65.0",
4748
"tabulate",
4849
]
49-
dynamic = ["version", "readme"]
50+
dynamic = ["version"]
5051

51-
[tool.setuptools.dynamic]
52-
version = { attr = "mysql_to_sqlite3.__version__" }
53-
readme = { file = "README.md", content-type = "text/markdown" }
52+
[tool.hatch.version]
53+
path = "mysql_to_sqlite3/__init__.py"
5454

55-
[tool.setuptools]
56-
packages = ["mysql_to_sqlite3"]
57-
include-package-data = true
58-
zip-safe = false
59-
license-files = ["LICENSE"]
60-
61-
[tool.distutils.bdist_wheel]
62-
universal = true
55+
[tool.hatch.build.targets.sdist]
56+
include = [
57+
"mysql_to_sqlite3",
58+
"tests",
59+
"README.md",
60+
"CODE-OF-CONDUCT.md",
61+
"LICENSE",
62+
"requirements_dev.txt",
63+
]
6364

6465
[project.scripts]
6566
mysql2sqlite = "mysql_to_sqlite3.cli:cli"

0 commit comments

Comments
 (0)