-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
73 lines (60 loc) · 2.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
"""
This file is part of "blighty" which is released under GPL.
See file LICENCE or go to http://www.gnu.org/licenses/ for full license
details.
blighty is a desktop widget creation and management library for Python 3.
Copyright (c) 2018 Gabriele N. Tornetta <[email protected]>.
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from setuptools import Extension, find_packages, setup
x11 = Extension('blighty._x11',
include_dirs = ['/usr/include/cairo/'],
libraries = ['cairo', 'X11', 'Xinerama'],
extra_compile_args = ['-std=c99'],
sources = [
'blighty/x11/_x11module.c',
'blighty/x11/atelier.c',
'blighty/x11/base_canvas.c',
]
)
setup(
name = 'blighty',
version = '3.0.0',
description = 'Desktop Widget Manager. Think of conky, but with Python instead of Lua.',
long_description = open('README.md').read(), long_description_content_type='text/markdown',
author = 'Gabriele N. Tornetta',
author_email = '[email protected]',
url = 'https://github.com/P403n1x87/blighty',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords = 'desklet widget infotainment',
packages = find_packages(exclude=['contrib', 'docs', 'tests']),
ext_modules = [x11],
install_requires = ['pycairo'],
extras_require = {
'test': ['pytest-xvfb', 'numpy', 'matplotlib', 'psutil'],
},
project_urls = {
'Bug Reports' : 'https://github.com/P403n1x87/blighty/issues',
'Source' : 'https://github.com/P403n1x87/blighty',
},
)