-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
53 lines (44 loc) · 1.68 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
42
43
44
45
46
47
48
49
50
51
52
53
import codecs
from pathlib import Path
import re
from setuptools import find_packages
from setuptools import setup
def read(filename):
file_path = Path(__file__).parent / filename
return codecs.open(file_path, encoding="utf-8").read()
def find_meta(meta):
"""Extract __*meta*__ from META_FILE."""
re_str = r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta)
meta_match = re.search(re_str, META_FILE, re.M)
if meta_match:
return meta_match.group(1)
raise RuntimeError(f"Unable to find __{meta}__ string.")
PACKAGE_NAME = "dynamo-pandas"
META_FILE = read(Path(__file__).parent / PACKAGE_NAME.replace("-", "_") / "__init__.py")
setup(
name=PACKAGE_NAME,
version=find_meta("version"),
author="Julien de la Bruère-Terreault",
author_email="drgfreeman@tuta.io",
maintainer="Julien de la Bruère-Terreault",
maintainer_email="drgfreeman@tuta.io",
license="MIT",
url="https://github.com/DrGFreeman/dynamo-pandas",
description="Make working with pandas dataframe and AWS DynamoDB easy.",
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.8",
install_requires=["pandas>=1.2"],
extras_require={"boto3": ["boto3"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)