Skip to content

Commit 2a6a3e3

Browse files
committed
dev: Convert to hatchling build system backend
Replace the setuptools based build system with a more modern hatchling based configuration. The new configuration relies on git tags to specify the package version. It also drops support for Python <3.7. Closes #11 Closes #12
1 parent 0f7fc1b commit 2a6a3e3

File tree

15 files changed

+79
-84
lines changed

15 files changed

+79
-84
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ inheritance`_::
2222

2323
Installation
2424
============
25-
* ``pip install ib3`` (recommended)
26-
* ``python setup.py install`` (from source distribution)
25+
* ``python3 -m pip install --upgrade ib3`` (recommended)
26+
* ``python3 -m pip install .`` (from source distribution)
2727

2828
License
2929
=======

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling>=1.13",
5+
"hatch-vcs>=0.3",
6+
]
7+
8+
[project]
9+
name = "ib3"
10+
description = "IRC bot framework using mixins to provide common functionality"
11+
readme = "README.rst"
12+
license = "GPL-3.0-or-later"
13+
authors = [
14+
{ name = "Bryan Davis", email = "bd808@bd808.com" },
15+
]
16+
requires-python = ">=3.7"
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.7",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Topic :: Communications :: Chat :: Internet Relay Chat",
29+
]
30+
dynamic = [
31+
"version",
32+
]
33+
dependencies = [
34+
"irc>=20.0.0",
35+
]
36+
37+
[project.urls]
38+
Homepage = "https://python-ib3.readthedocs.io/en/latest/"
39+
"Bug Tracker" = "https://github.com/bd808/python-ib3/issues"
40+
Source = "https://github.com/bd808/python-ib3"
41+
42+
[tool.hatch]
43+
build.dev-mode-dirs = ["src"]
44+
build.targets.sdist.include = [
45+
"/COPYING",
46+
"/doc",
47+
"/examples",
48+
"/src",
49+
"/tests",
50+
"/tox.ini",
51+
]
52+
53+
[tool.hatch.version]
54+
source = "vcs"

setup.cfg

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

setup.py

Lines changed: 0 additions & 66 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)