Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ on:

jobs:

build-package:
name: Build & verify package
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: hynek/build-and-inspect-python-package@v2
id: baipp

outputs:
python-versions: ${{ steps.baipp.outputs.supported_python_classifiers_json_array }}

run-tests:

name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ src/_pytask/_version.py
*.pkl

tests/test_jupyter/*.txt
.venv
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ repos:
- id: codespell
additional_dependencies: [tomli]
exclude: (\.ipynb)
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
args: [--no-build-isolation]
additional_dependencies: [setuptools-scm, toml, wheel]
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.2
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"

sphinx:
configuration: docs/source/conf.py
Expand Down
15 changes: 0 additions & 15 deletions MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions docs/source/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
- {pull}`593` recreate `PythonNode`s every run since they carry the `_NoDefault` enum as
the value whose state is `None`.
- {pull}`594` publishes `NodeLoadError`.
- {pull}`596` add project management with rye.

## 0.4.7 - 2024-03-19

Expand Down
53 changes: 0 additions & 53 deletions environment.yml

This file was deleted.

44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]

[tool.setuptools_scm]
version_file = "src/_pytask/_version.py"

[project]
name = "pytask"
description = "In its highest aspirations, pytask tries to be pytest as a build system."
Expand Down Expand Up @@ -90,18 +83,30 @@ Tracker = "https://github.com/pytask-dev/pytask/issues"
[project.scripts]
pytask = "pytask:cli"

[tool.setuptools]
include-package-data = true
zip-safe = false
platforms = ["unix", "linux", "osx", "win32"]
license-files = ["LICENSE"]
[build-system]
requires = ["hatchling", "hatch_vcs"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.build.hooks.vcs]
version-file = "src/_pytask/_version.py"

[tool.setuptools.package-dir]
"" = "src"
[tool.hatch.build.targets.sdist]
exclude = ["tests"]
only-packages = true

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]

[tool.hatch.version]
source = "vcs"

[tool.hatch.metadata]
allow-direct-references = true

[tool.ruff]
target-version = "py38"
Expand All @@ -125,7 +130,6 @@ ignore = [
"SLF001", # access private members.
]


[tool.ruff.lint.per-file-ignores]
"src/_pytask/_hashlib.py" = ["ALL"]
"src/_pytask/capture.py" = ["PGH003"]
Expand Down Expand Up @@ -173,7 +177,6 @@ no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true


[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
Expand All @@ -193,9 +196,6 @@ skip = "*.js,*/termynal.css"
[tool.refurb]
python_version = "3.8"

[tool.check-manifest]
ignore = ["src/_pytask/_version.py"]

[tool.coverage.report]
exclude_also = [
"pragma: no cover",
Expand Down
Loading