-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
73 lines (65 loc) · 2.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from setuptools import setup
from setuptools.command.install import install
from pathlib import Path
# Read version from version.py
version = {}
with open("version.py") as fp:
exec(fp.read(), version)
this_directory = Path(__file__).parent
long_description = (this_directory / "package.md").read_text()
class PostInstallCommand(install):
"""Custom post-installation for installation mode."""
def run(self):
install.run(self)
# Read the requirements from the requirements.txt file
with open("tools/make/requirements.txt") as requirements_file:
requirements = requirements_file.read().splitlines()
setup(
name="hdp-cairo-dev",
long_description=long_description,
long_description_content_type="text/markdown",
version=version["__version__"],
packages=[
"tools.py",
"tools.py.providers",
"tools.py.types",
"tools.py.types.evm",
"tools.py.types.starknet",
"tools.py.providers.evm",
"tools.py.providers.starknet",
"contract_bootloader",
"contract_bootloader.contract_class",
"contract_bootloader.dryrun_syscall_memorizer_handler",
"contract_bootloader.dryrun_syscall_memorizer_handler.evm",
"contract_bootloader.dryrun_syscall_memorizer_handler.starknet",
"contract_bootloader.memorizer",
"contract_bootloader.memorizer.evm",
"contract_bootloader.memorizer.starknet",
"contract_bootloader.syscall_memorizer_handler",
"contract_bootloader.syscall_memorizer_handler.evm",
"contract_bootloader.syscall_memorizer_handler.starknet",
],
install_requires=requirements,
package_dir={
"tools.py": "tools/py",
"contract_bootloader": "src/contract_bootloader",
},
zip_safe=False,
package_data={
"tools.py": ["**/*.py"],
"contract_bootloader": [
"*.cairo",
"*/*.cairo",
"*/*.py",
"**/*.py",
"**/*.cairo",
],
},
cmdclass={"install": PostInstallCommand},
develop=True,
options={
"develop": {
"build_dir": "build",
}
},
)