setup.py 1.28 KB
Newer Older
1 2
#!/usr/bin/env python

3
import os
4

5
from setuptools import setup
6

7
with open("README.rst", "r") as f:
8
    readme = f.read()
9

10 11

def get_packages(package):
12
    return [
13 14 15
        dirpath
        for dirpath, dirnames, filenames in os.walk(package)
        if os.path.exists(os.path.join(dirpath, "__init__.py"))
16
    ]
17 18


19
setup(
20 21 22 23 24 25 26
    name="djoser",
    version="2.0.1",
    packages=get_packages("djoser"),
    license="MIT",
    author="SUNSCRAPERS",
    description="REST version of Django authentication system.",
    author_email="info@sunscrapers.com",
27
    long_description=readme,
28 29
    install_requires=["django-templated-mail"],
    setup_requires=["Babel>=2.6.0"],
30
    include_package_data=True,
31
    url="https://github.com/sunscrapers/djoser",
32
    classifiers=[
33 34 35 36 37 38 39 40 41 42 43 44 45
        "Development Status :: 5 - Production/Stable",
        "Framework :: Django",
        "Framework :: Django :: 1.11",
        "Framework :: Django :: 2.2",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
46
)