-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Hatchling to modern package building (#208)
Replace `setup.py` with `pyproject.toml` to modernize packaging
- Loading branch information
Showing
4 changed files
with
59 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include LICENSE | ||
include README.md | ||
include setup.py | ||
include pyproject.toml | ||
prune tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "dag-factory" | ||
dynamic = ["version"] | ||
description = "Dynamically build Apache Airflow DAGs from YAML files" | ||
authors = [{ name = "Astronomer", email = "[email protected]" }] | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
license-files = { paths = ["LICENSE"] } | ||
requires-python = ">=3.8" | ||
keywords = ["airflow", "apache-airflow", "provider", "astronomer", "dag"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Topic :: Database", | ||
"Framework :: Apache Airflow", | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
dependencies = [ | ||
"apache-airflow>=2.0", | ||
"apache-airflow-providers-http", | ||
"apache-airflow-providers-cncf-kubernetes", | ||
"pyyaml", | ||
"packaging", | ||
] | ||
|
||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=6.0", | ||
"black", | ||
"pylint", | ||
"pytest-cov", | ||
"tox", | ||
] | ||
|
||
[project.urls] | ||
Source = "https://github.com/astronomer/dag-factory" | ||
|
||
[tool.hatch.version] | ||
path = "dagfactory/__version__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["dagfactory"] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["dagfactory"] |