forked from MeanEYE/Sunflower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.07 KB
/
setup.py
File metadata and controls
36 lines (32 loc) · 1.07 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
#!/usr/bin/env python3
from setuptools import setup, find_packages
from pathlib import Path
def get_version():
"""Get software version from the main window."""
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('Notify', '0.7')
from sunflower.gui.main_window import MainWindow
return '{major}.{minor}.{build}'.format(**MainWindow.version)
setup (
name='Sunflower',
version=get_version(),
description='Twin-panel file manager.',
author='Mladen Mijatov',
author_email='meaneye.rcf@gmail.com',
url='https://sunflower-fm.org',
license='GPLv3',
install_requires=[
'PyGObject',
'chardet'
],
packages=find_packages(),
include_package_data=True,
data_files=[
('share/sunflower/images/', list(str(i) for i in Path('images/').rglob('*') if i.is_file())),
('share/sunflower/translations', list(str(i) for i in Path('translations/').rglob('*.po') if i.is_file())),
('share/sunflower/styles', ['styles/main.css']),
('share/applications', ['Sunflower.desktop'])
],
entry_points={'console_scripts': ['sunflower = sunflower.__main__:main']}
)