Skip to content

Commit

Permalink
Remove setup.py (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jul 22, 2024
1 parent 11961af commit dd72470
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 107 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ jobs:
- {VERSION: "pypy-3.10", TOXENV: "pypy3"}

# MSRV
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "1.63.0"}
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "1.64.0"}
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "beta"}
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "nightly"}
Expand Down Expand Up @@ -130,8 +129,6 @@ jobs:
toolchain: ${{ matrix.PYTHON.RUST_VERSION || 'stable' }}

- run: pip install tox
- if: matrix.PYTHON.RUST_VERSION == '1.63.0'
run: echo 'BCRYPT_ALLOW_RUST_163=1' >> $GITHUB_ENV
- run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[build-system]
# Must be kept in sync with `setup_requirements` in `setup.py`
requires = [
"setuptools>=42.0.0",
"wheel",
"setuptools-rust",
"setuptools-rust>=1.7.0",
]
# Point to the setuptools' PEP517 build backend explicitly to
# disable Pip's fallback guessing
Expand Down Expand Up @@ -50,6 +49,11 @@ readme = {file = "README.rst", content-type = "text/x-rst"}
tests = ["pytest>=3.2.1,!=3.3.0"]
typecheck = ["mypy"]

[[tool.setuptools-rust.ext-modules]]
target = "bcrypt._bcrypt"
path = "src/_bcrypt/Cargo.toml"
py-limited-api = "auto"
rust-version = ">=1.64.0"

[tool.ruff]
line-length = 79
Expand Down
101 changes: 0 additions & 101 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ deps =
readme_renderer
commands =
check-manifest
python setup.py check --metadata --restructuredtext --strict
python3 -m readme_renderer README.rst -o /dev/null


[check-manifest]
Expand Down

0 comments on commit dd72470

Please sign in to comment.