-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (50 loc) · 1.66 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from file_sort.fs_main import __doc__ as fs_doc
from file_sort.fs_main import __version__ as fs_version
README_FILE = open("README.rst", "rt").read()
VERSION = fs_version
DOC = fs_doc
def read_requirements(req_filename):
reqs = []
with open(req_filename, "rt") as req_file:
for line in req_file.read().splitlines():
if not line.strip().startswith("#"):
reqs.append(line)
return reqs
setup(
name="FileSort",
version=VERSION,
author="Aalmann",
author_email="[email protected]",
scripts=["FileSort.py"],
url="https://github.com/aalmann/file_sort",
license="MIT",
keywords="image sorter based on exif metadata",
description=" ".join(DOC.splitlines()).strip(),
long_description=README_FILE,
install_requires=read_requirements('file_sort/requirements.txt'),
packages=find_packages(exclude="test"),
package_data={
'file_sort': ['*.txt'],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Utilities",
],
entry_points={
'console_scripts': [
'FileSort=FileSort:run'
],
},
)