Skip to content

Commit

Permalink
more plumbum commands
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Aug 28, 2021
1 parent bdda9f3 commit 215fa88
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v2
with:
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# postgresql-wheel

A Python wheel for Linux containing the entire PostgreSQL database
server.
A Python wheel for Linux containing a locally installable PostgreSQL
database server.

All servers run as the Python process user in a local path, so this
wheel does not require root or sudo privledges.

Servers can be setup and torn down in test fixtures with no additional
outside dependencies.

Currently this wheel only works for most flavors of Linux. MacOS and
maybe even Windows are doable... by someone else.

Postgres is compiled in the same "manylinux" environments provided by
the [cibuildwheel](https://cibuildwheel.readthedocs.io/en/stable/)
tool using [Github Actions]() and directly archived into the wheel's "package_data".

The wheel can be installed with pip:

```
$ pip install postgresql-wheel
```

This wheel contains a complete PostgreSQL database server, compiled on
the same "manylinux" platforms provided by the cibuildwheel tool and
directly archived into the wheel's "package_data". All servers run as
the Python process user so this wheel does not require root or sudo
privledges.

```py3
>>> import postgresql, psycopg2
>>> postgresql.initdb(D="testdatabase") # initialize a local database
Expand Down

0 comments on commit 215fa88

Please sign in to comment.