Skip to content

Commit

Permalink
Merge pull request #24 from codex-team/feat/new-package
Browse files Browse the repository at this point in the history
feat: packaging is changed to hatchling
  • Loading branch information
slaveeks authored Oct 24, 2024
2 parents 86dcf17 + 13ec47d commit f8ce5a0
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 38 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ help:
@echo " clean ------------ - Clean all distribution build artifacts."
@echo " clean-pyc ------ - Remove .pyc/__pycache__ files."
@echo " clean-build ---- - Remove setup artifacts."
@echo " build ------------ - Regenarate setup.py and rebuild python package."
@echo " build ------------ - Rebuild python package."

@echo "upload ------------- - Upload built python package on pypi server."

install:
$(PIP) install -r requirements/dev.txt
$(PIP) install -r requirements/requirements.txt
$(PYTHON) -m pip install --upgrade build twine

test:
$(PYTHON) -m pytest
Expand All @@ -30,10 +32,9 @@ clean-build:
clean: clean-pyc clean-build

build:
$(PYTHON) generate_setup.py
$(PYTHON) setup.py sdist bdist_wheel
$(PYTHON) -m build

dist: clean build

upload:
$(PYTHON) setup.py sdist upload -r "${PYPISERVERNAME}"
$(PYTHON) -m twine upload -r "${PYPISERVERNAME}" dist/*
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
dynamic = ["version"]
dependencies = ["requests"]
name = "hawkcatcher"
authors = [{ name = "CodeX Team", email = "[email protected]" }]
description = "Python errors Catcher module for Hawk."
readme = "README.md"
requires-python = ">=3.5"
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Bug Tracking",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Environment :: Console",
"Environment :: Web Environment",
]
[tool.hatch.version]
path = "src/hawkcatcher/__init__.py"
[project.urls]
Homepage = "https://github.com/codex-team/hawk.python"
Issues = "https://github.com/codex-team/hawk.python/issues"
34 changes: 0 additions & 34 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f8ce5a0

Please sign in to comment.