diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index d9cdb18..be4853b 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -31,10 +31,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest pytest-cov setuptools wheel + python -m pip install flake8 pytest pytest-cov setuptools wheel build - name: Build Package run: | - python setup.py sdist bdist_wheel + python -m build - name: Install Built Package run: | pip install . diff --git a/pyproject.toml b/pyproject.toml index 48ceac8..787d31c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "makepackage" -version = "0.2.1" +version = "0.2.2" authors = [ { name = "Nyggus", email = "nyggus@gmail.com" }, { name = "Patrick Boateng", email = "boatengpato.pb@gmail.com" }, @@ -30,7 +30,10 @@ packages = ["makepackage"] makepackage = "makepackage.__main__:main" [project.optional-dependencies] -dev = ["wheel", "black", "pytest", "mypy", "setuptools"] +dev = ["wheel", "black", "pytest", "mypy", "setuptools", "build"] [tool.black] line-length = 79 + +[pytest] +testpaths = ["tests"] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 5ee6477..0000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -testpaths = tests diff --git a/setup.py b/setup.py deleted file mode 100644 index 6068493..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup()