-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (38 loc) · 1.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- coding: utf-8 -*-
# Python bindings for jsonic library.
#
# https://github.com/rohanrhu/python-jsonic
# https://oguzhaneroglu.com/projects/python-jsonic/
#
# Licensed under MIT
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <rohanrhu2@gmail.com>
#
from setuptools import setup, Extension
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
jsonic = Extension(
"jsonic",
sources = [
"python-jsonic.c",
"lib/jsonic/jsonic.c"
]
)
setup(
name = "pyjsonic",
version = "1.10",
description = "Python bindings for Jsonic JSON reader library.",
long_description = long_description,
long_description_content_type='text/markdown',
author = "Oğuzhan Eroğlu",
author_email = "rohanrhu2@gmail.com",
url = "https://github.com/rohanrhu/python-jsonic",
ext_modules = [jsonic],
data_files = [
("headers", [
"python-jsonic.h",
"lib/jsonic/jsonic.h"
])
]
)