mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -04:00
- 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)
37 lines
970 B
Python
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:
|