Skip to content

Commit

Permalink
py-pytest: update to 3.6.3 for py37 compatibility and add py37 subport
Browse files Browse the repository at this point in the history
Ref: pytest-dev/pytest#3497

py37-pytest passed `py.test-3.7 -k 'not test_entry_points'`.
test_entry_points fails as the pytest entry point is patched away
  • Loading branch information
Chih-Hsuan Yen authored and Chih-Hsuan Yen committed Jul 9, 2018
1 parent 6bd11f9 commit 8b7abb5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
13 changes: 7 additions & 6 deletions python/py-pytest/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ PortSystem 1.0
PortGroup python 1.0

name py-pytest
version 3.5.1
version 3.6.3
revision 0
categories-append devel
platforms darwin
license MIT
supported_archs noarch

python.versions 27 34 35 36
python.versions 27 34 35 36 37

maintainers {stromnov @stromnov} openmaintainer

Expand All @@ -25,9 +25,9 @@ master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}

distname ${python.rootname}-${version}

checksums rmd160 8a41afd4c1c05838829d8d80728fd4c7d68a99b1 \
sha256 54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8 \
size 830571
checksums rmd160 28cdd377a030f53f07a9ead251d18608ca91ffdd \
sha256 0453c8676c2bee6feb0434748b068d5510273a916295fd61d306c4f22fbfd752 \
size 830949

if {${name} ne ${subport}} {
depends_build-append \
Expand All @@ -38,7 +38,8 @@ if {${name} ne ${subport}} {
port:py${python.version}-six \
port:py${python.version}-attrs \
port:py${python.version}-more-itertools \
port:py${python.version}-pluggy
port:py${python.version}-pluggy \
port:py${python.version}-atomicwrites

if {${python.version} < 30} {
depends_lib-append port:py${python.version}-funcsigs
Expand Down
18 changes: 9 additions & 9 deletions python/py-pytest/files/patch-setup.py.diff
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- setup.py.orig 2017-12-05 23:41:58.000000000 +0300
+++ setup.py 2017-12-24 16:31:49.000000000 +0300
@@ -77,7 +77,7 @@
'Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, '
'Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others'),
entry_points={'console_scripts': [
- 'pytest=pytest:main', 'py.test=pytest:main']},
+ 'py.test=pytest:main']},
--- setup.py.orig 2018-07-06 23:28:02.000000000 +0800
+++ setup.py 2018-07-06 23:28:21.000000000 +0800
@@ -99,7 +99,7 @@
"Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, "
"Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others"
),
- entry_points={"console_scripts": ["pytest=pytest:main", "py.test=pytest:main"]},
+ entry_points={"console_scripts": ["py.test=pytest:main"]},
classifiers=classifiers,
keywords="test unittest",
cmdclass={'test': PyTest},
# the following should be enabled for release

0 comments on commit 8b7abb5

Please sign in to comment.