-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (35 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
# -*- coding: utf-8 -*-
# /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)
try:
required = [str(ir.req) for ir in install_reqs]
except:
required = [str(ir.requirement) for ir in install_reqs]
return list(required)
version = '0.8.4.dev0'
setup(name='multilingual_flatpages',
version=version,
description="""A flatpage is a simple object with a URL, title and content. Use it for one-off, special-case pages, such as “About” or “Privacy Policy” pages, that you want to store in a database but for which you don’t want to develop a custom Django application. A flatpage can use a custom template or a default, systemwide flatpage template. It can be associated with one, or multiple, sites. This version is a fork of django.contrib.flatpages package made it multilingual.""",
long_description=open("README.rst").read() + "\n" +
open("CHANGELOG.txt").read(),
classifiers=[],
keywords='',
author="Urtzi Odriozola (CodeSyntax http://codesyntax.com)",
author_email="[email protected]",
url="https://github.com/codesyntax/django-multilingual-flatpages",
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=get_requirements('requirements.txt'),
)