-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup2.py
75 lines (70 loc) · 2.32 KB
/
setup2.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
import io
import re
from setuptools import setup
import os
import shutil
# try:
# shutil.rmtree(os.path.join(os.path.dirname(__file__), 'build'))
# except:
# pass
# try:
# shutil.rmtree(os.path.join(os.path.dirname(__file__), 'dist'))
# except:
# pass
try:
os.makedirs(os.path.join(os.path.dirname(__file__), 'pyidm'))
except:
pass
shutil.copy2(os.path.join(os.path.dirname(__file__), 'idm', 'idm.py'), 'pyidm')
shutil.copy2(os.path.join(os.path.dirname(__file__), 'idm', '__main__.py'), 'pyidm')
shutil.copy2(os.path.join(os.path.dirname(__file__), 'idm', '__version__.py'), 'pyidm')
shutil.copy2(os.path.join(os.path.dirname(__file__), 'idm', '__init__.py'), 'pyidm')
with io.open("README.rst", "rt", encoding="utf8") as f:
readme = f.read()
import __version__
version = __version__.version
setup(
name="pyidm",
version=version,
url="https://bitbucket.org/licface/idm",
project_urls={
"Documentation": "https://bitbucket.org/licface/idm",
"Code": "https://bitbucket.org/licface/idm",
},
license="BSD",
author="Hadi Cahyadi LD",
author_email="cumulus13@gmail.com",
maintainer="cumulus13 Team",
maintainer_email="cumulus13@gmail.com",
description="Downloader with Internet Download Manager (Windows)",
long_description=readme,
long_description_content_type="text/markdown",
packages=["pyidm"],
install_requires=[
'argparse',
'pypiwin32',
'comtypes'
],
entry_points = {
"console_scripts": [
"pyidm = pyidm.__main__:usage",
]
},
data_files=['__version__.py', 'README.rst', 'LICENSE.rst'],
include_package_data=True,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)