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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
### Removed
- Remove `test_rust` command. (`python setup.py test` is deprecated.) [#129](https://github.com/PyO3/setuptools-rust/pull/129)
- Remove `check_rust` command. [#130](https://github.com/PyO3/setuptools-rust/pull/130)

## 0.12.1 (2021-03-11)
### Fixed
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,11 @@ To build `universal2` wheels set the `ARCHFLAGS` environment variable to contain

## Commands

- build - Standard build command builds all rust extensions.
- build\_rust - Command builds all rust extensions.
- clean - Standard clean command executes cargo clean for all rust
- `build` - Standard build command will also build all rust extensions.
- `build_rust` - Command builds all rust extensions.
- `clean` - Standard clean command executes cargo clean for all rust
extensions.
- check - Standard check command executes cargo check for all rust
extensions.
- tomlgen\_rust - Automatically generate a Cargo.toml manifest based
- `tomlgen_rust` - Automatically generate a Cargo.toml manifest based
on Python package metadata. See the [example
project](https://github.com/PyO3/setuptools-rust/tree/main/examples/tomlgen)
on GitHub for more information about this command.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ python_requires = >=3.6

[options.entry_points]
distutils.commands =
check_rust=setuptools_rust.check:check_rust
clean_rust=setuptools_rust:clean_rust
build_rust=setuptools_rust:build_rust
tomlgen_rust=setuptools_rust:tomlgen_rust
Expand Down
2 changes: 0 additions & 2 deletions setuptools_rust/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .build import build_rust
from .check import check_rust
from .clean import clean_rust
from .extension import Binding, RustExtension, Strip
from .tomlgen import tomlgen_rust, find_rust_extensions
Expand All @@ -11,7 +10,6 @@
"RustExtension",
"Strip",
"build_rust",
"check_rust",
"clean_rust",
"find_rust_extensions",
"tomlgen_rust",
Expand Down
77 changes: 0 additions & 77 deletions setuptools_rust/check.py

This file was deleted.

9 changes: 0 additions & 9 deletions setuptools_rust/setuptools_ext.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
from distutils import log
from distutils.command.check import check
from distutils.command.clean import clean

from setuptools.command.build_ext import build_ext
Expand Down Expand Up @@ -114,14 +113,6 @@ def run(self):
self.run_command("clean_rust")
dist.cmdclass['clean'] = clean_rust_extension

check_base_class = dist.cmdclass.get('check', check)

class check_rust_extension(check_base_class):
def run(self):
check_base_class.run(self)
self.run_command("check_rust")
dist.cmdclass["check"] = check_rust_extension

install_base_class = dist.cmdclass.get('install', install)

# this is required because, install directly access distribution's
Expand Down