Skip to content

Commit 01823ef

Browse files
authored
PEP-561 compatibility
1 parent 3d411a3 commit 01823ef

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
include growthbook.py
1+
include growthbook/*.py
22
include setup.py
33
include README.md
44
include LICENSE
5-
include tests/*.py
5+
include tests/*.py
6+
include growthbook/py.typed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ clean-test: ## remove test and coverage artifacts
4747
rm -fr .pytest_cache
4848

4949
lint: ## check style with flake8
50-
flake8 growthbook.py --max-line-length=150
50+
flake8 growthbook/growthbook.py --max-line-length=150
5151

5252
type-check:
53-
mypy growthbook.py --implicit-optional
53+
mypy growthbook/growthbook.py --implicit-optional
5454

5555
test: ## run tests quickly with the default Python
5656
pytest

growthbook/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .growthbook import *
File renamed without changes.

growthbook/py.typed

Whitespace-only changes.

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
from setuptools import setup
3+
from setuptools import setup, find_packages
44
from os import path
55

66
this_directory = path.abspath(path.dirname(__file__))
@@ -37,9 +37,11 @@
3737
install_requires=requirements,
3838
license="MIT",
3939
include_package_data=True,
40+
packages=find_packages(),
41+
package_data={"growthbook": ["py.typed"]},
4042
keywords='growthbook',
4143
py_modules=['growthbook'],
42-
scripts=['growthbook.py'],
44+
scripts=['growthbook/growthbook.py'],
4345
test_suite='tests',
4446
tests_require=test_requirements,
4547
url='https://github.com/growthbook/growthbook-python',

0 commit comments

Comments
 (0)