Skip to content

Commit bf37732

Browse files
Improved project structure
1 parent a6c8f1d commit bf37732

26 files changed

+46
-57
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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[metadata]
2+
name = python-engineio
3+
version = 4.2.1.dev0
4+
author = Miguel Grinberg
5+
author_email = [email protected]
6+
description = Engine.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-engineio
10+
project_urls =
11+
Bug Tracker = https://github.com/miguelgrinberg/python-engineio/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+
28+
[options.packages.find]
29+
where = src
30+
31+
[options.extras_require]
32+
client =
33+
requests >= 2.21.0
34+
websocket-client >= 0.54.0
35+
asyncio_client =
36+
aiohttp >= 3.4

setup.py

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
"""
2-
python-engineio
3-
---------------
1+
import setuptools
42

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

0 commit comments

Comments
 (0)