-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathsetup.py
78 lines (66 loc) · 2.51 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
74
75
76
77
78
import os
import sys
from pybingwallpaper.rev import REV
from setuptools import setup, find_packages
if sys.version_info[0] == 2:
import codecs
fopen = codecs.open
else:
fopen = open
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return fopen(os.path.join(os.path.dirname(__file__), fname), encoding='utf8').read()
def os_requires():
return ['Pillow', 'pypiwin32'] if sys.platform == 'win32' else []
def backport_requires():
return ['configparser', 'subprocess32'] if sys.version_info[0] == 2 else []
def requires():
return os_requires() + backport_requires()
setup(
name = 'PyBingWallpaper',
version = REV,
author = 'genzj',
author_email = '[email protected]',
description = (
'A simple Bing.com wallpaper downloader'
),
license = 'MIT',
keywords = 'bing wallpaper',
url = 'https://github.com/genzj/pybingwallpaper',
packages=find_packages(exclude=['res', 'test', 'wiki']),
install_requires=requires(),
entry_points={
'console_scripts': [
'BingWallpaper=pybingwallpaper.main:main',
],
},
long_description=read('README.rst'),
classifiers=[
'Development Status :: 6 - Mature',
'Environment :: Console',
'Topic :: Desktop Environment',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows :: Windows XP',
'Operating System :: Microsoft :: Windows :: Windows Vista',
'Operating System :: Microsoft :: Windows :: Windows 7',
'Operating System :: Microsoft :: Windows :: Windows 8',
'Operating System :: Microsoft :: Windows :: Windows 8.1',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: Other',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.3',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)