forked from ethereum/eth-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (86 loc) · 2.61 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import (
setup,
find_packages,
)
extras_require = {
"test": [
"hypothesis>=4.43.0",
"pytest>=7.0.0",
"pytest-xdist>=2.4.0",
"types-setuptools",
"mypy==0.971", # mypy does not follow semver, leave it pinned.
],
"lint": [
"flake8==3.8.3", # flake8 claims semver but adds new warnings at minor releases, leave it pinned.
"isort>=5.11.0",
"mypy==0.971", # mypy does not follow semver, leave it pinned.
"pydocstyle>=5.0.0",
"black>=23",
"types-setuptools",
],
"doc": [
"sphinx>=5.0.0",
"sphinx_rtd_theme>=1.0.0",
"towncrier>=21,<22",
],
"dev": [
"bumpversion>=0.5.3",
"pytest-watch>=4.1.0",
"tox>=4.0.0",
"build>=0.9.0",
"wheel",
"twine",
"ipython",
"eth-hash[pycryptodome]",
],
}
extras_require["dev"] = (
extras_require["dev"]
+ extras_require["test"]
+ extras_require["lint"]
+ extras_require["doc"]
)
with open("./README.md") as readme:
long_description = readme.read()
setup(
name="eth-utils",
# *IMPORTANT*: Don't manually change the version here. Use `make bump`, as described in readme
version="2.1.1",
description=(
"""eth-utils: Common utility functions for python code that interacts with Ethereum"""
),
long_description=long_description,
long_description_content_type="text/markdown",
author="The Ethereum Foundation",
author_email="[email protected]",
url="https://github.com/ethereum/eth-utils",
include_package_data=True,
install_requires=[
"cached-property>=1.5.2,<2;python_version<'3.8'",
"eth-hash>=0.3.1",
"eth-typing>=3.0.0",
"toolz>0.8.2;implementation_name=='pypy'",
"cytoolz>=0.10.1;implementation_name=='cpython'",
],
python_requires=">=3.7,<4",
extras_require=extras_require,
py_modules=["eth_utils"],
license="MIT",
zip_safe=False,
keywords="ethereum",
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={"eth_utils": ["py.typed"]},
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)