-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsetup.py
52 lines (47 loc) · 1.53 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
import ast
import re
from setuptools import find_packages, setup
_version_re = re.compile(r"__version__\s+=\s+(.*)")
# Extract version from __init__.py
with open("src/generss/__init__.py", "rt") as f:
version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))
# Read long description from README.md
with open("README.md", "rt") as f:
long_description = f.read()
setup(
name="generss",
version=version,
description="Generate RSS feeds from media files in a directory",
long_description=long_description,
long_description_content_type="text/markdown",
author="Amine Sehili",
author_email="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Communications :: File Sharing",
"Topic :: Utilities",
],
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.4",
install_requires=[
"mutagen",
"eyed3",
],
entry_points={
"console_scripts": [
"genRSS=generss:main",
],
},
)