-
Notifications
You must be signed in to change notification settings - Fork 15
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 #75 from sfinkens/pyproject-toml
Switch to pyproject.toml
- Loading branch information
Showing
7 changed files
with
51 additions
and
2,920 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[project] | ||
|
||
name = "trollsift" | ||
description = "String parser/formatter" | ||
readme = "README.rst" | ||
authors = [ | ||
{ name = "The Pytroll Team", email = "[email protected]" } | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Scientific/Engineering" | ||
] | ||
keywords = ["string parsing", "string formatting", "pytroll"] | ||
requires-python = ">=3.6" | ||
dependencies = [] | ||
dynamic = ["version"] | ||
|
||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["trollsift"] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "trollsift/version.py" | ||
|
||
[tool.coverage.run] | ||
relative_files = true | ||
omit = ["trollsift/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,6 +1,10 @@ | ||
|
||
from .parser import * | ||
|
||
from .version import get_versions | ||
__version__ = get_versions()['version'] | ||
del get_versions | ||
try: | ||
from trollsift.version import version as __version__ # noqa | ||
except ModuleNotFoundError: # pragma: no cover | ||
raise ModuleNotFoundError( | ||
"No module named trollsift.version. This could mean " | ||
"you didn't install 'trollsift' properly. Try reinstalling ('pip " | ||
"install').") |
Oops, something went wrong.