Skip to content

Commit 94e3894

Browse files
committedNov 25, 2019
[package] move code to src directory
1 parent c95147e commit 94e3894

36 files changed

+38
-37
lines changed
 

‎.travis/script

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
set -e
44

55
if [ "$BUILD" = "lint" ]; then
6-
flake8 aiortc examples tests
7-
isort -c -df -rc aiortc examples tests
8-
black --check --diff aiortc examples tests
6+
flake8 examples src tests
7+
isort -c -df -rc examples src tests
8+
black --check --diff examples src tests
99
elif [ "$BUILD" = "sdist" ]; then
1010
python3 setup.py sdist
1111
if [ -n "$TRAVIS_TAG" ]; then

‎MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include LICENSE
22
recursive-include docs *.py *.rst Makefile
33
recursive-include examples *.html *.py *.rst *.wav
4-
recursive-include src *.py
4+
recursive-include src/_cffi_src *.py
55
recursive-include tests *.bin *.py

‎setup.py

+34-33
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,53 @@
33
import setuptools
44

55
root_dir = os.path.abspath(os.path.dirname(__file__))
6-
readme_file = os.path.join(root_dir, 'README.rst')
7-
with open(readme_file, encoding='utf-8') as f:
6+
readme_file = os.path.join(root_dir, "README.rst")
7+
with open(readme_file, encoding="utf-8") as f:
88
long_description = f.read()
99

1010
cffi_modules = [
11-
'src/_cffi_src/build_opus.py:ffibuilder',
12-
'src/_cffi_src/build_vpx.py:ffibuilder',
11+
"src/_cffi_src/build_opus.py:ffibuilder",
12+
"src/_cffi_src/build_vpx.py:ffibuilder",
1313
]
1414
install_requires = [
15-
'aioice>=0.6.15,<0.7.0',
16-
'attrs',
17-
'av>=6.2.0,<7.0.0',
18-
'cffi>=1.0.0',
19-
'crc32c',
20-
'cryptography>=2.2',
21-
'pyee>=6.0.0',
22-
'pylibsrtp>=0.5.6',
15+
"aioice>=0.6.15,<0.7.0",
16+
"attrs",
17+
"av>=6.2.0,<7.0.0",
18+
"cffi>=1.0.0",
19+
"crc32c",
20+
"cryptography>=2.2",
21+
"pyee>=6.0.0",
22+
"pylibsrtp>=0.5.6",
2323
]
2424

25-
if os.environ.get('READTHEDOCS') == 'True':
25+
if os.environ.get("READTHEDOCS") == "True":
2626
cffi_modules = []
27-
install_requires = list(filter(lambda x: not x.startswith('av'), install_requires))
27+
install_requires = list(filter(lambda x: not x.startswith("av"), install_requires))
2828

2929
setuptools.setup(
30-
name='aiortc',
31-
version='0.9.22',
32-
description='An implementation of WebRTC and ORTC',
30+
name="aiortc",
31+
version="0.9.22",
32+
description="An implementation of WebRTC and ORTC",
3333
long_description=long_description,
34-
url='https://github.com/aiortc/aiortc',
35-
author='Jeremy Lainé',
36-
author_email='jeremy.laine@m4x.org',
37-
license='BSD',
34+
url="https://github.com/aiortc/aiortc",
35+
author="Jeremy Lainé",
36+
author_email="jeremy.laine@m4x.org",
37+
license="BSD",
3838
classifiers=[
39-
'Development Status :: 5 - Production/Stable',
40-
'Environment :: Web Environment',
41-
'Intended Audience :: Developers',
42-
'License :: OSI Approved :: BSD License',
43-
'Operating System :: OS Independent',
44-
'Programming Language :: Python',
45-
'Programming Language :: Python :: 3',
46-
'Programming Language :: Python :: 3.5',
47-
'Programming Language :: Python :: 3.6',
48-
'Programming Language :: Python :: 3.7',
39+
"Development Status :: 5 - Production/Stable",
40+
"Environment :: Web Environment",
41+
"Intended Audience :: Developers",
42+
"License :: OSI Approved :: BSD License",
43+
"Operating System :: OS Independent",
44+
"Programming Language :: Python",
45+
"Programming Language :: Python :: 3",
46+
"Programming Language :: Python :: 3.5",
47+
"Programming Language :: Python :: 3.6",
48+
"Programming Language :: Python :: 3.7",
4949
],
5050
cffi_modules=cffi_modules,
51-
packages=['aiortc', 'aiortc.codecs', 'aiortc.contrib'],
52-
setup_requires=['cffi>=1.0.0'],
51+
package_dir={"": "src"},
52+
packages=["aiortc", "aiortc.codecs", "aiortc.contrib"],
53+
setup_requires=["cffi>=1.0.0"],
5354
install_requires=install_requires,
5455
)
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.

‎aiortc/rate.py ‎src/aiortc/rate.py

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.

‎aiortc/rtp.py ‎src/aiortc/rtp.py

File renamed without changes.

‎aiortc/sdp.py ‎src/aiortc/sdp.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.