Skip to content
Snippets Groups Projects
Commit a517315b authored by Michi Hostettler's avatar Michi Hostettler :coffee:
Browse files

include stubs - recursive!

parent c75a20ab
No related branches found
No related tags found
No related merge requests found
Pipeline #1706005 passed
__version__ = "0.2.1" __version__ = "0.2.2"
__cmmnbuild_deps__ = [ __cmmnbuild_deps__ = [
"log4j", "log4j",
......
...@@ -5,10 +5,9 @@ import ast ...@@ -5,10 +5,9 @@ import ast
import os import os
import setuptools import setuptools
REQUIREMENTS: dict = { REQUIREMENTS: dict = {
"core": ["cmmnbuild-dep-manager>=2.5.0,<2.6.0", "jpype1>=0.7.3,<0.8.0", "numpy"], "core": ["cmmnbuild-dep-manager>=2.5.0,<2.6.0", "jpype1>=0.7.3,<0.8.0", "numpy"],
"test": ["pytest",], "test": ["pytest", ],
} }
...@@ -20,6 +19,8 @@ def get_version_from_init(): ...@@ -20,6 +19,8 @@ def get_version_from_init():
return ast.literal_eval(line.split("=", 1)[1].strip()) return ast.literal_eval(line.split("=", 1)[1].strip())
ALL_PYI = [('*/' * depth) + '*.pyi' for depth in range(0, 10)]
VERSION = get_version_from_init() VERSION = get_version_from_init()
setuptools.setup( setuptools.setup(
...@@ -30,7 +31,7 @@ setuptools.setup( ...@@ -30,7 +31,7 @@ setuptools.setup(
author_email="inca-support@cern.ch", author_email="inca-support@cern.ch",
url="https://gitlab.cern.ch/scripting-tools/pjlsa", url="https://gitlab.cern.ch/scripting-tools/pjlsa",
packages=["pjlsa", "cern-stubs", "com-stubs", "java-stubs"], packages=["pjlsa", "cern-stubs", "com-stubs", "java-stubs"],
package_dir={"pjlsa": "pjlsa", "cern-stubs":"cern-stubs", "com-stubs":"com-stubs", "java-stubs":"java-stubs"}, package_dir={"pjlsa": "pjlsa", "cern-stubs": "cern-stubs", "com-stubs": "com-stubs", "java-stubs": "java-stubs"},
install_requires=REQUIREMENTS["core"], install_requires=REQUIREMENTS["core"],
extras_require={ extras_require={
**REQUIREMENTS, **REQUIREMENTS,
...@@ -48,5 +49,5 @@ setuptools.setup( ...@@ -48,5 +49,5 @@ setuptools.setup(
# Register with cmmnbuild_dep_manager. # Register with cmmnbuild_dep_manager.
"cmmnbuild_dep_manager": [f"pjlsa={VERSION}"], "cmmnbuild_dep_manager": [f"pjlsa={VERSION}"],
}, },
package_data={'cern-stubs': ['**/*.pyi','*.pyi'], 'java-stubs':['**/*.pyi','*.pyi'], 'com-stubs':['**/*.pyi','*.pyi']}, package_data={'cern-stubs': ALL_PYI, 'java-stubs': ALL_PYI, 'com-stubs': ALL_PYI},
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment