Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03ca21b

Browse files
authored
Merge pull request #88 from QuLogic/modern-setuptools
Modernize setuptools config
2 parents 381d445 + 7bd24b2 commit 03ca21b

File tree

7 files changed

+41
-37
lines changed

7 files changed

+41
-37
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install Python dependencies
2626
run: |
27-
python -m pip install --upgrade pip setuptools wheel
27+
python -m pip install --upgrade pip
2828
python -m pip install --upgrade mypy
2929
3030
- name: Install cycler

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Install Python dependencies
3232
run: |
33-
python -m pip install --upgrade pip setuptools wheel
33+
python -m pip install --upgrade pip
3434
python -m pip install --upgrade pytest pytest-cov pytest-xdist
3535
3636
- name: Install cycler

MANIFEST.in

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

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
# |version| and |release|, also used in various other places throughout the
6666
# built documents.
6767
#
68-
# The short X.Y version.
69-
version = '0.12.0'
7068
# The full version, including alpha/beta/rc tags.
71-
release = '0.12.0.dev0'
69+
from cycler import __version__ as release # noqa
70+
# The short X.Y version.
71+
version = '.'.join(release.split('.')[:2])
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.

pyproject.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[project]
2+
name = "cycler"
3+
dynamic = ["version"]
4+
description = "Composable style cycles"
5+
authors = [
6+
{name = "Thomas A Caswell", email = "[email protected]"},
7+
]
8+
readme = "README.rst"
9+
license = {file = "LICENSE"}
10+
requires-python = ">=3.7"
11+
classifiers = [
12+
"License :: OSI Approved :: BSD License",
13+
"Development Status :: 4 - Beta",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.7",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3 :: Only",
21+
]
22+
keywords = ["cycle kwargs"]
23+
24+
[project.urls]
25+
homepage = "https://matplotlib.org/cycler/"
26+
repository = "https://github.com/matplotlib/cycler"
27+
28+
[tool.setuptools]
29+
packages = ["cycler"]
30+
31+
[tool.setuptools.dynamic]
32+
version = {attr = "cycler.__version__"}
33+
34+
[build-system]
35+
requires = ["setuptools>=61"]
36+
build-backend = "setuptools.build_meta"

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)