-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix version handling, revert default psycopg to version 2, add option…
…al psycopg3
- Loading branch information
Wiktor Latanowicz
committed
Apr 25, 2023
1 parent
c598b88
commit 0c5cf4a
Showing
5 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
psycopg[binary] | ||
psycopg2-binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
psycopg[binary]>=3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from pathlib import Path | ||
from os import path | ||
|
||
from setuptools import find_packages, setup | ||
|
||
BUNDLES = ( | ||
"kafka", | ||
"memcached", | ||
"mysql", | ||
"psycopg3", | ||
"postgres", | ||
"rabbitmq", | ||
"redis", | ||
|
@@ -48,8 +50,13 @@ def extras_require(): | |
return {x: extras(x + ".txt") for x in BUNDLES} | ||
|
||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
def get_long_description(): | ||
with open(path.join(path.dirname(__file__), "README.md"), "r", encoding="utf-8") as fh: | ||
return fh.read() | ||
|
||
def get_version(): | ||
with open(path.join(path.dirname(__file__), "wait_for_dep", "VERSION"), "r", encoding="utf-8") as f: | ||
return f.read().strip() | ||
|
||
|
||
setup( | ||
|
@@ -59,13 +66,13 @@ def extras_require(): | |
"wait-for-dep = wait_for_dep.wait_for_dep:main", | ||
], | ||
}, | ||
version="0.4.1", | ||
version=get_version(), | ||
description="Waits for dependencies before running the app", | ||
url="http://github.com/wlatanowicz/wait-for-dep", | ||
author="Wiktor Latanowicz", | ||
author_email="[email protected]", | ||
license="MIT", | ||
long_description=long_description, | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
packages=find_packages( | ||
exclude=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from os import path | ||
|
||
with open(path.join(path.dirname(__file__), "VERSION"), encoding="utf-8") as f: | ||
__version__ = f.read().strip() |