forked from jpype-project/jpype
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jpype-project#1133 from pelson/feature/pyproject
Make use of pyproject.toml for static project metadata
- Loading branch information
Showing
15 changed files
with
156 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,60 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[project] | ||
name = "JPype1" | ||
version = '1.5.0.dev0' | ||
authors = [ | ||
{name = "Steve Menard", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Luis Nell", email = "[email protected]"}, | ||
] | ||
description = "A Python to Java bridge" | ||
readme = "README.rst" | ||
requires-python = ">=3.7" | ||
license = {text = "License :: OSI Approved :: Apache Software License"} | ||
classifiers = [ | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Software Development', | ||
'Topic :: Scientific/Engineering', | ||
] | ||
dependencies = [ | ||
'packaging', | ||
'typing_extensions ; python_version< "3.8"', | ||
] | ||
|
||
|
||
[project.optional-dependencies] | ||
|
||
docs = [ | ||
'readthedocs-sphinx-ext', | ||
'sphinx', | ||
'sphinx-rtd-theme', | ||
] | ||
tests = [ | ||
"pytest", | ||
] | ||
|
||
|
||
[project.entry-points.pyinstaller40] | ||
"hook-dirs" = "jpype._pyinstaller.entry_points:get_hook_dirs" | ||
"tests" = "jpype._pyinstaller.entry_points:get_PyInstaller_tests" | ||
|
||
|
||
[project.urls] | ||
homepage = "https://github.com/jpype-project/jpype" | ||
|
||
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"_jpype", | ||
|
@@ -9,4 +66,3 @@ module = [ | |
"jedi.access", | ||
] | ||
ignore_missing_imports = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ | |
from setuptools import Extension | ||
from setuptools import setup | ||
|
||
# Add our setupext package to the path, and import it. | ||
sys.path.append(str(Path(__file__).parent)) | ||
import setupext | ||
|
||
if '--android' in sys.argv: | ||
|
@@ -36,9 +38,12 @@ | |
include_dirs=[Path('native', 'common', 'include'), | ||
Path('native', 'python', 'include'), | ||
Path('native', 'embedded', 'include')], | ||
sources=sorted(map(str, list(Path('native', 'common').glob('*.cpp')) + | ||
list(Path('native', 'python').glob('*.cpp')) + | ||
list(Path('native', 'embedded').glob('*.cpp')))), platform=platform, | ||
sources=sorted( | ||
list(Path('native', 'common').glob('*.cpp')) + | ||
list(Path('native', 'python').glob('*.cpp')) + | ||
list(Path('native', 'embedded').glob('*.cpp')) | ||
), | ||
platform=platform, | ||
)) | ||
jpypeJar = Extension(name="org.jpype", | ||
sources=sorted(map(str, Path("native", "java").glob("**/*.java"))), | ||
|
@@ -48,61 +53,25 @@ | |
|
||
|
||
setup( | ||
name='JPype1', | ||
version='1.5.1_dev0', | ||
description='A Python to Java bridge.', | ||
long_description=open('README.rst').read(), | ||
license='License :: OSI Approved :: Apache Software License', | ||
author='Steve Menard', | ||
author_email='[email protected]', | ||
maintainer='Luis Nell', | ||
maintainer_email='[email protected]', | ||
python_requires=">=3.7", | ||
url='https://github.com/jpype-project/jpype', | ||
# Non-standard, and extension behaviour of setup() - project information | ||
# should be put in pyproject.toml wherever possible. See also: | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration | ||
platforms=[ | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS', | ||
], | ||
classifiers=[ | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Software Development', | ||
'Topic :: Scientific/Engineering', | ||
], | ||
packages=['jpype', 'jpype._pyinstaller'], | ||
package_dir={'jpype': 'jpype', }, | ||
package_data={'jpype': ['*.pyi']}, | ||
install_requires=['typing_extensions ; python_version< "3.8"', | ||
'packaging'], | ||
tests_require=['pytest'], | ||
extras_require={ | ||
'tests': [ | ||
'pytest', | ||
], | ||
'docs': [ | ||
'readthedocs-sphinx-ext', | ||
'sphinx', | ||
'sphinx-rtd-theme', | ||
], | ||
}, | ||
cmdclass={ | ||
'build_ext': setupext.build_ext.BuildExtCommand, | ||
'develop': setupext.develop.Develop, | ||
'test_java': setupext.test_java.TestJavaCommand, | ||
'sdist': setupext.sdist.BuildSourceDistribution, | ||
'test': setupext.pytester.PyTest, | ||
}, | ||
zip_safe=False, | ||
ext_modules=[jpypeJar, jpypeLib, ], | ||
distclass=setupext.dist.Distribution, | ||
entry_points={ | ||
'pyinstaller40': [ | ||
'hook-dirs = jpype._pyinstaller.entry_points:get_hook_dirs', | ||
'tests = jpype._pyinstaller.entry_points:get_PyInstaller_tests', | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.