Skip to content

Commit

Permalink
Merge pull request #18 from ocefpaf/modern_template
Browse files Browse the repository at this point in the history
modern_template
  • Loading branch information
callumrollo authored Mar 15, 2023
2 parents 7670e3c + 4c8ef79 commit ce9a615
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 66 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
cmcrameri.egg-info
venv
.eggs
cmcrameri/_version.py
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ repos:
args:
- --ignore-words-list=buda

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.9.1"
hooks:
- id: pyproject-fmt

- repo: https://github.com/aio-libs/sort-all
rev: "v1.2.0"
hooks:
- id: sort-all
types: [file, python]

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
Expand Down
File renamed without changes.
32 changes: 0 additions & 32 deletions MANIFEST

This file was deleted.

16 changes: 16 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include *.txt
include README.md
include pyproject.toml

# CHANGE PKG NAME HERE
graft cmcrameri

prune docs
prune tests
prune notebooks
prune *.egg-info
exclude .github

exclude *.yml
exclude *.enc
exclude *.gitignore
36 changes: 35 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
[build-system]
requires = ["setuptools>=41.2", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=41.2",
"setuptools_scm",
"wheel",
]

[project]
name = "cmcrameri"
description = "Perceptually uniform colormaps by Fabio Crameri"
readme = "README.md"
license = {file = "LICENSE.txt"}
authors = [
{name = "Callum Rollo", email = "c.rollo@outlook.com"},
]
requires-python = ">=3.6"
dynamic = [
"version",
]
dependencies = [
"matplotlib",
"numpy",
"packaging",
]
[project.urls]
documentation = "https://callumrollo.github.io/cmcrameri"
homepage = "https://pypi.org/project/cmcrameri/"
repository = "https://github.com/callumrollo/cmcrameri"

[tool.setuptools]
packages = ["cmcrameri"]
include-package-data = true

[tool.setuptools_scm]
write_to = "cmcrameri/_version.py"
write_to_template = "__version__ = '{version}'"

[tool.ruff]
select = [
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
matplotlib
numpy
packaging
33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit ce9a615

Please sign in to comment.