Skip to content

Commit

Permalink
Fix package data inclusion rules
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Jul 9, 2022
1 parent 304b282 commit f920ce2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### [1.1.1] - 2022-07-09
#### Fixed
- fix missing type stubs

### [1.1.0] - 2022-07-04
#### Changed
- change src layout to make package import from root directory possible
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ include CMakeLists.txt
include README.md
include LICENSE
include pyproject.toml
include src/jarowinkler/*.pyi
include src/jarowinkler/py.typed

recursive-include src/jarowinkler CMakeLists.txt
recursive-include src/jarowinkler *.hpp *.pyx *.pxd *.cxx
recursive-include src/jarowinkler *.hpp *.pyx *.pxd *.cxx *.pyi
recursive-include tests *

include extern/jarowinkler-cpp/LICENSE
Expand Down
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def show_message(*lines):

setup_args = {
"name": "jarowinkler",
"version": "1.1.0",
"version": "1.1.1",
"url": "https://github.com/maxbachmann/JaroWinkler",
"author": "Max Bachmann",
"author_email": "[email protected]",
Expand All @@ -31,11 +31,8 @@ def show_message(*lines):
],

"packages": ["jarowinkler"],
"package_dir": {'jarowinkler': 'src/jarowinkler'},
"package_data": {"src/jarowinkler": [
"*.pyi",
"py.typed"
]},
"package_dir": {'': 'src'},
"package_data": {"jarowinkler": ["*.pyi", "py.typed"]},
"python_requires": ">=3.6"
}

Expand Down
2 changes: 1 addition & 1 deletion src/jarowinkler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__: str = "Max Bachmann"
__license__: str = "MIT"
__version__: str = "1.1.0"
__version__: str = "1.1.1"

def _fallback_import(module: str, name: str):
import importlib
Expand Down

0 comments on commit f920ce2

Please sign in to comment.