-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
57 lines (50 loc) · 1.71 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
from setuptools import setup, find_packages
import sys
import os
from pip.download import PipSession
from pip.req import parse_requirements
install_reqs = parse_requirements('requirements.txt', session=PipSession())
requires = [str(ir.req) for ir in install_reqs]
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.rst")
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=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
],
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=requires,
entry_points="""
[sqlalchemy.dialects]
virtuoso = virtuoso:alchemy.VirtuosoDialect
[rdf.plugins.store]
Virtuoso = virtuoso:vstore.Virtuoso
""",
)