Skip to content

Commit e291d94

Browse files
authored
Merge pull request #7 from postgresml/levkk-pgml
A real package
2 parents 135e199 + 7405881 commit e291d94

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY --chown=postgres:postgres . /app
1010
WORKDIR /app/pgml
1111

1212
# Install pgml extension globally.
13-
RUN python3 setup.py install
13+
RUN pip3 install pgml
1414

1515
# Listen on 0.0.0.0 and allow 'root' to connect without a password.
1616
# Please modify for production deployments accordingly.

pgml/pgml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def version():
2-
return "0.1"
2+
return "0.3"

pgml/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import setuptools
2+
from pgml import version
23

34
with open("README.md", "r") as fh:
45
long_description = fh.read()
56

67
setuptools.setup(
78
name="pgml",
8-
version="0.1",
9+
version=version(),
910
author="PostgresML",
1011
author_email="hello@postgresml.com",
1112
description="Run machine learning inside Postgres.",
1213
long_description=long_description,
1314
long_description_content_type="text/markdown",
14-
url="https://github.com/levkk/postgresml",
15+
url="https://github.com/postgresml/postgresml",
1516
install_requires=[
1617
"sklearn",
1718
],

0 commit comments

Comments
 (0)