Skip to content

Commit 5740c5c

Browse files
committed
feat: packaging is changed to hatchling
1 parent 86dcf17 commit 5740c5c

File tree

7 files changed

+28
-38
lines changed

7 files changed

+28
-38
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ help:
1010
@echo " clean ------------ - Clean all distribution build artifacts."
1111
@echo " clean-pyc ------ - Remove .pyc/__pycache__ files."
1212
@echo " clean-build ---- - Remove setup artifacts."
13-
@echo " build ------------ - Regenarate setup.py and rebuild python package."
13+
@echo " build ------------ - Rebuild python package."
1414
@echo "upload ------------- - Upload built python package on pypi server."
1515

1616
install:
1717
$(PIP) install -r requirements/dev.txt
1818
$(PIP) install -r requirements/requirements.txt
19+
$(PYTHON) -m pip install --upgrade build twine
1920

2021
test:
2122
$(PYTHON) -m pytest
@@ -30,10 +31,9 @@ clean-build:
3031
clean: clean-pyc clean-build
3132

3233
build:
33-
$(PYTHON) generate_setup.py
34-
$(PYTHON) setup.py sdist bdist_wheel
34+
$(PYTHON) -m build
3535

3636
dist: clean build
3737

3838
upload:
39-
$(PYTHON) setup.py sdist upload -r "${PYPISERVERNAME}"
39+
$(PYTHON) -m twine upload -r "${PYPISERVERNAME}" dist/*

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
[project]
5+
dynamic = ["version"]
6+
dependencies = ["requests"]
7+
name = "hawkcatcher"
8+
authors = [{ name = "CodeX Team", email = "[email protected]" }]
9+
description = "Python errors Catcher module for Hawk."
10+
readme = "README.md"
11+
requires-python = ">=3.5"
12+
classifiers = [
13+
"Intended Audience :: Developers",
14+
"Topic :: Software Development :: Bug Tracking",
15+
"License :: OSI Approved :: MIT License",
16+
"Programming Language :: Python :: 3.5",
17+
"Environment :: Console",
18+
"Environment :: Web Environment",
19+
]
20+
[tool.hatch.version]
21+
path = "src/hawkcatcher/__init__.py"
22+
[project.urls]
23+
Homepage = "https://github.com/codex-team/hawk.python"
24+
Issues = "https://github.com/codex-team/hawk.python/issues"

setup.py

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

0 commit comments

Comments
 (0)