-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ofek/modernize-metadata
Update package metadata
- Loading branch information
Showing
8 changed files
with
79 additions
and
158 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 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[build-system] | ||
requires = ["hatchling>=0.21.1", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "ensureconda" | ||
description = "Lightweight bootstrapper for a conda executable" | ||
readme = "README.md" | ||
license = "MIT" | ||
requires-python = ">=3.7" | ||
authors = [ | ||
{ name = "Marius van Niekerk", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT 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 :: 3.10", | ||
] | ||
dependencies = [ | ||
"appdirs", | ||
"click>=5.1", | ||
"filelock", | ||
"requests>=2", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/conda-incubator/ensureconda" | ||
|
||
[project.scripts] | ||
ensureconda = "ensureconda.cli:ensureconda_cli" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "src/python/ensureconda/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
"/.github", | ||
"/docs", | ||
"/news", | ||
"/src/golang", | ||
"/test", | ||
"/go.mod", | ||
"/go.sum", | ||
"/main.go", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/python/ensureconda"] | ||
|
||
[tool.pytest] | ||
flake8-max-line-length = 105 | ||
flake8-ignore = ["docs/*", "ALL"] | ||
|
||
[tool.isort] | ||
not_skip = ["__init__.py"] | ||
profile = "black" | ||
known_first_party = ["ensureconda"] |
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,9 +1,2 @@ | ||
import pkg_resources | ||
|
||
from ._version import version as __version__ | ||
from .api import ensureconda | ||
|
||
|
||
try: | ||
__version__ = pkg_resources.get_distribution("ensureconda").version | ||
except Exception: | ||
__version__ = "unknown" |
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,19 +1,20 @@ | ||
[tox] | ||
isolated_build = true | ||
envlist = | ||
py36, | ||
py37, | ||
py38, | ||
py39, | ||
py310, | ||
pypy3, | ||
|
||
[testenv] | ||
develop = true | ||
passenv = * | ||
deps = | ||
coverage | ||
pytest | ||
docker | ||
commands = | ||
python setup.py --quiet clean develop | ||
coverage run --parallel-mode -m pytest | ||
coverage combine --append | ||
coverage report -m |