forked from enerBit/pygination
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (47 loc) · 1.64 KB
/
Copy pathsetup.py
File metadata and controls
55 lines (47 loc) · 1.64 KB
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
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
"""
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the text encoding
# Python 3 only projects can skip this import
from io import open
from os import path
# Always prefer setuptools over distutils
from setuptools import find_packages, setup
VERSION = "0.0.12"
NAME = "pygination"
AUTHOR = "Enerbit"
AUTHOR_EMAIL = "escribenos@enerbit.co"
DESCRIPTION = "Simple pagination for pydantic models and SQLAlchemy Query objects"
PROJECT_URL = "https://github.com/enerbit/pygination"
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
try:
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
url=PROJECT_URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords="python pagination",
package_dir={"": "src"},
packages=find_packages(where="src"), # Required
package_data={NAME: ["py.typed"]},
python_requires=">=3.7",
install_requires=["SQLAlchemy", "pydantic"],
)