ports/devel/py-simplejson/files/patch-setup.py
Kubilay Kocak 18e31e4fdc devel/py-simplejson: Update to 3.9.0
- Update PORTVERSION and distinfo checksum (3.9.0)
- Add USES=python comment about specific versions supported
- Add LICENSE_FILE
- Patch setup.py to run tests properly using test_suite
- Update test target to use PYDISTUTILS_SETUP (not PYSETUP)


  https://github.com/simplejson/simplejson/blob/v3.9.0/CHANGES.txt

Reported by:	portscout
Approved by:    python (maintainer, with hat)
2016-10-22 10:55:53 +00:00

37 lines
970 B
Python

--- setup.py.orig 2016-10-21 07:55:07 UTC
+++ setup.py
@@ -64,25 +64,8 @@ class ve_build_ext(build_ext):
raise BuildFailed()
-class TestCommand(Command):
- user_options = []
-
- def initialize_options(self):
- pass
-
- def finalize_options(self):
- pass
-
- def run(self):
- import sys, subprocess
- raise SystemExit(
- subprocess.call([sys.executable,
- # Turn on deprecation warnings
- '-Wd',
- 'simplejson/tests/__init__.py']))
-
def run_setup(with_binary):
- cmdclass = dict(test=TestCommand)
+ cmdclass = dict()
if with_binary:
kw = dict(
ext_modules = [
@@ -105,6 +88,7 @@ def run_setup(with_binary):
license="MIT License",
packages=['simplejson', 'simplejson.tests'],
platforms=['any'],
+ test_suite='simplejson.tests',
**kw)
try: