Skip to content

Commit

Permalink
[package] move source code to src
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Nov 2, 2019
1 parent 9b08cc7 commit 157437f
Show file tree
Hide file tree
Showing 33 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .travis/script
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
set -e

if [ "$BUILD" = "lint" ]; then
flake8 aioquic examples tests
isort -c -df -rc aioquic examples tests
black --check --diff aioquic examples tests
mypy aioquic examples
flake8 examples src tests
isort -c -df -rc examples src tests
black --check --diff examples src tests
mypy examples src
elif [ "$BUILD" = "sdist" ]; then
python3 setup.py sdist
if [ -n "$TRAVIS_TAG" ]; then
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
"Topic :: Internet :: WWW/HTTP",
],
ext_modules=[
setuptools.Extension("aioquic._buffer", sources=["src/_buffer.c"]),
setuptools.Extension("aioquic._buffer", sources=["src/aioquic/_buffer.c"]),
setuptools.Extension(
"aioquic._crypto", libraries=["crypto"], sources=["src/_crypto.c"]
"aioquic._crypto", libraries=["crypto"], sources=["src/aioquic/_crypto.c"]
),
],
package_data={"aioquic": ["py.typed"]},
package_dir={"": "src"},
package_data={"aioquic": ["py.typed", "_buffer.pyi", "_crypto.pyi"]},
packages=["aioquic", "aioquic.asyncio", "aioquic.h0", "aioquic.h3", "aioquic.quic"],
install_requires=[
"cryptography >= 2.5",
Expand Down
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.
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.

0 comments on commit 157437f

Please sign in to comment.