Skip to content

Commit

Permalink
Improved project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 7, 2021
1 parent a6c8f1d commit bf37732
Show file tree
Hide file tree
Showing 26 changed files with 46 additions and 57 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
36 changes: 36 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[metadata]
name = python-engineio
version = 4.2.1.dev0
author = Miguel Grinberg
author_email = miguel.grinberg@gmail.com
description = Engine.IO server and client for Python
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/miguelgrinberg/python-engineio
project_urls =
Bug Tracker = https://github.com/miguelgrinberg/python-engineio/issues
classifiers =
Environment :: Web Environment
Intended Audience :: Developers
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
zip_safe = False
include_package_data = True
package_dir =
= src
packages = find:
python_requires = >=3.6
install_requires =

[options.packages.find]
where = src

[options.extras_require]
client =
requests >= 2.21.0
websocket-client >= 0.54.0
asyncio_client =
aiohttp >= 3.4
58 changes: 2 additions & 56 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,57 +1,3 @@
"""
python-engineio
---------------
import setuptools

Engine.IO server.
"""
import re
import sys
from setuptools import setup


with open('engineio/__init__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)

with open('README.md', 'r') as f:
long_description = f.read()

setup(
name='python-engineio',
version=version,
url='http://github.com/miguelgrinberg/python-engineio/',
license='MIT',
author='Miguel Grinberg',
author_email='miguelgrinberg50@gmail.com',
description='Engine.IO server',
long_description=long_description,
long_description_content_type='text/markdown',
packages=['engineio', 'engineio.async_drivers'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[],
extras_require={
'client': [
'requests>=2.21.0',
'websocket-client>=0.54.0',
],
'asyncio_client': [
'aiohttp>=3.4',
]
},
tests_require=[
'eventlet',
],
test_suite='tests',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ python =

[testenv]
commands=
pip install -e .
pytest -p no:logging --cov=engineio --cov-branch --cov-report=term-missing
deps=
pytest
Expand All @@ -28,7 +29,7 @@ deps=
deps=
flake8
commands=
flake8 --exclude=".*" --ignore=W503,E402,E722 engineio tests
flake8 --exclude=".*" --ignore=W503,E402,E722 src/engineio tests

[testenv:docs]
changedir=docs
Expand Down

0 comments on commit bf37732

Please sign in to comment.