forked from SkypLabs/python4yahdlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (46 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
from setuptools import setup, Extension
from os.path import dirname, abspath, join
from codecs import open as fopen
DIR = dirname(abspath(__file__))
VERSION = '1.2.0'
yahdlc = Extension(
'yahdlc',
sources = [
DIR + '/src/python4yahdlc.c',
DIR + '/lib/fcs16.c',
DIR + '/lib/yahdlc.c'
],
include_dirs = [
DIR + '/include/'
],
)
with fopen(join(DIR, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'python4yahdlc',
version = VERSION,
description = 'Python binding of the yahdlc library allowing to encode and decode HDLC frames',
long_description = long_description,
license = 'GPLv3',
keywords = 'hdlc yahdlc binding network',
author = 'Paul-Emmanuel Raoul',
author_email = '[email protected]',
url = 'https://github.com/SkypLabs/python4yahdlc',
download_url = 'https://github.com/SkypLabs/python4yahdlc/archive/v{0}.zip'.format(VERSION),
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: C',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
ext_modules = [yahdlc],
test_suite = 'test',
python_requires='>=3',
)