Skip to content

Commit 351078d

Browse files
committed
Lint setup.py, update .bumpversion.cfg so it can find the version
1 parent c98c6c0 commit 351078d

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

.bumpversion.cfg

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ current_version = 0.6.0-beta.6
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
6-
serialize =
6+
serialize =
77
{major}.{minor}.{patch}-{stage}.{devnum}
88
{major}.{minor}.{patch}
99

1010
[bumpversion:part:stage]
1111
optional_value = stable
1212
first_value = stable
13-
values =
13+
values =
1414
alpha
1515
beta
1616
stable
1717

1818
[bumpversion:part:devnum]
1919

2020
[bumpversion:file:setup.py]
21-
search = version='{current_version}',
22-
replace = version='{new_version}',
21+
search = version="{current_version}",
22+
replace = version="{new_version}",

setup.py

+41-41
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,55 @@
77

88

99
extras_require = {
10-
'lint': [
11-
'black>=22,<23',
12-
'flake8>=3.5.0,<4.0.0',
10+
"lint": [
11+
"black>=22,<23",
12+
"flake8>=3.5.0,<4.0.0",
1313
],
14-
'test': [
15-
'pytest>=6.2.5,<7',
16-
'pytest-xdist>=2.0.0,<3',
17-
'eth-hash[pycryptodome]>=0.1.4,<1.0.0',
14+
"test": [
15+
"pytest>=6.2.5,<7",
16+
"pytest-xdist>=2.0.0,<3",
17+
"eth-hash[pycryptodome]>=0.1.4,<1.0.0",
1818
],
19-
'dev': [
20-
'bumpversion>=0.5.3,<1.0.0',
21-
'tox>=2.9.1,<3.0.0',
22-
'wheel>=0.30.0,<1.0.0',
19+
"dev": [
20+
"bumpversion>=0.5.3,<1.0.0",
21+
"tox>=2.9.1,<3.0.0",
22+
"wheel>=0.30.0,<1.0.0",
2323
],
24-
'py-evm': [
24+
"py-evm": [
2525
# Pin py-evm to exact version, until it leaves alpha.
2626
# EVM is very high velocity and might change API at each alpha.
2727
"py-evm==0.5.0a3",
2828
"eth-hash[pysha3]>=0.1.4,<1.0.0;implementation_name=='cpython'",
2929
"eth-hash[pycryptodome]>=0.1.4,<1.0.0;implementation_name=='pypy'",
3030
],
31-
'docs': [
32-
'towncrier==18.5.0',
33-
]
31+
"docs": [
32+
"towncrier==18.5.0",
33+
],
3434
}
3535

36-
extras_require['dev'] = (
37-
extras_require['dev'] +
38-
extras_require['test'] +
39-
extras_require['py-evm'] +
40-
extras_require['lint'] +
41-
extras_require['docs']
36+
extras_require["dev"] = (
37+
extras_require["dev"]
38+
+ extras_require["test"]
39+
+ extras_require["py-evm"]
40+
+ extras_require["lint"]
41+
+ extras_require["docs"]
4242
)
4343
# convenience in case someone leaves out the `-`
44-
extras_require['pyevm'] = extras_require['py-evm']
44+
extras_require["pyevm"] = extras_require["py-evm"]
4545

46-
with open('./README.md') as readme:
46+
with open("./README.md") as readme:
4747
long_description = readme.read()
4848

4949
setup(
50-
name='eth-tester',
50+
name="eth-tester",
5151
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
52-
version='0.6.0-beta.6',
52+
version="0.6.0-beta.6",
5353
description="""Tools for testing Ethereum applications.""",
5454
long_description=long_description,
55-
long_description_content_type='text/markdown',
56-
author='Piper Merriam',
57-
author_email='[email protected]',
58-
url='https://github.com/ethereum/eth-tester',
55+
long_description_content_type="text/markdown",
56+
author="Piper Merriam",
57+
author_email="[email protected]",
58+
url="https://github.com/ethereum/eth-tester",
5959
include_package_data=True,
6060
install_requires=[
6161
"eth-abi>=2.0.0b4,<3.0.0",
@@ -66,21 +66,21 @@
6666
"semantic_version>=2.6.0,<3.0.0",
6767
],
6868
extras_require=extras_require,
69-
python_requires='>=3.6.8,<4',
70-
py_modules=['eth_tester'],
69+
python_requires=">=3.6.8,<4",
70+
py_modules=["eth_tester"],
7171
license="MIT",
7272
zip_safe=False,
73-
keywords='ethereum',
73+
keywords="ethereum",
7474
packages=find_packages(exclude=["tests", "tests.*"]),
7575
classifiers=[
76-
'Development Status :: 2 - Pre-Alpha',
77-
'Intended Audience :: Developers',
78-
'License :: OSI Approved :: MIT License',
79-
'Natural Language :: English',
80-
'Programming Language :: Python :: 3',
81-
'Programming Language :: Python :: 3.7',
82-
'Programming Language :: Python :: 3.8',
83-
'Programming Language :: Python :: 3.9',
84-
'Programming Language :: Python :: 3.10',
76+
"Development Status :: 2 - Pre-Alpha",
77+
"Intended Audience :: Developers",
78+
"License :: OSI Approved :: MIT License",
79+
"Natural Language :: English",
80+
"Programming Language :: Python :: 3",
81+
"Programming Language :: Python :: 3.7",
82+
"Programming Language :: Python :: 3.8",
83+
"Programming Language :: Python :: 3.9",
84+
"Programming Language :: Python :: 3.10",
8585
],
8686
)

0 commit comments

Comments
 (0)