-
Notifications
You must be signed in to change notification settings - Fork 0
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` * cleanup * fix mypy
- Loading branch information
Showing
8 changed files
with
74 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,16 +1,77 @@ | ||
# pyproject.toml | ||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = "-ra -q" | ||
testpaths = [ | ||
"tests" | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
normalize = true | ||
|
||
[project] | ||
name = "arango_datasets" | ||
description = "Package for fetching and loading datasets for ArangoDB deployments." | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
requires-python = ">=3.8" | ||
|
||
|
||
authors = [{name = "Christopher Woodward", email = "[email protected]"}] | ||
|
||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
dependencies = ["python-arango>=7.4.1", "requests>=2.28.1", "rich>=12.6.0"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"bandit>=1.7.4", | ||
"black>=22.10.0", | ||
"flake8>=5.0.4", | ||
"Flake8-pyproject", | ||
"isort>=5.10.1", | ||
"mypy>=0.982", | ||
"pre-commit>=2.20.0", | ||
"pytest>=7.1.3", | ||
"pytest-cov>=4.0.0", | ||
"sphinx>=5.3.0", | ||
"types-requests>=2.28.11.2", | ||
"types-setuptools>=65.5.0.1", | ||
] | ||
|
||
[tool.black] | ||
line-length=88 | ||
[project.urls] | ||
"Homepage" = "https://github.com/arangoml/arangodb_datasets" | ||
|
||
[tool.setuptools] | ||
packages = ["arango_datasets"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-s -vv" | ||
minversion = "6.0" | ||
testpaths = ["tests"] | ||
|
||
[tool.coverage.report] | ||
omit = ["*tests*"] | ||
|
||
[tool.coverage.run] | ||
omit = ["*tests*"] | ||
omit = ["*tests*"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.flake8] | ||
max-line-length = 88 | ||
extend-ignore = ["E203", "W503", "E251"] | ||
exclude = [".git", ".idea", ".*_cache", "dist", "venv"] | ||
|
||
[tool.mypy] | ||
strict = true | ||
ignore_missing_imports = true | ||
implicit_reexport = true | ||
scripts_are_modules = true | ||
follow_imports = "skip" | ||
disallow_subclassing_any = false | ||
disallow_untyped_decorators = false |
This file was deleted.
Oops, something went wrong.
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,61 +1,3 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
"""The setup script.""" | ||
|
||
from setuptools import find_packages, setup | ||
|
||
with open("HISTORY.rst") as history_file: | ||
history = history_file.read() | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
install_requirements = ["python-arango>=7.4.1", "requests>=2.28.1", "rich>=12.6.0"] | ||
|
||
|
||
dev_requirements = [ | ||
"bandit>=1.7.4", | ||
"black>=22.10.0", | ||
"flake8>=5.0.4", | ||
"isort>=5.10.1", | ||
"mypy>=0.982", | ||
"pre-commit>=2.20.0", | ||
"pytest>=7.1.3", | ||
"pytest-cov>=4.0.0", | ||
"sphinx>=5.3.0", | ||
"types-requests>=2.28.11.2", | ||
"types-setuptools>=65.5.0.1", | ||
] | ||
|
||
setup( | ||
name="arango_datasets", | ||
version="1.1.2", | ||
author="Chris Woodward", | ||
author_email="[email protected]", | ||
description="Package for fetching and loading datasets for ArangoDB deployments.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/cw00dw0rd/arango_datasets", | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/cw00dw0rd/arango_datasets", | ||
}, | ||
python_requires=">=3.8", | ||
classifiers=[ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
], | ||
license="Apache Software License 2.0", | ||
keywords="arango_datasets", | ||
package_dir={"arango_datasets": "arango_datasets"}, | ||
packages=find_packages(include=["arango_datasets", "arango_datasets.*"]), | ||
include_package_data=True, | ||
# ----- | ||
install_requires=install_requirements, | ||
test_suite="tests", | ||
extras_require={"dev": dev_requirements}, | ||
zip_safe=False, | ||
) | ||
setup() |