From 0bbdc2ec30c122e856e79682cb6b74022badf239 Mon Sep 17 00:00:00 2001 From: JaskRendix Date: Fri, 25 Jul 2025 12:28:54 +0200 Subject: [PATCH] setup --- Makefile | 22 ++++++++++++++++++++++ pyproject.toml | 2 +- setup.cfg | 2 -- setup.py | 8 -------- 4 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 Makefile delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c22f506 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +PACKAGE_NAME := pyscroll + +.PHONY: build clean publish install lint test + +build: + python3 -m build + +clean: + rm -rf dist/ *.egg-info + +publish: build + python3 -m twine upload --repository pypi dist/* + +install: + pip install -e . + +lint: + black $(PACKAGE_NAME)/ + isort $(PACKAGE_NAME)/ + +test: + pytest tests/ diff --git a/pyproject.toml b/pyproject.toml index 3d654b9..68a8936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ include-package-data = true [tool.setuptools.packages.find] where = ["."] -include = ["pyscroll*"] +include = ["pyscroll"] [tool.black] line-length = 88 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index b88034e..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description-file = README.md diff --git a/setup.py b/setup.py deleted file mode 100644 index 3d6195a..0000000 --- a/setup.py +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python -# encoding: utf-8 -# pip install wheel twine -# python3 setup.py sdist bdist_wheel -# python3 -m twine upload --repository pypi dist/* -from setuptools import setup - -setup()