Skip to content

Commit d8b1512

Browse files
committed
chore(cleanup): cleanup for release as pystun3
1 parent ee87b8a commit d8b1512

File tree

8 files changed

+107
-71
lines changed

8 files changed

+107
-71
lines changed

.circleci/config.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
version: 2
2+
3+
jobs:
4+
lint2:
5+
docker:
6+
- image: python:2.7.14
7+
steps:
8+
- checkout
9+
- run: pip install prospector
10+
- run: prospector
11+
12+
lint3:
13+
docker:
14+
- image: python:3.6.4
15+
steps:
16+
- checkout
17+
- run: pip install prospector
18+
- run: prospector
19+
20+
test27:
21+
docker:
22+
- image: python:2.7.14
23+
steps:
24+
- checkout
25+
- run: pip install nose
26+
- run: nosetests --with-coverage --cover-package=stun --cover-inclusive ./tests
27+
28+
test34:
29+
docker:
30+
- image: python:3.4.8
31+
steps:
32+
- checkout
33+
- run: pip install nose
34+
- run: nosetests --with-coverage --cover-package=stun --cover-inclusive ./tests
35+
36+
test35:
37+
docker:
38+
- image: python:3.5.5
39+
steps:
40+
- checkout
41+
- run: pip install nose
42+
- run: nosetests --with-coverage --cover-package=stun --cover-inclusive ./tests
43+
44+
test36:
45+
docker:
46+
- image: python:3.6.4
47+
steps:
48+
- checkout
49+
- run: pip install nose
50+
- run: nosetests --with-coverage --cover-package=stun --cover-inclusive ./tests
51+
52+
workflows:
53+
version: 2
54+
run-jobs:
55+
jobs:
56+
- lint2
57+
- lint3
58+
- test27
59+
- test34
60+
- test35
61+
- test36
62+
63+
experimental:
64+
notify:
65+
branches:
66+
only:
67+
- master

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.coverage
21
*.pkl
32
*.pyc
43
*.swp
5-
pystun.egg-info
6-
build
7-
dist
8-
env/
4+
.coverage
5+
build/
6+
dist/
7+
pystun3.egg-info
8+
venv/

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Changelog
22
---------
3+
1.0.0 (2018/06/12)
4+
******************
5+
- Release as ``pystun3`` with support for Python 3.
6+
37
0.1.0 (2014/11/07)
48
******************
59
- Drop support for Python 2.6 and earlier.

Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.rst

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
1-
.. image:: https://travis-ci.org/jtriley/pystun.svg?branch=master
2-
:target: https://travis-ci.org/jtriley/pystun
1+
PyStun3
2+
=======
3+
A Python STUN client for getting NAT type and external IP. Supports Python
4+
versions 2 and 3.
35

4-
.. image:: https://coveralls.io/repos/jtriley/pystun/badge.png
5-
:target: https://coveralls.io/r/jtriley/pystun
6+
This project has been forked several times:
7+
- `original project by gaohawk`_
8+
- `taken over by jtriley`_
9+
- `forked and patched to support py3 by zoumi`_
10+
- and, finally, forked by `TalkIQ`_
611

7-
8-
PyStun
9-
======
10-
A Python STUN client for getting NAT type and external IP
11-
12-
This is a fork of pystun originally created by gaohawk (http://code.google.com/p/pystun/)
13-
14-
PyStun follows RFC 3489: http://www.ietf.org/rfc/rfc3489.txt
15-
16-
A server following STUN-bis hasn't been found on internet so RFC3489 is the
17-
only implementation.
12+
PyStun follows `RFC 3489`_. A server following STUN-bis hasn't been found on
13+
internet so RFC3489 is the only implementation.
1814

1915
Installation
2016
------------
2117
To install the latest version::
2218

23-
$ pip install pystun
19+
$ pip install pystun3
2420

2521
or download/clone the source and install manually using::
2622

27-
$ cd /path/to/pystun/src
23+
$ cd /path/to/pystun3/src
2824
$ python setup.py install
2925

30-
If you're hacking on pystun you should use the 'develop' command instead::
26+
If you're hacking on ``pystun3`` you should use the 'develop' command instead::
3127

3228
$ python setup.py develop
3329

@@ -38,16 +34,16 @@ Usage
3834
-----
3935
From command line::
4036

41-
$ pystun
37+
$ pystun3
4238
NAT Type: Full Cone
4339
External IP: <your-ip-here>
4440
External Port: 54320
4541

4642
Pass --help for more options::
4743

48-
% pystun --help
49-
usage: pystun [-h] [-d] [-H STUN_HOST] [-P STUN_PORT] [-i SOURCE_IP]
50-
[-p SOURCE_PORT] [--version]
44+
% pystun3 --help
45+
usage: pystun3 [-h] [-d] [-H STUN_HOST] [-P STUN_PORT] [-i SOURCE_IP]
46+
[-p SOURCE_PORT] [--version]
5147

5248
optional arguments:
5349
-h, --help show this help message and exit
@@ -68,8 +64,8 @@ From Python::
6864
nat_type, external_ip, external_port = stun.get_ip_info()
6965

7066
This will rotate through an internal list of STUN servers until a response is
71-
found. If no response is found you will get "Blocked" as the *nat_type* and
72-
**None** for *external_ip* and *external_port*.
67+
found. If no response is found you will get ``"Blocked"`` as the ``nat_type``
68+
and ``None`` for ``external_ip`` and ``external_port``.
7369

7470
If you prefer to use a specific STUN server::
7571

@@ -91,3 +87,9 @@ Read the code for more details...
9187
LICENSE
9288
-------
9389
MIT
90+
91+
.. _forked and patched to support py3 by zoumi: https://github.com/zoumi/pystun
92+
.. _original project by gaohawk: http://code.google.com/p/pystun/
93+
.. _RFC 3489: http://www.ietf.org/rfc/rfc3489.txt
94+
.. _taken over by jtriley: https://github.com/jtriley/pystun
95+
.. _TalkIQ: https://github.com/talkiq
File renamed without changes.

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ def main():
99
README = open(os.path.join(src, 'README.rst')).read()
1010

1111
setup(
12-
name='pystun',
12+
name='pystun3',
1313
version=stun.__version__,
1414
packages=find_packages(),
1515
zip_safe=False,
1616
license='MIT',
17-
author='Justin Riley (original author: gaohawk)',
18-
author_email='justin.t.riley@gmail.com',
19-
url='http://github.com/jtriley/pystun',
17+
author='TalkIQ (original authors: gaohawk, Justin Riley)',
18+
author_email='engineering@talkiq.com',
19+
url='http://github.com/talkiq/pystun3',
2020
description='A Python STUN client for getting NAT type and external IP (RFC 3489)',
2121
long_description=README,
2222
keywords='STUN NAT',
@@ -32,7 +32,7 @@ def main():
3232
test_suite='tests',
3333
entry_points={
3434
'console_scripts': [
35-
'pystun=stun.cli:main'
35+
'pystun3=stun.cli:main'
3636
]
3737
}
3838
)

0 commit comments

Comments
 (0)