forked from enarjord/passivbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
22 lines (18 loc) · 663 Bytes
/
setup.py
File metadata and controls
22 lines (18 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from setuptools import setup, find_packages
from setuptools_rust import RustExtension
def parse_requirements(filename):
with open(filename, "r") as file:
return [line.strip() for line in file if line.strip() and not line.startswith("#")]
setup(
name="passivbot",
version="0.1.0",
packages=find_packages(where="src"),
package_dir={"": "src"},
rust_extensions=[
RustExtension("passivbot_rust", path="passivbot-rust/Cargo.toml", binding="pyo3")
],
install_requires=parse_requirements("requirements.txt"),
setup_requires=["setuptools-rust>=1.9.0", "wheel"],
include_package_data=True,
zip_safe=False,
)