-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (44 loc) · 1.37 KB
/
Copy pathsetup.py
File metadata and controls
48 lines (44 loc) · 1.37 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
import os
def pandas_rs_version():
version_regex = re.compile(r'__version__ = "([^\"]*)"')
return version_regex.match(
open('pandas_rs/version.py').read()
).group(1)
def read_file(filename):
filepath = os.path.join(
os.path.dirname(
os.path.dirname(__file__)
),
filename
)
if os.path.exists(filepath):
return open(filepath).read()
else:
return ''
setup(
name = "pandas-rs",
packages = ["pandas_rs"],
install_requires = ["pandas", "psycopg2"],
version = pandas_rs_version(),
description = "pandas extension for PostgreSQL and AWS RedShift (Not Officail library)",
author = "Tatsuro Yasukawa",
author_email = "t.yasukawa01@gmail.com",
url = "https://github.com/SamuraiT/pandas-rs",
download_url = "",
keywords = ["pandas", "PostgreSQL","RedShift", "sql"],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description = read_file('README.md')
)