Skip to content

Commit 87a1389

Browse files
committed
move python source in examples under python/ subdir
1 parent b67f6ea commit 87a1389

File tree

15 files changed

+19
-7
lines changed

15 files changed

+19
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include Cargo.toml
22
recursive-include src *
3+
recursive-include python *

examples/hello-world-script/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from setuptools import setup
1+
from setuptools import find_packages, setup
22

33
from setuptools_rust import RustExtension, Binding
44

55
setup(
66
name="hello-world-script",
77
version="1.0",
8+
packages=find_packages(where="python"),
9+
package_dir={"": "python"},
810
rust_extensions=[
911
RustExtension(
1012
{"hello-world-script": "hello_world.hello-world-script"},

examples/hello-world/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include Cargo.toml
22
recursive-include src *
3+
recursive-include python *

examples/hello-world/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from setuptools import setup
1+
from setuptools import find_packages, setup
22

33
from setuptools_rust import RustBin
44

55
setup(
66
name="hello-world",
77
version="1.0",
8+
packages=find_packages(where="python"),
9+
package_dir={"": "python"},
810
rust_extensions=[
911
RustBin(
1012
"hello-world",

examples/html-py-ever/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include Cargo.toml
22
recursive-include src *
3+
recursive-include python *

examples/html-py-ever/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/env python
2-
import sys
32

4-
from setuptools import setup
3+
from setuptools import find_packages, setup
54

65
from setuptools_rust import RustExtension
76

87
setup(
8+
packages=find_packages(where="python"),
9+
package_dir={"": "python"},
910
rust_extensions=[RustExtension("html_py_ever.html_py_ever")],
1011
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include Cargo.toml
22
recursive-include src *
3+
recursive-include python *

0 commit comments

Comments
 (0)