Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove setup.py #842

Merged
merged 1 commit into from
Jul 22, 2024
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
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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 @@ -129,8 +128,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