-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate to pyproject #117
migrate to pyproject #117
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
authors: | ||
- dependabot | ||
categories: | ||
- title: Bug Fixes | ||
labels: | ||
- bug | ||
- title: Enhancements | ||
labels: | ||
- enhancement | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
codecov: | ||
notify: | ||
after_n_builds: 7 | ||
coverage: | ||
range: 50..95 | ||
round: nearest | ||
precision: 1 | ||
status: | ||
project: | ||
default: | ||
threshold: 5% | ||
patch: | ||
default: | ||
threshold: 20% | ||
target: 60% | ||
ignore: | ||
- "tests/*" | ||
comment: | ||
layout: "reach, diff, files" | ||
behavior: once | ||
after_n_builds: 7 | ||
require_changes: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: pointpats | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- pandas | ||
- libpysal | ||
- matplotlib | ||
- pandas | ||
- scipy>=0.11 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
|
||
[project] | ||
name = "pointpats" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name = "Serge Rey", email = "sjsrey@gmail.com" }, | ||
{ name = "Hu Shao", email = "shaohutiger@gmail.com" }, | ||
] | ||
maintainers = [{ name = "pysal contributors" }] | ||
license = { text = "BSD 3-Clause" } | ||
description = "Methods and Functions for planar point pattern analysis" | ||
keywords = [ | ||
"spatial statistics, point patterns" | ||
] | ||
readme = { text = """\ | ||
"Methods and Functions for planar point pattern analysis" | ||
|
||
""", content-type = "text/x-rst" } | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"numpy", | ||
"pandas", | ||
"scipy >=1.8", | ||
"libpysal >=4", | ||
"matplotlib" | ||
] | ||
|
||
[project.urls] | ||
Home = "https://github.com/pysal/pointpats/" | ||
Repository = "https://github.com/pysal/pointpats" | ||
|
||
[project.optional-dependencies] | ||
dev = ["pre-commit"] | ||
docs = [ | ||
"nbsphinx", | ||
"numpydoc", | ||
"pandoc", | ||
"sphinx", | ||
"sphinxcontrib-bibtex", | ||
"sphinx_bootstrap_theme", | ||
"mkdocs-jupyter", | ||
"myst-parser" | ||
] | ||
tests = [ | ||
"geopandas", | ||
"codecov", | ||
"coverage", | ||
"pytest", | ||
"pytest-mpl", | ||
"pytest-cov", | ||
"watermark", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["pointpats", "pointpats.*"] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
|
||
[tool.ruff] | ||
line-length = 88 | ||
select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"] | ||
target-version = "py39" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should technically be |
||
ignore = [ | ||
"B006", | ||
"B008", | ||
"B009", | ||
"B010", | ||
"C408", | ||
"E731", | ||
"F401", | ||
"F403", | ||
"N803", | ||
"N806", | ||
"N999", | ||
"UP007" | ||
] | ||
exclude = ["pointpats/tests/*", "docs/*"] | ||
|
||
[tool.coverage.run] | ||
source = ["./pointpats"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"if self.debug:", | ||
"pragma: no cover", | ||
"raise NotImplementedError", | ||
"except ModuleNotFoundError:", | ||
"except ImportError", | ||
] | ||
ignore_errors = true | ||
omit = ["pointpats/tests/*", "docs/conf.py"] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also drop
3.8
, but that can be in another PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wasnt sure how to set this. Is that what we chose for all the other packages? I figure the minimum supported version isnt the same thing as the minimum required version, and this will probably run on python 3.6+ if i had to guess, so didnt want to force a more recent version, even if its technically unsupported
basically im worried that if we set this too high, it will cause unnecessary install failures, when we should allow people to install unsupported versions if they want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just follow SPEC0. Then we don't need to have these discussions.