-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (54 loc) · 2.62 KB
/
setup.py
File metadata and controls
64 lines (54 loc) · 2.62 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
#! /usr/bin/python3
# -*- coding:Utf-8 -*-
import os
from setuptools import setup
APP_NAME = "pytkeditor"
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
with open("pytkeditorlib/utils/version.py") as file:
exec(file.read())
images = [os.path.join("pytkeditorlib/images/", img) for img in os.listdir("pytkeditorlib/images/") if img != 'animation']
anim = [os.path.join("pytkeditorlib/images/animation", img) for img in os.listdir("pytkeditorlib/images/animation")]
ssl = [os.path.join("pytkeditorlib/ssl/", img) for img in os.listdir("pytkeditorlib/ssl/")]
html = [os.path.join("pytkeditorlib/html/", img) for img in os.listdir("pytkeditorlib/html/")]
data_files = [("/usr/share/applications", ["{}.desktop".format(APP_NAME)]),
("/usr/share/{}/images/".format(APP_NAME), images),
("/usr/share/{}/images/animation".format(APP_NAME), anim),
("/usr/share/{}/ssl/".format(APP_NAME), ssl),
("/usr/share/{}/html/".format(APP_NAME), html),
("/usr/share/doc/{}/".format(APP_NAME), ["README.rst", "pytkeditorlib/doc/DOC.rst"]),
("/usr/share/man/man1", ["{}.1.gz".format(APP_NAME)]),
("/usr/share/pixmaps", ["{}.svg".format(APP_NAME)])]
# for loc in os.listdir('pytkeditorlib/locale'):
# data_files.append(("/usr/share/locale/{}/LC_MESSAGES/".format(loc),
# ["pytkeditorlib/locale/{}/LC_MESSAGES/{}.mo".format(loc, APP_NAME)]))
setup(name="pytkeditor",
version=__version__,
description="Python IDE",
author="Juliette Monsel",
author_email="j_4321@protonmail.com",
url="https://gitlab.com/j_4321/PyTkEditor/",
license="GNU General Public License v3",
packages=['pytkeditorlib',
'pytkeditorlib.code_editor',
'pytkeditorlib.dialogs',
'pytkeditorlib.gui_utils',
'pytkeditorlib.utils',
'pytkeditorlib.custom_qtconsole',
'pytkeditorlib.widgets'],
data_files=data_files,
long_description=long_description,
scripts=["pytkeditor"],
install_requires=["jedi",
"pygments",
"pyflakes",
"pycodestyle",
"tkfilebrowser",
"ewmh",
"python-xlib",
"tkcolorpicker",
"Pillow",
"docutils",
"pdfkit",
"pycups"],
extras_require={'Execute in Jupyter QtConsole': ["qtconsole", "qtpy", "traitlets", "jupyter_client"]})