-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to `pyproject.toml` * `pytest` instead of `py.test` * run `black` * update build process in `pypi.yaml` (PEP518) * `pip install` before pre-commit check trying to see if this would resolve https://github.com/ArangoDB-Community/python-arango/actions/runs/6981788512/job/18999651142?pr=302 * revert 1f4d5f7 * add `args` to flake8 hook * bring back `setup.cfg` don't feel like fighting with https://github.com/ArangoDB-Community/python-arango/actions/runs/6981939895/job/19000084077?pr=302 * eof
- Loading branch information
Showing
5 changed files
with
81 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,81 @@ | ||
[build-system] | ||
requires = [ | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
normalize = true | ||
|
||
[project] | ||
name = "python-arango" | ||
description = "Python Driver for ArangoDB" | ||
authors = [ {name= "Joohwan Oh", email = "[email protected]" }] | ||
maintainers = [ | ||
{name = "Joohwan Oh", email = "[email protected]"}, | ||
{name = "Alexandru Petenchea", email = "[email protected]"}, | ||
{name = "Anthony Mahanna", email = "[email protected]"} | ||
] | ||
keywords = ["arangodb", "python", "driver"] | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.8" | ||
|
||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Documentation :: Sphinx", | ||
"Typing :: Typed", | ||
] | ||
|
||
dependencies = [ | ||
"urllib3>=1.26.0", | ||
"requests", | ||
"requests_toolbelt", | ||
"PyJWT", | ||
"setuptools>=42", | ||
"setuptools_scm[toml]>=6.2", | ||
"wheel", | ||
"importlib_metadata>=4.7.1", | ||
"packaging>=23.1", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black>=22.3.0", | ||
"flake8>=4.0.1", | ||
"isort>=5.10.1", | ||
"mypy>=0.942", | ||
"mock", | ||
"pre-commit>=2.17.0", | ||
"pytest>=7.1.1", | ||
"pytest-cov>=3.0.0", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"types-pkg_resources", | ||
"types-requests", | ||
"types-setuptools", | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
"arango" = ["py.typed"] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/ArangoDB-Community/python-arango" | ||
|
||
[tool.setuptools] | ||
packages = ["arango"] | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = "-s -vv -p no:warnings" | ||
minversion = "6.0" | ||
testpaths = ["tests"] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
|
@@ -16,16 +87,8 @@ omit = [ | |
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-s -vv -p no:warnings" | ||
minversion = "6.0" | ||
testpaths = ["tests"] | ||
|
||
[tool.mypy] | ||
warn_return_any = true | ||
warn_unused_configs = true | ||
ignore_missing_imports = true | ||
strict = true | ||
|
||
[tool.setuptools_scm] | ||
write_to = "arango/version.py" |
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,56 +1,3 @@ | ||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
with open("./README.md") as fp: | ||
long_description = fp.read() | ||
|
||
setup( | ||
name="python-arango", | ||
description="Python Driver for ArangoDB", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Joohwan Oh", | ||
author_email="[email protected]", | ||
url="https://github.com/ArangoDB-Community/python-arango", | ||
keywords=["arangodb", "python", "driver"], | ||
packages=find_packages(exclude=["tests"]), | ||
package_data={"arango": ["py.typed"]}, | ||
include_package_data=True, | ||
python_requires=">=3.8", | ||
license="MIT", | ||
install_requires=[ | ||
"urllib3>=1.26.0", | ||
"requests", | ||
"requests_toolbelt", | ||
"PyJWT", | ||
"setuptools>=42", | ||
"importlib_metadata>=4.7.1", | ||
"packaging>=23.1", | ||
], | ||
extras_require={ | ||
"dev": [ | ||
"black>=22.3.0", | ||
"flake8>=4.0.1", | ||
"isort>=5.10.1", | ||
"mypy>=0.942", | ||
"mock", | ||
"pre-commit>=2.17.0", | ||
"pytest>=7.1.1", | ||
"pytest-cov>=3.0.0", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"types-pkg_resources", | ||
"types-requests", | ||
"types-setuptools", | ||
], | ||
}, | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: Unix", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Documentation :: Sphinx", | ||
], | ||
) | ||
setup() |