-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (31 loc) · 1.1 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
import subprocess
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(["py.test", "pg_database/tests/tests.py", "--cov=pg_database", "--cov-branch"])
raise SystemExit(errno)
with open("README.md") as readme:
long_description = readme.read()
setup(
url="https://github.com/consbio/pg-database-utils",
name="pg-database-utils",
description="A suite of utilities for PostgreSQL database queries and operations built on sqlalchemy",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="postgres,postgresql,utils,utilities,pg_database,pg_database_utils,sqlalchemy",
version="1.0.0",
license="BSD",
packages=[
"pg_database", "pg_database.tests"
],
install_requires=[
"frozendict>=2.0", "psycopg2-binary>=2.7.7", "sqlalchemy==1.3.*", "GeoAlchemy2"
],
tests_require=["pytest", "pytest-cov"],
cmdclass={"test": RunTests}
)