-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removes the old setup.[py,cfg] in favour of a modern pyproject.toml - Remove Tox in favour of Hatch
- Loading branch information
Showing
12 changed files
with
114 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.tox/ | ||
.hatch/ | ||
db_testtools.egg-info/ | ||
__pycache__/ | ||
*.pyc | ||
dbtesttools/_version.py | ||
dist/ |
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,23 +1,28 @@ | ||
{ | ||
"python.pythonPath": "${workspaceFolder}/.tox/py3/bin/python3", | ||
"python.formatting.provider": "black", | ||
"python.formatting.blackArgs": [ | ||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
} | ||
}, | ||
"black-formatter.args": [ | ||
"--line-length", | ||
"79" | ||
], | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true, | ||
"python.testing.pytestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.unittestEnabled": true, | ||
"files.watcherExclude": { | ||
"**/.coverage/**": true, | ||
"**/.eggs": true, | ||
"**/.stestr/**": true, | ||
"**/.testrepository/**": true, | ||
"**/.tox/**": true | ||
"${workspaceFolder}/build/**": true, | ||
"**/.hatch/**": true | ||
}, | ||
"git.allowForcePush": true, | ||
"editor.wordWrapColumn": 79, | ||
"vim.textwidth": 79, | ||
"githubPullRequests.defaultMergeMethod": "rebase" | ||
} | ||
|
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,83 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "db-testtools" | ||
dynamic = ["version"] | ||
readme = "README.rst" | ||
license = "Apache-2.0" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Julian Edwards", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "Julian Edwards", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Framework :: Hatch", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Natural Language :: English", | ||
"Operating System :: POSIX :: Linux", | ||
"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 :: Utilities", | ||
] | ||
urls.Source = "https://github.com/juledwar/db-testtools" | ||
|
||
dependencies = [ | ||
"docker>=5.0.2", | ||
"fixtures>=3.0.0", | ||
"psycopg2-binary>=2.9.1", | ||
"retry>=0.9.2", | ||
"sqlalchemy>=1.4.23", | ||
"testresources>=2.0.1", | ||
] | ||
[project.optional-dependencies] | ||
test = [ | ||
"build>=0.7.0", | ||
"coverage[toml]>=6.0.2", | ||
"ipython>=7.28.0", | ||
"pdbpp>=0.10.3", | ||
"ruff>=0.5.3", | ||
"stestr>=3.2.1", | ||
"testscenarios>=0.5.0", | ||
"testtools>=2.5.0", | ||
"twine>=3.4.2", | ||
|
||
] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
[tool.hatch.build.hooks.vcs] | ||
version-file = "dbtesttools/_version.py" | ||
[tool.hatch.build.targets.sdist] | ||
include = ["/dbtesttools"] | ||
exclude = ["tests"] | ||
|
||
[tool.hatch.envs.default] | ||
path = ".hatch" | ||
features = ["test"] | ||
|
||
scripts.formatcheck = [ | ||
"ruff format --check dbtesttools", | ||
"ruff check --select I --show-fixes dbtesttools" | ||
] | ||
scripts.format = [ | ||
"ruff check --select I --fix-only --show-fixes dbtesttools", | ||
"ruff format dbtesttools", | ||
] | ||
scripts.ci = ["formatcheck"] | ||
scripts.testpypi = ["twine upload --repository testpypi {args}"] | ||
scripts.pypi = ["twine upload --repository pypi {args}"] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
'*dbtesttools/tests*', | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.