forked from pylover/sqlalchemy-media
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.17 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
import os
import re
from setuptools import setup, find_packages
# reading the package version without loading the package.
with open(os.path.join(
os.path.dirname(__file__), 'sqlalchemy_media', '__init__.py'
)) as v_file:
package_version = re.compile(
r".*__version__ = '(.*?)'", re.S).match(v_file.read()).group(1)
dependencies = [
'sqlalchemy >= 1.1.0b3',
'pillow',
'python-magic >= 0.4.12',
'python-magic-bin >= 0.4.12; (sys_platform=="win32" or sys_platform=="darwin")'
]
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name="sqlalchemy-media",
version=package_version,
author="Vahid Mardani",
author_email="vahid.mardani@gmail.com",
url="http://sqlalchemy-media.dobisel.com",
description="Sqlalchemy asset manager",
maintainer="Vahid Mardani",
maintainer_email="vahid.mardani@gmail.com",
packages=find_packages(),
platforms=["any"],
long_description=read('README.rst'),
install_requires=dependencies,
license='MIT',
classifiers=[
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries'
],
)