-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathsetup.py
70 lines (61 loc) · 1.99 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
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools import find_packages
# Allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
path_readme = os.path.join(os.path.dirname(__file__), "README.md")
try:
import pypandoc
README = pypandoc.convert_file(path_readme, "rst")
except (IOError, ImportError):
with open(path_readme) as readme:
README = readme.read()
path_version = os.path.join(
os.path.dirname(__file__), "algoliasearch_django/version.py"
)
if sys.version_info < (3, 8):
raise RuntimeError("algoliasearch_django 4.x requires Python 3.8+")
else:
exec(open(path_version).read())
setup(
name="algoliasearch-django",
version="4.0.0",
license="MIT License",
packages=find_packages(exclude=["tests"]),
install_requires=["django>=4.0"],
description="Algolia Search integration for Django",
long_description=README,
long_description_content_type="text/markdown",
author="Algolia Team",
author_email="[email protected]",
url="https://github.com/algolia/algoliasearch-django",
keywords=[
"algolia",
"pyalgolia",
"search",
"backend",
"hosted",
"cloud",
"full-text search",
"faceted search",
"django",
],
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
],
)