-
Notifications
You must be signed in to change notification settings - Fork 4
Migrate to pyproject.toml and hatchling #6
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
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4456a12
Update maintainer info
JoshMock 9501d8c
Add a pyproject.toml
JoshMock cb2b023
Migrate setup.cfg into pyproject.toml
JoshMock 4f0c1d6
Drop unneeded setup.py
JoshMock 18bfb72
YAML linter fix
JoshMock 9801cc9
pyproject.toml cleanup
JoshMock 55e4190
Don't try to lint pyproject.toml
JoshMock 105e571
Drop automation for version-bumping
JoshMock 9b51c74
Make version static
JoshMock e49b7a8
Drop dev-requirements.txt
JoshMock 96e5519
Get docs builds running correctly
JoshMock f108a36
Drop unneeded python version from RTD config
JoshMock 16c972f
Drop unneeded pre-install job for RTD
JoshMock b5600f9
Migrate MANIFEST.in rules into pyproject.toml
JoshMock f2e091d
Update docs/sphinx/conf.py
JoshMock 177e9ab
Update docs/sphinx/index.rst
JoshMock 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
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
--- | ||
version: 2 | ||
sphinx: | ||
configuration: docs/sphinx/conf.py | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
|
||
python: | ||
version: "3.7" | ||
install: | ||
- requirements: dev-requirements.txt | ||
- path: . | ||
extra_requirements: | ||
- "docs" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,111 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "elasticsearch-serverless" | ||
version = "0.1.0" | ||
description = "Python client for Elasticsearch Serverless" | ||
readme = "README.rst" | ||
license = "Apache-2.0" | ||
requires-python = ">=3.7, <4" | ||
authors = [ | ||
{ name = "Elastic Clients Team", email = "clients-team@elastic.co" }, | ||
] | ||
maintainers = [ | ||
{ name = "Elastic Clients Team", email = "clients-team@elastic.co" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
keywords = [ | ||
"elasticsearch", | ||
"elastic", | ||
"kibana", | ||
"mapping", | ||
"REST", | ||
"search", | ||
"client", | ||
"index", | ||
] | ||
dependencies = [ | ||
"elastic-transport>=8,<9", | ||
] | ||
|
||
[project.optional-dependencies] | ||
async = [ | ||
"aiohttp>=3,<4", | ||
] | ||
requests = [ | ||
"requests>=2.4.0, <3.0.0", | ||
] | ||
dev = [ | ||
"requests>=2, <3", | ||
"aiohttp", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-asyncio", | ||
"coverage", | ||
"jinja2", | ||
"python-dateutil", | ||
"unasync", | ||
"pyyaml>=5.4", | ||
"isort", | ||
"black", | ||
"twine", | ||
"build", | ||
"nox", | ||
"numpy", | ||
"pandas", | ||
"mapbox-vector-tile", | ||
] | ||
docs = [ | ||
"sphinx-rtd-theme>=1.2.2", | ||
"sphinx-autodoc-typehints", | ||
"sphinx==6.2.1", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://elasticsearch-serverless-python.readthedocs.io" | ||
Homepage = "https://github.com/elastic/elasticsearch-serverless-python" | ||
"Issue Tracker" = "https://github.com/elastic/elasticsearch-serverless-python/issues" | ||
"Source Code" = "https://github.com/elastic/elasticsearch-serverless-python" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/elasticsearch_serverless", | ||
"/CHANGELOG.md", | ||
"/CONTRIBUTING.md", | ||
"/LICENSE", | ||
"/NOTICE", | ||
"/README.rst", | ||
"/setup.cfg", | ||
"/docs/sphinx", | ||
] | ||
|
||
[tool.pytest] | ||
junit_family = "legacy" | ||
addopts = "-vvv -p no:logging --cov-report=term-missing --cov=elasticsearch_serverless --cov-config=.pyproject.toml" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"raise NotImplementedError*", | ||
] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,2 @@ | ||
[flake8] | ||
ignore = E203, E266, E501, W503 | ||
|
||
[tool:pytest] | ||
junit_family=legacy | ||
addopts = -vvv -p no:logging --cov-report=term-missing --cov=elasticsearch --cov-config=.coveragerc | ||
|
||
[tool:isort] | ||
profile=black | ||
|
||
[report] | ||
exclude_lines= | ||
raise NotImplementedError* | ||
|
||
[mypy] | ||
ignore_missing_imports = True |
This file was deleted.
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.