-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (38 loc) · 1.55 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
# /usr/bin/env python
import uuid
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
def get_requirements(source):
try:
install_reqs = parse_requirements(source, session=uuid.uuid1())
except TypeError:
# Older version of pip.
install_reqs = parse_requirements(source)
required = sorted(set([str(ir.requirement) for ir in install_reqs]))
return list(required)
setup(
name="django_polyencode",
version="2.6.dev0",
description="Geo data database structure for the Django web framework.",
author="Urtzi Odriozola (Code Syntax http://codesyntax.com)",
author_email="[email protected]",
url="https://github.com/codesyntax/django-geodata",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Utilities'],
install_requires=get_requirements('requirements.txt'),
)