-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setuptools to install dependency (#56)
* Add setuptools to install dependency * Update min python version * Add pyproject and revise setup * drop url pyproject * restore test env * fix pyproject * Revise toml * Revise order of rules * Removing older requirements file * Drop duplicated github release * Implement dynamic versioning pyproject * Revise path of VERSION file
- Loading branch information
Showing
11 changed files
with
160 additions
and
153 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
include LICENSE | ||
include HISTORY.md | ||
include requirements | ||
graft tests | ||
graft earth_osm |
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,4 +1,10 @@ | ||
import logging | ||
import os | ||
|
||
logging.basicConfig(level=logging.INFO) # Basic configuration | ||
logger = logging.getLogger('eo') | ||
logger = logging.getLogger('eo') | ||
|
||
# specify version | ||
fp_version = os.path.join(os.path.dirname(__file__), "VERSION") | ||
with open(fp_version) as f: | ||
__version__ = f.read().strip() |
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,101 @@ | ||
[build-system] | ||
requires = ["pip", "setuptools>=64", "setuptools-scm", "wheel", "twine"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "earth_osm" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name="pypsa-meets-earth" }, | ||
] | ||
description = "Python tool to extract large-amounts of OpenStreetMap data" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {text = "MIT License"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"geopandas", | ||
"pandas", | ||
"tqdm", | ||
"requests", | ||
"protobuf>=4.21.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pypsa-meets-earth/earth-osm/" | ||
Issues = "https://github.com/pypsa-meets-earth/earth-osm/issues" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest", | ||
"coverage", | ||
"flake8", | ||
"black", | ||
"isort", | ||
"pytest-cov", | ||
"codecov", | ||
"mypy>=0.9", | ||
"gitchangelog", | ||
"mkdocs", | ||
"osmium", | ||
] | ||
docs = [ | ||
"lazydocs", | ||
"mkdocs", | ||
"mkdocs-material", | ||
"mkdocs-awesome-pages-plugin", | ||
"mkdocstrings[python]", | ||
"markdown-include", | ||
] | ||
|
||
[console_scripts] | ||
earth_osm = "earth_osm.__main__:main" | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "no-guess-dev" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["earth-osm"] | ||
|
||
[tool.setuptools.package-data] | ||
"earth_osm" = ["py.typed"] | ||
|
||
# Pytest settings | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = [ | ||
"error::DeprecationWarning", # Raise all DeprecationWarnings as errors | ||
"error::FutureWarning", # Raise all FutureWarnings as errors | ||
] | ||
|
||
# Coverage settings | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["earth_osm"] | ||
omit = ["test/*"] | ||
[tool.coverage.report] | ||
exclude_also = [ | ||
"if TYPE_CHECKING:", | ||
] | ||
|
||
# Static type checker settings | ||
[tool.mypy] | ||
exclude = ['dev/*', 'examples/*', 'docs/*'] | ||
ignore_missing_imports = true | ||
no_implicit_optional = true | ||
warn_unused_ignores = true | ||
show_error_code_links = true | ||
|
||
|
||
[[tool.mypy.overrides]] | ||
module = "earth_osm.*" | ||
disallow_untyped_defs = true | ||
check_untyped_defs = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.