Skip to content

Commit e1f50da

Browse files
authored
Merge pull request #139 from nschloe/flit
setuptools -> flit
2 parents 76e2836 + 2538e52 commit e1f50da

File tree

4 files changed

+44
-62
lines changed

4 files changed

+44
-62
lines changed

justfile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
version := `python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])"`
2-
name := `python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['name'])"`
3-
4-
51
default:
62
@echo "\"just publish\"?"
73

8-
tag:
4+
publish:
95
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
10-
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "v{{version}}"}' https://api.github.com/repos/nschloe/{{name}}/releases
11-
12-
upload: clean
13-
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
14-
# https://stackoverflow.com/a/58756491/353337
15-
python3 -m build --sdist --wheel .
16-
twine upload dist/*
17-
18-
publish: tag upload
6+
gh release create
7+
flit publish
198

209
clean:
2110
@find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf

pyproject.toml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "perfplot"
7+
authors = [{name = "Nico Schlömer", email = "nico.schloemer@gmail.com"}]
8+
description = "Performance plots for Python code snippets"
9+
readme = "README.md"
10+
license = {file = "LICENSE"}
11+
classifiers = [
12+
"Development Status :: 5 - Production/Stable",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.7",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Topic :: Software Development",
23+
"Topic :: Utilities",
24+
]
25+
keywords = ["performance", "profile"]
26+
dynamic = ["version"]
27+
requires-python = ">=3.7"
28+
dependencies = [
29+
"matplotlib",
30+
"matplotx",
31+
"numpy",
32+
"rich",
33+
"typing_extensions;python_version<'3.8'",
34+
]
35+
36+
[project.urls]
37+
Code = "https://github.com/nschloe/perfplot"
38+
Issues = "https://github.com/nschloe/perfplot/issues"
39+
Funding = "https://github.com/sponsors/nschloe"

setup.cfg

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/perfplot/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from ._main import bench, live, plot, save, show
22

3-
__all__ = ["bench", "plot", "show", "save", "live"]
3+
__version__ = "0.9.15"
4+
5+
__all__ = ["bench", "plot", "show", "save", "live", "__version__"]

0 commit comments

Comments
 (0)