-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
65 lines (51 loc) · 1.97 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os
from setuptools import setup
icons = []
for dirpath, dirnames, filenames in os.walk("data/icons/"):
relpath = dirpath[len("data/icons/"):]
if relpath and filenames:
icons.append((sys.prefix+"/share/icons/hicolor/"+relpath, [os.path.join(dirpath, x) for x in filenames]))
setup(
name='pick-colour-picker',
version='1.0',
url='https://kryogenix.org/code/pick',
author='Stuart Langridge',
author_email='[email protected]',
packages=['pick'],
package_dir={'pick': 'pick'},
data_files=[
(sys.prefix+'/share/applications',['pick-colour-picker.desktop']),
(sys.prefix+'/share/pixmaps', ['pick-colour-picker.png'])
] + icons,
zip_safe=True,
include_package_data=True,
platforms='any',
install_requires=[
'setuptools'
],
description='A colour picker that remembers where you picked colours from',
long_description=("Pick lets you pick colours from anywhere on your screen. "
"Choose the colour you want and Pick remembers it, names it, and shows you a screenshot "
"so you can remember where you got it from. Zoom all the way in to pixels to pick "
"just the right one. Show your colours in your choice of format: rgba() or hex, "
"CSS or Gdk or Qt, whichever you prefer. Copy to the clipboard ready for pasting into "
"code or graphics apps."),
keywords=['pick', 'colour', 'colour picker', 'color', 'color picker'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Environment :: X11 Applications :: GTK',
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Topic :: Multimedia :: Graphics'
],
entry_points={
'gui_scripts': [
'pick-colour-picker = pick.__main__:main',
]
},
)