Skip to content

Commit 98c7ac2

Browse files
Improved project structure
1 parent 82cc2cb commit 98c7ac2

26 files changed

+50
-63
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[metadata]
2+
name = python-socketio
3+
version = 5.3.1.dev0
4+
author = Miguel Grinberg
5+
author_email = miguel.grinberg@gmail.com
6+
description = Socket.IO server and client for Python
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
9+
url = https://github.com/miguelgrinberg/python-socketio
10+
project_urls =
11+
Bug Tracker = https://github.com/miguelgrinberg/python-socketio/issues
12+
classifiers =
13+
Environment :: Web Environment
14+
Intended Audience :: Developers
15+
Programming Language :: Python :: 3
16+
License :: OSI Approved :: MIT License
17+
Operating System :: OS Independent
18+
19+
[options]
20+
zip_safe = False
21+
include_package_data = True
22+
package_dir =
23+
= src
24+
packages = find:
25+
python_requires = >=3.6
26+
install_requires =
27+
bidict >= 0.21.0
28+
python-engineio >= 4.1.0
29+
30+
[options.packages.find]
31+
where = src
32+
33+
[options.extras_require]
34+
client =
35+
requests >= 2.21.0
36+
websocket-client >= 0.54.0
37+
asyncio_client =
38+
aiohttp >= 3.4
39+
websockets >= 7.0

setup.py

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,3 @@
1-
"""
2-
python-socketio
3-
---------------
1+
import setuptools
42

5-
Socket.IO server.
6-
"""
7-
import re
8-
import sys
9-
from setuptools import setup
10-
11-
with open('socketio/__init__.py', 'r') as f:
12-
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
13-
f.read(), re.MULTILINE).group(1)
14-
15-
with open('README.md', 'r') as f:
16-
long_description = f.read()
17-
18-
setup(
19-
name='python-socketio',
20-
version=version,
21-
url='http://github.com/miguelgrinberg/python-socketio/',
22-
license='MIT',
23-
author='Miguel Grinberg',
24-
author_email='miguelgrinberg50@gmail.com',
25-
description='Socket.IO server',
26-
long_description=long_description,
27-
long_description_content_type='text/markdown',
28-
packages=['socketio'],
29-
zip_safe=False,
30-
include_package_data=True,
31-
platforms='any',
32-
install_requires=[
33-
'bidict>=0.21.0',
34-
'python-engineio>=4.1.0',
35-
],
36-
extras_require={
37-
'client': [
38-
'requests>=2.21.0',
39-
'websocket-client>=0.54.0',
40-
],
41-
'asyncio_client': [
42-
'aiohttp>=3.4',
43-
'websockets>=7.0',
44-
]
45-
},
46-
tests_require=[
47-
'mock',
48-
],
49-
test_suite='tests' if sys.version_info >= (3, 0) else 'tests.common',
50-
classifiers=[
51-
'Environment :: Web Environment',
52-
'Intended Audience :: Developers',
53-
'License :: OSI Approved :: MIT License',
54-
'Operating System :: OS Independent',
55-
'Programming Language :: Python',
56-
'Programming Language :: Python :: 3',
57-
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
58-
'Topic :: Software Development :: Libraries :: Python Modules'
59-
]
60-
)
3+
setuptools.setup()

socketio/__init__.py renamed to src/socketio/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
AsyncRedisManager = None
2828
AsyncAioPikaManager = None
2929

30-
__version__ = '5.3.1dev'
31-
32-
__all__ = ['__version__', 'Client', 'Server', 'BaseManager', 'PubSubManager',
30+
__all__ = ['Client', 'Server', 'BaseManager', 'PubSubManager',
3331
'KombuManager', 'RedisManager', 'ZmqManager', 'KafkaManager',
3432
'Namespace', 'ClientNamespace', 'WSGIApp', 'Middleware']
3533
if AsyncServer is not None: # pragma: no cover
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)