Skip to content

Commit

Permalink
python: rename native module _jail to jail
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Jan 2, 2019
1 parent 0d90087 commit f674ae4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions bindings/python/jail/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import

from ._jail import RunningJail, StoppedJail, Jls
from .jail import RunningJail, StoppedJail, Jls

__all__ = ['RunningJail', 'StoppedJail', 'Jls']
2 changes: 1 addition & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run(self):
'Operating System :: POSIX :: BSD :: FreeBSD',
],
packages=['jail'],
rust_extensions=[RustExtension('jail._jail', 'Cargo.toml')],
rust_extensions=[RustExtension('jail.jail', 'Cargo.toml')],
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
Expand Down
6 changes: 3 additions & 3 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ use pyo3::prelude::*;
use jail as native;
mod child;
mod error;
mod jls;
mod param;
mod running;
mod stopped;
mod jls;

use child::Child;
use jls::Jls;
use running::RunningJail;
use stopped::StoppedJail;
use jls::Jls;

#[pyclass]
struct JailError {
Expand All @@ -31,7 +31,7 @@ impl JailError {
}
}

#[pymodinit(_jail)]
#[pymodinit(jail)]
fn jail_modinit(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_class::<RunningJail>()?;
m.add_class::<StoppedJail>()?;
Expand Down

0 comments on commit f674ae4

Please sign in to comment.