-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate packaging from setup.py to pyproject.toml #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f70a509
Migrate to pyproject.toml
janhoy 8b72261
Merge branch 'main' into migrate-to-pyproject-toml
janhoy b179c50
Remove stale setup.py reference from MANIFEST.in
janhoy bcb6b9e
Fix Copilot review comments and pytest-benchmark compatibility
janhoy 6c7ef4a
Remove stale setup.py references from .coveragerc and run.sh
janhoy b5308e2
Enforce tox>=4 in Makefile even when tox is already installed
janhoy d903445
Remove reference to non-existent integ-tests.yml from PYTHON_SUPPORT_…
janhoy 4f84b64
Document intentional pytest-benchmark upgrade from 3.2.2 to >=4.0.0
janhoy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,6 +3,5 @@ omit = | |
| # omit everything in /usr | ||
| /usr/local/lib/python* | ||
| tests/* | ||
| setup.py | ||
|
|
||
| branch = True | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,215 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools>=68", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "solr-orbit" | ||
| dynamic = ["version"] | ||
| description = "Macrobenchmarking framework for Apache Solr" | ||
| readme = {file = "README.md", content-type = "text/markdown"} | ||
| license = {text = "Apache License, Version 2.0"} | ||
|
janhoy marked this conversation as resolved.
|
||
| requires-python = ">=3.12,<3.14" | ||
| classifiers = [ | ||
| "Topic :: System :: Benchmark", | ||
| "Development Status :: 5 - Production/Stable", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: MacOS :: MacOS X", | ||
| "Operating System :: POSIX", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| ] | ||
| dependencies = [ | ||
| # License: BSD | ||
| # Solr HTTP client for data operations (indexing, search, commit, optimize) | ||
| "pysolr>=3.10.0", | ||
| # License: Apache 2.0 | ||
| # HTTP client for Solr V2 API admin operations | ||
| # transitive dependencies: | ||
| # urllib3: MIT | ||
| "requests>=2.28.0", | ||
| # License: BSD | ||
| "psutil>=5.8.0", | ||
| # License: MIT | ||
| "py-cpuinfo>=7.0.0", | ||
| # License: MIT | ||
| "tabulate>=0.9.0", | ||
| # License: MIT | ||
| "jsonschema>=3.1.1", | ||
| # License: BSD | ||
| "Jinja2>=3.1.3", | ||
| # License: BSD | ||
| "markupsafe>=2.0.1", | ||
| # License: MIT | ||
| # With 3.10.7, we get InvalidActorAddress exception while initialize Actor | ||
| "thespian>=3.10.1,<3.10.7", | ||
| # always use the latest version, these are certificate files... | ||
| # License: MPL 2.0 | ||
| "certifi", | ||
| # License: Apache 2.0 | ||
| "yappi>=1.4.0", | ||
| # License: BSD | ||
| "ijson>=2.6.1", | ||
| # License: Apache 2.0 | ||
| # transitive dependencies: | ||
| # google-crc32c: Apache 2.0 | ||
| "google-resumable-media>=1.1.0", | ||
| # License: Apache 2.0 | ||
| "google-auth>=1.22.1", | ||
| # License: MIT | ||
| "wheel>=0.38.4", | ||
| # License: Apache 2.0 | ||
| # transitive dependencies: | ||
| # botocore: Apache 2.0 | ||
| # jmespath: MIT | ||
| # s3transfer: Apache 2.0 | ||
| "boto3>=1.28.62", | ||
| # Licence: BSD-3-Clause | ||
| "zstandard>=0.22.0", | ||
| # License: BSD | ||
| # Required for knnvector workload | ||
| "h5py>=3.10.0", | ||
| # License: BSD | ||
| # Required for knnvector workload | ||
| "numpy>=1.24.2,<=1.26.4", | ||
| # License: MIT | ||
| "tqdm", | ||
| # License: MIT | ||
| "faker", | ||
| # License: BSD | ||
| "pandas>=1.4.3", | ||
| # License: MIT | ||
| "mimesis==11.1.0", | ||
| # Licence: BSD-3-Clause | ||
| "dask", | ||
| # Licence: BSD-3-Clause | ||
| "dask[distributed]", | ||
| # Licence: BSD-3-Clause | ||
| "bokeh!=3.0.*,>=2.4.2", | ||
| # License: MIT | ||
| "pydantic>=2.10.6", | ||
| # License: MIT | ||
| "pydantic_core>=2.27.2", | ||
| # License: MIT | ||
| "PyYAML>=5.4", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/apache/solr-orbit" | ||
|
|
||
| [project.scripts] | ||
| solr-orbit = "osbenchmark.benchmark:main" | ||
| solr-orbitd = "osbenchmark.benchmarkd:main" | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "ujson", | ||
| "pytest==7.2.2", | ||
| # Upgraded from 3.2.2: py.io.TerminalWriter was removed in py 1.11+, | ||
| # making 3.x incompatible with Python 3.12. 4.0+ dropped the py dependency. | ||
| "pytest-benchmark>=4.0.0", | ||
| "pytest-asyncio==0.14.0", | ||
| ] | ||
| develop = [ | ||
| "ujson", | ||
| "pytest==7.2.2", | ||
| # Upgraded from 3.2.2: py.io.TerminalWriter was removed in py 1.11+, | ||
| # making 3.x incompatible with Python 3.12. 4.0+ dropped the py dependency. | ||
| "pytest-benchmark>=4.0.0", | ||
|
janhoy marked this conversation as resolved.
janhoy marked this conversation as resolved.
|
||
| "pytest-asyncio==0.14.0", | ||
| "tox>=4.0", | ||
| "coverage==5.5", | ||
| "twine==6.0.1", | ||
|
janhoy marked this conversation as resolved.
|
||
| "wheel>=0.38.4", | ||
| "github3.py==1.3.0", | ||
| "pylint==3.3.9", | ||
| ] | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Setuptools configuration | ||
| # --------------------------------------------------------------------------- | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
| script-files = ["scripts/expand-data-corpus.py"] | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["."] | ||
| exclude = ["tests*", "benchmarks*", "it*"] | ||
|
|
||
| [tool.setuptools.package-data] | ||
| "*" = ["*.json", "*.yml"] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {file = "version.txt"} | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # pytest | ||
| # --------------------------------------------------------------------------- | ||
|
|
||
| [tool.pytest.ini_options] | ||
| log_cli = false | ||
| log_level = "INFO" | ||
| addopts = "--verbose --color=yes" | ||
| testpaths = ["tests"] | ||
| junit_family = "xunit2" | ||
| junit_logging = "all" | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # tox | ||
| # --------------------------------------------------------------------------- | ||
|
|
||
| [tool.tox] | ||
| legacy_tox_ini = """ | ||
| [tox] | ||
| envlist = | ||
| py312,py313 | ||
| platform = | ||
| linux|darwin | ||
|
|
||
| [testenv] | ||
| deps= | ||
| pytest | ||
| passenv = | ||
| HOME | ||
| JAVA*_HOME | ||
| BENCHMARK_HOME | ||
| SSH_AUTH_SOCK | ||
| THESPLOG_FILE | ||
| THESPLOG_FILE_MAXSIZE | ||
| THESPLOG_THRESHOLD | ||
| # we do not pass LANG and LC_ALL anymore in order to isolate integration tests | ||
| # from the test environment. OSBenchmark needs to enforce UTF-8 encoding in every | ||
| # place so we intentionally set LC_ALL to C. | ||
| setenv = | ||
| LC_ALL=C | ||
| # According to http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html | ||
| # LC_ALL should have priority but to ensure that non-confirming | ||
| # applications behave identically, we also set LANG explicitly. | ||
| LANG=C | ||
| commands = | ||
| python -V | ||
| pytest -s it --junitxml=junit-{envname}-it.xml | ||
|
|
||
| allowlist_externals = | ||
| pytest | ||
| """ | ||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.