Skip to content

Commit f8ce5a0

Browse files
authored
Merge pull request #24 from codex-team/feat/new-package
feat: packaging is changed to hatchling
2 parents 86dcf17 + 13ec47d commit f8ce5a0

File tree

7 files changed

+29
-38
lines changed

7 files changed

+29
-38
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ 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."
14+
1415
@echo "upload ------------- - Upload built python package on pypi server."
1516

1617
install:
1718
$(PIP) install -r requirements/dev.txt
1819
$(PIP) install -r requirements/requirements.txt
20+
$(PYTHON) -m pip install --upgrade build twine
1921

2022
test:
2123
$(PYTHON) -m pytest
@@ -30,10 +32,9 @@ clean-build:
3032
clean: clean-pyc clean-build
3133

3234
build:
33-
$(PYTHON) generate_setup.py
34-
$(PYTHON) setup.py sdist bdist_wheel
35+
$(PYTHON) -m build
3536

3637
dist: clean build
3738

3839
upload:
39-
$(PYTHON) setup.py sdist upload -r "${PYPISERVERNAME}"
40+
$(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)