This repository has been archived by the owner on Jul 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·63 lines (58 loc) · 1.9 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
#!/usr/bin/env python2
#
# i3-xfce
# Copyright (c) 2015, Alexandre ACEBEDO, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3.0 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library.
#
"""
Setup script for i3-xfce
"""
import sys
from pip.req import parse_requirements
try:
from setuptools import setup, find_packages
except ImportError:
sys.exit("setuptools package is missing")
try:
import versioneer
except ImportError:
sys.exit("versioneer package is missing")
def execute_setup():
"""
Setup function
"""
if sys.version_info < (2, 0) or sys.version_info >= (3, 0):
sys.exit("i3-xfce only supports python2. Please run setup.py with python2.")
install_reqs = parse_requirements("requirements.txt", session=False)
requirements = [str(ir.req) for ir in install_reqs]
setup(
name="i3-xfce",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages("src"),
package_dir={'':'src'},
include_package_data=True,
install_requires=requirements,
author="Alexandre ACEBEDO",
author_email="Alexandre ACEBEDO",
description="I3 installer for xfce4",
license="LGPLv3",
keywords="i3 xfce",
url="http://github.com/aacebedo/i3-xfce",
entry_points={'console_scripts':
['i3-xfce = i3xfce.core:main']}
)
if __name__ == "__main__":
execute_setup()