Add basic setup files
This commit is contained in:
parent
e042d985b5
commit
4cd25bcad9
7
setup.cfg
Normal file
7
setup.cfg
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[metadata]
|
||||||
|
name = Bulk Downloader for Reddit
|
||||||
|
author = Ali Parlakci
|
||||||
|
author-email = parlakciali@gmail.com
|
||||||
|
|
||||||
|
[files]
|
||||||
|
packages = bulkredditdownloader
|
52
setup.py
52
setup.py
|
@ -1,50 +1,6 @@
|
||||||
#!C:\Users\Ali\AppData\Local\Programs\Python\Python36\python.exe
|
#!/usr/bin/env python3
|
||||||
|
# encoding=utf-8
|
||||||
|
|
||||||
# python setup.py build
|
from setuptools import setup
|
||||||
import sys
|
|
||||||
|
|
||||||
from cx_Freeze import Executable, setup
|
setup(setup_requires=['pbr', 'appdirs'], pbr=True, data_files=[('config', ['bulkredditdownloader/default_config.cfg'])])
|
||||||
|
|
||||||
from bulkredditdownloader.__main__ import __version__
|
|
||||||
|
|
||||||
options = {
|
|
||||||
"build_exe": {
|
|
||||||
"packages": [
|
|
||||||
"idna", "praw", "requests", "multiprocessing"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if sys.platform == "win32":
|
|
||||||
executables = [Executable(
|
|
||||||
"script.py",
|
|
||||||
targetName="bulk-downloader-for-reddit.exe",
|
|
||||||
shortcutName="Bulk Downloader for Reddit",
|
|
||||||
shortcutDir="DesktopFolder"
|
|
||||||
)]
|
|
||||||
|
|
||||||
elif sys.platform == "linux":
|
|
||||||
executables = [Executable(
|
|
||||||
"script.py",
|
|
||||||
targetName="bulk-downloader-for-reddit",
|
|
||||||
shortcutName="Bulk Downloader for Reddit",
|
|
||||||
shortcutDir="DesktopFolder"
|
|
||||||
)]
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="Bulk Downloader for Reddit",
|
|
||||||
version=__version__,
|
|
||||||
description="Bulk Downloader for Reddit",
|
|
||||||
author="Ali Parlakci",
|
|
||||||
author_email="parlakciali@gmail.com",
|
|
||||||
url="https://github.com/aliparlakci/bulk-downloader-for-reddit",
|
|
||||||
classifiers=(
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
|
|
||||||
"Natural Language :: English",
|
|
||||||
"Environment :: Console",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
),
|
|
||||||
executables=executables,
|
|
||||||
options=options
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue