Skip to content

Commit 9f93047

Browse files
committed
Reenable hg_startup
mercurial 5.2 is now officially compatible with Python 3.
1 parent bf21130 commit 9f93047

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

doc/changelog.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ Changelog
44
Version 1.0.1
55
-------------
66

7+
* Reenable hg_startup benchmark: mercurial 5.2 is now officially compatible
8+
with Python 3.
79
* Update dependencies:
810

911
* Django: 3.0 => 3.0.2
10-
* dulwich: 0.19.14 => 0.19.15
1112
* Mako: 1.1.0 = > 1.1.1
12-
* six : 1.13.0 => 1.14.0
1313
* SQLAlchemy: 1.3.12 => 1.3.13
14+
* dulwich: 0.19.14 => 0.19.15
15+
* mercurial: 5.1.1 => 5.2.2
16+
* six : 1.13.0 => 1.14.0
1417
* sympy: 1.5 => 1.5.1
1518

1619
Version 1.0.0 (2019-12-17)

doc/usage.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ If needed, ``pyperf`` and ``six`` dependencies are installed automatically.
1616
pyperformance works on Python 3.6 and newer, but it may work on Python 3.4 and
1717
3.5.
1818

19+
Mercurial might need Python developement headers to build its C extensions. For
20+
example, on Fedora, use::
21+
22+
sudo dnf install pypy3-devel
23+
1924
At runtime, Python development files (header files) may be needed to install
2025
some dependencies like ``dulwich_log`` or ``psutil``, to build their C
2126
extension. Commands on Fedora to install dependencies:

pyperformance/benchmarks/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,10 @@
8080
}
8181

8282

83-
def python2_only(func):
84-
func._python2_only = True
85-
return func
86-
87-
8883
def BM_2to3(python, options):
8984
return run_perf_script(python, options, "2to3")
9085

9186

92-
@python2_only
9387
def BM_hg_startup(python, options):
9488
return run_perf_script(python, options, "hg_startup")
9589

pyperformance/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Genshi==0.7.3 # bm_genshi
5454
Mako==1.1.1 # bm_mako
5555
SQLAlchemy==1.3.13 # bm_sqlalchemy_declarative
5656
dulwich==0.19.15 # dulwich_log
57-
mercurial==5.1.1; python_version < '3.0' # bm_hg_startup
57+
mercurial==5.2.2 # bm_hg_startup
5858
html5lib==1.0.1 # bm_html5lib
5959
pyaes==1.6.1 # bm_crypto_pyaes
6060
sympy==1.5.1 # bm_sympy

0 commit comments

Comments
 (0)