Skip to content

Commit bd6b11a

Browse files
authored
Merge pull request #3 from pytest-dev/update-package-info/1/dev
Update package info to reflect migration to Github
2 parents f38dcc0 + 4c79201 commit bd6b11a

File tree

8 files changed

+18
-20
lines changed

8 files changed

+18
-20
lines changed

AUTHORS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ Sebastian Rahlf <[email protected]> (maintainer)
22
Muhammad Hallaj Subery <[email protected]>
33
Thomas Weißschuh <[email protected]>
44
Benjamin Wohlwend <[email protected]>
5-
Jason R. Coombs
5+
Jason R. Coombs
6+
David Zaslavsky <[email protected]> (maintainer)
7+
Corey Oordt <[email protected]> (maintainer)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011, Sebastian Rahlf
1+
Copyright (c) 2011-2021, Sebastian Rahlf and contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include LICENSE
22
include MANIFEST.in
3-
include README
3+
include README.rst
44
include pytest_localserver/server.*
55
include pytest_localserver/ca.*
66
recursive-include tests *.py

README renamed to README.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
At the moment this package is not actively maintained and its future is somewhat
2-
uncertain. If you would be interested in maintaining or co-maintaining it,
3-
please contribute to the discussion at
4-
https://github.com/pytest-dev/pytest/issues/7857.
5-
61
==================
72
pytest-localserver
83
==================
@@ -82,10 +77,10 @@ poking around in the code itself.
8277
* ``headers`` - response headers (dict)
8378

8479
Once these attribute are set, all subsequent requests will be answered with
85-
these values until they are changed or the server is stopped. A more
80+
these values until they are changed or the server is stopped. A more
8681
convenient way to change these is ::
8782

88-
httpserver.serve_content(content=None, code=200, headers=None)
83+
httpserver.serve_content(content=None, code=200, headers=None)
8984

9085
The server address can be found in property
9186

@@ -162,12 +157,12 @@ License and Credits
162157
This plugin is released under the MIT license. You can find the full text of
163158
the license in the LICENSE file.
164159

165-
Copyright (C) 2010-2013 Sebastian Rahlf and others (see AUTHORS).
160+
Copyright (C) 2010-2021 Sebastian Rahlf and others (see AUTHORS).
166161

167162
Some parts of this package is based on ideas or code from other people:
168163

169164
- I borrowed some implementation ideas for the httpserver from `linkchecker`_.
170-
- The implementation for the SMTP server is based on the `Mailsink recipe`_ by
165+
- The implementation for the SMTP server is based on the `Mailsink recipe`_ by
171166
Adam Feuer, Matt Branthwaite and Troy Frever.
172167
- The HTTPS implementation is based on work by `Sebastien Martini`_.
173168

@@ -196,7 +191,7 @@ I already have a couple of ideas for future versions:
196191

197192
.. [1] The idea for this project was born when I needed to check that `a piece
198193
of software`_ behaved itself when receiving HTTP error codes 404 and 500.
199-
Having unsuccessfully tried to mock a server, I stumbled across
194+
Having unsuccessfully tried to mock a server, I stumbled across
200195
`linkchecker`_ which uses a the same idea to test its internals.
201196
202197
.. _monkeypatching: http://pytest.org/latest/monkeypatch.html

pytest_localserver/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def serve_content(self, content, code=200, headers=None):
121121
path = sys.argv[1]
122122
except IndexError:
123123
path = os.path.join(
124-
os.path.dirname(os.path.abspath(__file__)), '..', 'README')
124+
os.path.dirname(os.path.abspath(__file__)), '..', 'README.rst')
125125

126126
app.serve_content(open(path).read(), 302)
127127

pytest_localserver/https.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SecureContentServer (ContentServer):
8989
9090
A more advanced tutorial can be found `here`_.
9191
92-
.. _pytest-localserver CA: https://bitbucket.org/pytest-dev/pytest-localserver/src/tip/pytest_localserver/ca.crt
92+
.. _pytest-localserver CA: https://raw.githubusercontent.com/pytest-dev/pytest-localserver/master/pytest_localserver/ca.crt
9393
.. _pyOpenSSH: https://launchpad.net/pyopenssl
9494
"""
9595

@@ -121,7 +121,7 @@ def __init__(self, host='localhost', port=0,
121121
path = sys.argv[1]
122122
except IndexError:
123123
path = os.path.join(
124-
os.path.dirname(os.path.abspath(__file__)), '..', 'README')
124+
os.path.dirname(os.path.abspath(__file__)), '..', 'README.rst')
125125

126126
server.serve_content(open(path).read(), 302)
127127

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22
[metadata]
3-
description-file = README
3+
description-file = README.rst

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ def run(self):
3333
version=VERSION,
3434
author='Sebastian Rahlf',
3535
author_email='[email protected]',
36+
maintainer='David Zaslavsky',
37+
maintainer_email='[email protected]',
3638
license='MIT License',
3739
description='py.test plugin to test server connections locally.',
38-
long_description=read('README'),
39-
url='http://bitbucket.org/pytest-dev/pytest-localserver/',
40-
download_url='http://bitbucket.org/pytest-dev/pytest-localserver/downloads/',
40+
long_description=read('README.rst'),
41+
url='https://github.com/pytest-dev/pytest-localserver',
4142

4243
packages=['pytest_localserver'],
4344
install_requires=[

0 commit comments

Comments
 (0)