-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
90 lines (77 loc) · 3.05 KB
/
setup.py
File metadata and controls
90 lines (77 loc) · 3.05 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: setup.py
# by Arzaroth Lekva
# arzaroth@arzaroth.com
#
import io
import os
from setuptools import Extension, find_packages, setup
def read_readme():
readme_path = 'README.md'
if os.path.exists(readme_path):
with io.open(readme_path, encoding="utf-8") as fh:
return fh.read()
return 'Python bindings for RapidXml, a C++ XML parsing library'
VERSION = ("2", "1", "2")
long_descr = read_readme()
rapidxml = Extension("rapidxml.c_ext",
define_macros=[('MAJOR_VERSION', VERSION[0]),
('MINOR_VERSION', VERSION[1])],
include_dirs=[
'rapidxml/c_ext/inc/',
'rapidxml/c_ext/inc/rapidxml-1.13/',
],
sources=[
'rapidxml/c_ext/src/common.cpp',
'rapidxml/c_ext/src/rapidxml_module.cpp',
'rapidxml/c_ext/src/base_object.cpp',
'rapidxml/c_ext/src/node_object.cpp',
'rapidxml/c_ext/src/attribute_object.cpp',
'rapidxml/c_ext/src/document_object.cpp',
'rapidxml/c_ext/src/nodeiterator_object.cpp',
'rapidxml/c_ext/src/attributeiterator_object.cpp',
],
)
setup(
ext_modules=[rapidxml],
name='RapidXml',
version='.'.join(VERSION),
license='MIT',
url='https://github.com/Arzaroth/python_rapidxml',
download_url='https://github.com/Arzaroth/python_rapidxml/tarball/%s' % ('.'.join(VERSION)),
author='Marc-Etienne Barrut',
author_email='lekva@arzaroth.com',
description='Python RapidXml Library',
long_description=long_descr,
long_description_content_type='text/markdown',
keywords='rapidxml xml parsing',
packages=find_packages('.'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)