forked from maparent/virtuoso-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (53 loc) · 1.77 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
58
from setuptools import setup, find_packages
import sys
import os
version = '0.12.6'
try:
from mercurial import ui, hg, error
repo = hg.repository(ui.ui(), ".")
ver = repo[version]
except ImportError:
pass
except error.RepoLookupError:
tip = repo["tip"]
version = version + ".%s.%s" % (tip.rev(), tip.hex()[:12])
except error.RepoError:
pass
def readme():
dirname = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(dirname, "README.txt")
return open(filename).read()
setup(name='virtuoso',
version=version,
description="OpenLink Virtuoso Support for SQLAlchemy and RDFLib",
long_description=readme(),
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[],
keywords='',
author='Marc-Antoine Parent and Open Knowledge Foundation',
author_email='[email protected], [email protected]',
url='http://packages.python.org/virtuoso',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
tests_require=["nose"],
install_requires=[
'SQLAlchemy',
'pyodbc',
'rdflib',
'uricore',
'werkzeug',
],
dependency_links=[
'https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.9.8.tar.gz#egg=SQLAlchemy',
'http://github.com/maparent/pyodbc/tarball/v3-virtuoso#egg=pyodbc',
'https://pypi.python.org/packages/source/u/uricore/uricore-0.1.2.tar.gz#egg=uricore'
],
entry_points="""
[sqlalchemy.dialects]
virtuoso = virtuoso:alchemy.VirtuosoDialect
[rdf.plugins.store]
Virtuoso = virtuoso:vstore.Virtuoso
""",
)