diff --git a/.gitignore b/.gitignore index 0a76ed3e10b84edc75db7c0082eb60c578b96704..239222d3f652f22cb3d975a9a4da59d31e0c2ea4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ lib/ lib64/ parts/ sdist/ +wheelhouse/ var/ wheels/ pip-wheel-metadata/ diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000000000000000000000000000000000000..30e951d21db3d13a4d8050cf0f2da78798f7f4db --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,11 @@ +version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.9" + jobs: + pre_create_environment: + - pip install psutil Cython Sphinx +sphinx: + builder: html + configuration: docs/conf.py diff --git a/setup.cfg b/setup.cfg index 51a12f027fdbfdc14ec8f729657f6cedf814d2bf..273ff87e4546f84ea6691b68505527d28098d1a4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ # coding: utf-8 [metadata] -version = 2.12a1 +version = 2.12 name = minijson long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8 diff --git a/setup.py b/setup.py index 87374018b0653336ff26211c8da4227d73ab2ab4..d1ce8c0830a8ac3fdaf2f5c375600a3a7824e3c0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ import os -from Cython.Build import cythonize -from Cython.Compiler.Options import get_directive_defaults +try: + from Cython.Build import cythonize + from Cython.Compiler.Options import get_directive_defaults +except ImportError: + print('Install Cython in order to build from source') from setuptools import setup, Extension directive_defaults = get_directive_defaults() @@ -14,5 +17,5 @@ if 'DEBUG' in os.environ: directive_defaults['binding'] = True macros = [('CYTHON_TRACE', '1')] -setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], - define_macros=macros)])) + +setup(ext_modules=cythonize([Extension("minijson", ["minijson.pyx"], define_macros=macros)]))