1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-05-06 12:56:15 +02:00
Commit Graph

43 Commits

Author SHA1 Message Date
Ben Beasley fbae6a31ce
Support dynamically linking against system double-conversion library (#508)
Add env vars to build with system double-conversion. Fixes #376 and is useful to Linux distribution packagers.

New environment variables UJSON_BUILD_DC_INCLUDES and UJSON_BUILD_DC_LIBS allow overriding the include path for double-conversion and adding linker flags for an external double-conversion library. They should generally be used together.
2022-02-17 19:38:09 +00:00
Ben Beasley 097284e77f
Add env var to control stripping debug info (#507)
Before this commit, debug info is stripped unconditionally on Linux.

This commit adds an environment variable `UJSON_BUILD_NO_STRIP` that disables this behavior. This is helpful for distribution packagers who would otherwise have to patch `setup.py` to prevent stripping.
2022-02-15 19:45:10 +00:00
pre-commit-ci[bot] c1d5b6dcd6 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-12-16 22:51:05 +00:00
bwoodsend b9275f7b00
Strip debugging symbols from Linux binaries.
Doing so reduces the size of the package at the expense of being less friendly
to debug using gdb (GNU's debugger).
2021-12-16 22:50:23 +00:00
Hugo van Kemenade 7f67319525 Use declarative metadata 2021-09-20 12:18:17 +03:00
Hugo van Kemenade 5212f6e6a3 Add support for Python 3.10 2021-09-05 20:57:00 +03:00
Hugo van Kemenade d6af5dd65f Fix UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2116: ordinal not in range(128) 2020-10-09 19:43:28 +03:00
Hugo van Kemenade cedc5b7601 Add support for Python 3.9 2020-10-06 19:48:59 +03:00
Hugo van Kemenade 3971a1f9b5 Use context manager for file opening 2020-09-08 21:36:51 +03:00
Hugo van Kemenade bcde89c882 Drop support for EOL Python 3.5 2020-09-08 21:00:20 +03:00
Hugo ff8e64caa1 Drop support for EOL Python 2 2020-04-20 20:09:12 +03:00
Hugo 9632bb6c33 Drop legacy distutils in setup.py 2020-03-24 09:59:47 +02:00
Harry Lee 40e718b301
fixup dconv_wrapper linkage (#312)
- remove lib double-conversion building, no need to build it separately.
otherwise, when there's a system-wide double-conversion lib, it's hard
to specific this bundled/wrapped double-conversion lib.
- some format fixup

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-02-29 12:26:52 +02:00
Hugo c7a8b14049 Use setuptools_scm to simplify versioning during release 2020-02-26 18:37:41 +02:00
Hugo 812f45f3b9 Remove old email 2020-02-25 21:36:37 +02:00
Hugo 91776a06e7 Update links to ultrajson/ultrajson 2020-02-25 21:19:36 +02:00
Hugo 95e7768b6b Lint with pre-commit: Black, isort, Flake8 2020-02-24 00:31:22 +02:00
Hugo van Kemenade 299495b293
Merge branch 'master' into rm-eol 2020-02-23 21:02:22 +02:00
Hugo van Kemenade 7486a35b6d
Merge pull request #351 from hugovk/rm-classifiers-warning
Fix Warning: 'classifiers' should be a list, got type 'filter'
2020-02-23 20:51:59 +02:00
Hugo van Kemenade 1a2409dafd
Merge branch 'master' into rm-eol 2020-02-23 20:48:48 +02:00
Hugo 3e78969d2c Fix Warning: 'classifiers' should be a list, got type 'filter' 2020-02-21 11:59:32 +02:00
Hugo van Kemenade 4872eb6c5b
Merge branch 'master' into rm-eol 2020-02-18 22:05:46 +02:00
Hugo d53480c332 http -> https 2020-02-18 21:57:13 +02:00
Drew H 2914376bc5 Remove redundant license parameter 2020-02-18 19:57:36 +01:00
Hugo 450b86d8c3 Add support for Python 3.7 and 3.8 2020-02-14 21:00:55 +02:00
Hugo 86879e0c2b Drop support for EOL Python 3.4 2020-02-14 20:59:47 +02:00
Hugo 054c0b7a34 Drop EOL Python 2.5, 2.6, 3.2 and 3.3 2017-12-26 13:46:44 +02:00
Hugo 9faac616a5 Add Python 3.6 2017-12-26 00:48:27 +02:00
Joakim Hamren eb7d894f22 Integrated google's double-conversion lib
To fix issues with floating-point precision we've made use of Google's
double-conversion lib to handle conversions of doubles to and from strings.

In addition to fixing our precision problems this will improve double
encoding by 4-5x. Decoding is however slightly slower according to the
benchmarks - but accurate at least.

This change removes the double_precision encoding option and the
precise_float decoding option.
2017-02-14 12:20:04 +01:00
anthraxx 3943517711 do not forcefully remove the build directory manually
this fixes issue #179.
setuptools should itself know when to use cache or create a
new build... however if someone wants to override that, it's
still possible but forcefully doing that on whatever
setuptools target will (and does) introduce problems.

Build directory should be cleaned up via the clean sub-command.
examples:
- clean up temp:
  python setup.py clean
- clean up whole build dir
  python setup.py clean -a

Or if somebody wants to, the build dir could be removed on the
shell.
2016-01-26 14:34:08 +01:00
Joakim Hamren 3723f573d3 Reverting usage of python setup.py test 2016-01-20 09:10:48 +01:00
Joakim Hamren e3ca6c5f43 Fixed assertRegex error on python 2 and checking if nose2.collector works with python 2.6 2016-01-18 07:44:55 +01:00
Joakim Hamren 7079f3c709 Added unittest2 to setup.py tests_require 2016-01-18 06:51:46 +01:00
Joakim Hamren 23f092438e Added test package requirements to setup.py 2016-01-18 06:45:34 +01:00
Tim Dawborn 04428508d6 * Refactored the unit testing and benchmarking code to work natively under
both Python 2 and Python 3, removing the need for 2to3 to be run. This
  indirectly fixes #177.
* Corrected a duplicate-named method in the unit testing code. Corrected the
  now-exposed broken logic that wasn't being tested. This was
  highlighted in #186 but the author did not appear to realise that the
  method name was being masked in the unit test class.
* Corrected the test case skipping logic to use unittest.skipIf instead
  of just returning from the method upon an ImportError so that the skip
  can actually be registered as a skipped test instead of a passed test.
* Updated the tests to additionally run on Python 3.5 on Travis. This
  covers #195.
* Merged the two benchmarking files into one, and modularised the code.
  Also added native RST output so the benchmarking results can be placed
  directly into the README file.
2015-12-29 14:23:23 +11:00
Guy Rozendorn 1910b1d63b Try to use setuptools, for building eggs 2013-05-23 17:27:23 +03:00
unknown dd4aacd70f Fixed type-o in pull request. Bumped version 2012-12-17 15:32:44 +01:00
Kevin Stanton dc798430d5 added compile arg to support compilation on CentOS 5.8 x86_64 2012-11-15 17:53:58 -06:00
Jonas Tarnstrom a083f2f2a4 Documentation improvementes 2012-10-01 10:36:38 +02:00
Jonas Tarnstrom a16f229e7c Added Python 3 as supported version in distutils 2012-06-26 14:08:43 +02:00
Kieran O'Mahony 06992a2072 Python 3 support 2012-06-12 12:04:59 +01:00
Kieran O'Mahony d041aba16a tabs -> spaces, convert newlines 2012-06-12 12:04:59 +01:00
unknown 83f1ee99f7 Restructured code for better pypi packaging 2012-02-07 17:11:29 +01:00