-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·41 lines (36 loc) · 1.38 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
import re
from os import path
from setuptools import setup, find_packages
BASE_DIR = path.abspath(path.dirname(__file__))
def find_version():
for line in open(path.join(BASE_DIR, "django_serializer/__init__.py")):
if line.startswith("__version__"):
return re.match(r"""__version__\s*=\s*(['"])([^'"]+)\1""", line).group(2)
setup(
name="django-serializer",
version=find_version(),
description="Library for creating simple django api",
long_description="Library for creating simple django api",
author="Alexander Opryshko",
author_email="[email protected]",
url="https://github.com/alexopryshko/django-serializer",
license="MIT",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords="django-serializer setuptools development",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
install_requires=[
"Django>=3.2",
"marshmallow>=3.14.0",
"apispec>=5.1.1",
],
)