Skip to content

Commit

Permalink
Extract common Python
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Oct 20, 2024
1 parent 0f7af98 commit 971de7c
Show file tree
Hide file tree
Showing 17 changed files with 174 additions and 802 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/common/target
/target
/pyproject-fmt/.tox
/pyproject-fmt/dist
/dist
.tox
target
dist
__pycache__
_lib.abi3.*
4 changes: 2 additions & 2 deletions common/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# toml-fmt common
# toml-fmt-common

Contains code common to all formatters.
Contains Rust code common to all formatters under the `toml-fmt` umbrella.

[![Test common](https://github.com/tox-dev/toml-fmt/actions/workflows/common.yaml/badge.svg)](https://github.com/tox-dev/toml-fmt/actions/workflows/common.yaml)
1 change: 0 additions & 1 deletion pyproject-fmt/.github/FUNDING.yml

This file was deleted.

13 changes: 0 additions & 13 deletions pyproject-fmt/.github/SECURITY.md

This file was deleted.

6 changes: 0 additions & 6 deletions pyproject-fmt/.github/dependabot.yml

This file was deleted.

5 changes: 0 additions & 5 deletions pyproject-fmt/.github/release.yml

This file was deleted.

93 changes: 0 additions & 93 deletions pyproject-fmt/.github/workflows/check.yaml

This file was deleted.

135 changes: 0 additions & 135 deletions pyproject-fmt/.github/workflows/release.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions pyproject-fmt/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion pyproject-fmt/.rustfmt.toml

This file was deleted.

5 changes: 3 additions & 2 deletions pyproject-fmt/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ dynamic = [
"version",
]
dependencies = [
"tomli>=2.0.2; python_version<'3.11'",
"toml-fmt-common>=1",
]
urls."Bug Tracker" = "https://github.com/tox-dev/toml-fmt/issues"
urls."Changelog" = "https://github.com/tox-dev/toml-fmt/blob/main/pyproject-fmt/CHANGELOG.md"
urls.Documentation = "https://github.com/tox-dev/toml-fmt/"
urls."Source Code" = "https://github.com/tox-dev/toml-fmt"
scripts.pyproject-fmt = "pyproject_fmt.__main__:run"
scripts.pyproject-fmt = "pyproject_fmt.__main__:runner"

[tool.maturin]
bindings = "pyo3"
manifest-path = "Cargo.toml"
module-name = "pyproject_fmt._lib"
python-source = "src"
python-packages = [ "pyproject_fmt/toml_fmt_common" ]
strip = true
include = [
"rust-toolchain.toml",
Expand Down
Loading

0 comments on commit 971de7c

Please sign in to comment.