Skip to content
Snippets Groups Projects
Commit 74256b63 authored by Colin Watson's avatar Colin Watson
Browse files

New upstream version 0.5.0

parent 93c7eb2d
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: postgresfixture
Version: 0.4.3
Version: 0.5.0
Summary: A fixture for creating PostgreSQL clusters and databases, and tearing them down again, intended for use during development and testing.
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
......@@ -15,8 +13,16 @@ Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/x-rst
Requires-Dist: fixtures>=0.3.8
Requires-Dist: packaging
Requires-Dist: psycopg2>=2.4.4
Requires-Dist: testtools>=0.9.14
Requires-Dist: testscenarios>=0.4
.. -*- mode: rst -*-
......
Metadata-Version: 2.1
Name: postgresfixture
Version: 0.4.3
Version: 0.5.0
Summary: A fixture for creating PostgreSQL clusters and databases, and tearing them down again, intended for use during development and testing.
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
......@@ -15,8 +13,16 @@ Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/x-rst
Requires-Dist: fixtures>=0.3.8
Requires-Dist: packaging
Requires-Dist: psycopg2>=2.4.4
Requires-Dist: testtools>=0.9.14
Requires-Dist: testscenarios>=0.4
.. -*- mode: rst -*-
......
......@@ -24,7 +24,7 @@ from os import (
makedirs,
path,
)
import pipes
import shlex
from shutil import rmtree
from subprocess import (
CalledProcessError,
......@@ -184,7 +184,7 @@ class Cluster:
# -k -- socket directory.
self.execute(
"pg_ctl", "start", "-l", self.logfile, "-s", "-w",
"-o", "-h '' -F -k %s" % pipes.quote(self.datadir))
"-o", "-h '' -F -k %s" % shlex.quote(self.datadir))
def connect(self, database="template1", autocommit=True):
"""Connect to this cluster."""
......
......@@ -19,7 +19,7 @@ from os import (
environ,
fdopen,
)
import pipes
import shlex
import signal
from subprocess import CalledProcessError
import sys
......@@ -50,7 +50,7 @@ def repr_pid(pid):
try:
pid = int(pid)
except ValueError:
return pipes.quote(pid)
return shlex.quote(pid)
else:
try:
with open("/proc/%d/cmdline" % pid, "rb") as fd:
......@@ -59,7 +59,7 @@ def repr_pid(pid):
return "%d (*unknown*)" % pid
else:
cmdline = (arg.decode("ascii", "replace") for arg in cmdline)
return "%d (%s)" % (pid, " ".join(imap(pipes.quote, cmdline)))
return "%d (%s)" % (pid, " ".join(imap(shlex.quote, cmdline)))
def locked_by_description(lock):
......
......@@ -29,14 +29,12 @@ with open("README.txt") as readme:
setup(
name='postgresfixture',
version="0.4.3",
version="0.5.0",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
......@@ -44,6 +42,9 @@ setup(
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries',
],
packages=find_packages(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment