Skip to content

Commit 68621e4

Browse files
Fix build & installation process.
1 parent 3a67ae8 commit 68621e4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ cd ..
1212
eval "$(direnv export bash)"
1313

1414
prefix="dist/db_wrapper-"
15-
current_version=`cat app-version`
15+
_current_version_raw=`rg version setup.py`
16+
_current_version_prefix_trimmed=${_current_version_raw#" version=\""}
17+
current_version=${_current_version_prefix_trimmed%"\","}
1618

1719
# ../dist/db_wrapper-0.1.0a0-py3-none-any.whl
1820
# ../dist/db_wrapper-0.1.0a0.tar.gz

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import setuptools
22

3-
with open("app-version", "r", encoding="utf-8") as fh:
4-
version = fh.read()
5-
63
with open("README.md", "r", encoding="utf-8") as fh:
74
long_description = fh.read()
85

96
setuptools.setup(
107
name="db_wrapper",
11-
version=version,
8+
version="0.1.1",
129
author="Andrew Chang-DeWitt",
1310
author_email="andrew@andrew-chang-dewitt.dev",
1411
description="Simple wrapper on aiopg to handle postgres connections & basic Models.",

0 commit comments

Comments
 (0)