forked from ApeWorX/ape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
140 lines (133 loc) · 5 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/usr/bin/env python
from pathlib import Path
from typing import Dict
from setuptools import find_packages, setup # type: ignore
here = Path(__file__).parent.absolute()
packages_data: Dict = {}
with open(here / "src" / "ape" / "__modules__.py", encoding="utf8") as modules_file:
exec(modules_file.read(), packages_data)
extras_require = {
"test": [ # `test` GitHub Action jobs uses this
"pytest-xdist", # multi-process runner
"pytest-cov", # Coverage analyzer plugin
"pytest-mock", # For creating mocks
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
"hypothesis-jsonschema==0.19.0", # JSON Schema fuzzer extension
],
"lint": [
"black>=21.10b0,<22.0", # auto-formatter and linter
"mypy>=0.910,<1.0", # Static type analyzer
"types-PyYAML", # NOTE: Needed due to mypy typeshed
"types-requests", # NOTE: Needed due to mypy typeshed
"flake8>=3.9.2,<4.0", # Style linter
"flake8-breakpoint>=1.1.0,<2.0.0", # detect breakpoints left in code
"flake8-print>=4.0.0,<5.0.0", # detect print statements left in code
"isort>=5.9.3,<6.0", # Import sorting linter
"pandas-stubs>=1.2.0,<2.0", # NOTE: Needed due to mypy types
],
"doc": [
"myst-parser==0.16.0", # Tools for parsing markdown files in the docs
"sphinx-click>=3.0.0,<4.0", # For documenting CLI
"Sphinx>=3.4.3,<4", # Documentation generator
"sphinx-click>=3.0.0", # Allows autodoc to work for click CLI commands
"sphinx_rtd_theme>=0.1.9,<1", # Readthedocs.org theme
"sphinxcontrib-napoleon>=0.7", # Allow Google-style documentation
],
"release": [ # `release` GitHub Action job uses this
"setuptools", # Installation tool
"wheel", # Packaging tool
"twine", # Package upload tool
],
"dev": [
"commitizen>=2.19,<2.20", # Manage commits and publishing releases
"pre-commit", # Ensure that linters are run prior to committing
"pytest-watch", # `ptw` test watcher/runner
"ipdb", # Debugger (Must use `export PYTHONBREAKPOINT=ipdb.set_trace`)
],
}
# NOTE: `pip install -e .[dev]` to install package
extras_require["dev"] = (
extras_require["test"]
+ extras_require["lint"]
+ extras_require["doc"]
+ extras_require["release"]
+ extras_require["dev"]
)
with open("./README.md") as readme:
long_description = readme.read()
setup(
name="eth-ape",
use_scm_version=True,
setup_requires=["setuptools_scm"],
description="Ape Ethereum Framework",
long_description=long_description,
long_description_content_type="text/markdown",
author="ApeWorX Ltd.",
author_email="[email protected]",
url="https://github.com/ApeWorX/ape",
include_package_data=True,
install_requires=[
"backports.cached_property ; python_version<'3.8'",
"click>=8.0.0",
"eth-account==0.5.7",
"ethpm-types>=0.1.0b7",
"hexbytes>=0.2.2,<1.0.0",
"packaging>=20.9,<21.0",
"pandas>=1.3.0,<2.0",
"pluggy>=0.13.1,<1.0",
"pydantic>=1.9.0,<2.0",
"PyGithub>=1.54,<2.0",
"pygit2>=1.7.2,<2.0",
"pyyaml>=0.2.5",
"py-geth>=3.6.0",
"requests>=2.25.1,<3.0",
"importlib-metadata",
"singledispatchmethod ; python_version<'3.8'",
"IPython>=7.31.1",
"pytest>=6.0,<7.0",
"rich>=10.14,<11",
"tqdm>=4.62.3,<5.0",
"typing-extensions ; python_version<'3.8'",
"web3[tester]>=5.28.0,<6.0",
"eth_abi==2.1.1",
"eth-utils==1.10.0",
"eth-rlp==0.2.1",
"python-dateutil>=2.8.2,<3.0",
],
entry_points={
"console_scripts": ["ape=ape._cli:cli"],
"pytest11": ["ape_test=ape.pytest.plugin"],
"ape_cli_subcommands": [
"ape_accounts=ape_accounts._cli:cli",
"ape_compile=ape_compile._cli:cli",
"ape_console=ape_console._cli:cli",
"ape_plugins=ape_plugins._cli:cli",
"ape_run=ape_run._cli:cli",
"ape_networks=ape_networks._cli:cli",
"ape_test=ape_test._cli:cli",
"ape_init=ape_init._cli:cli",
],
},
python_requires=">=3.7.2,<3.11",
extras_require=extras_require,
py_modules=packages_data["__modules__"],
license="Apache-2.0",
zip_safe=False,
keywords="ethereum",
packages=find_packages("src"),
package_dir={"": "src"},
package_data={p: ["py.typed"] for p in packages_data["__modules__"]},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)