This commit is contained in:
ziggi
2020-05-22 06:01:24 +00:00
parent 2327488661
commit a8a418c011
37 changed files with 364 additions and 38 deletions

View File

@@ -0,0 +1,19 @@
# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
# $FreeBSD: head/devel/py-simplejson/Makefile 522961 2020-01-13 17:49:17Z sunpoet $
PORTNAME= simplejson
PORTVERSION= 3.17.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Simple, fast, extensible JSON encoder/decoder
USES= python
USE_PYTHON= autoplist concurrent distutils
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/simplejson/_speedups.so
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1578923324
SHA256 (simplejson-3.17.0.tar.gz) = 2b4b2b738b3b99819a17feaf118265d0753d5536049ea570b3c43b51c4701e81
SIZE (simplejson-3.17.0.tar.gz) = 83119

View File

@@ -0,0 +1,37 @@
--- 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:

View File

@@ -0,0 +1,15 @@
simplejson is a simple, fast, extensible JSON encoder/decoder for Python
simplejson is compatible with Python 2.4 and later with no external
dependencies. It covers the full JSON specification for both encoding and
decoding, with unicode support. By default, encoding is done in an encoding
neutral fashion (plain ASCII with \uXXXX escapes for unicode characters).
The encoder may be subclassed to provide serialization in any kind of situation,
without any special support by the objects to be serialized (somewhat like
pickle).
The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by
default).
WWW: https://pypi.org/project/simplejson/