Skip to content

Commit

Permalink
build: switch to boilerplates package
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdevpl committed Aug 14, 2023
1 parent f2f92fe commit 95ba36e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 771 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python.yml
@@ -1,4 +1,4 @@
name: tests
name: actions

on:
push:
Expand Down Expand Up @@ -41,8 +41,7 @@ jobs:
with:
python-version: '3.11'
architecture: x64
- run: pip install -r requirements_test.txt
- run: python setup.py bdist_wheel sdist
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
requires = ['docutils', 'setuptools', 'version-query', 'wheel']
requires = ['boilerplates[setup] ~= 0.1', 'version-query ~= 1.2']

[tool.flake8]
max-line-length = 100
Expand Down
4 changes: 1 addition & 3 deletions requirements_ci.txt
@@ -1,10 +1,8 @@
-r requirements_test.txt
codecov ~= 2.1
coverage ~= 7.2
flake518 ~= 1.2
mypy ~= 1.3
pydocstyle ~= 6.3
pylint ~= 2.17
twine ~= 4.0
types-docutils ~= 0.20
types-setuptools ~= 67.4
-r requirements_test.txt
6 changes: 1 addition & 5 deletions requirements_test.txt
@@ -1,6 +1,2 @@
docutils ~= 0.20
pip >= 23.0
Pygments ~= 2.14
setuptools >= 67.4
wheel >= 0.37
-r requirements.txt
boilerplates[packaging_tests] ~= 0.1
4 changes: 2 additions & 2 deletions setup.py
@@ -1,9 +1,9 @@
"""Setup script for ingit package."""

import setup_boilerplate
import boilerplates.setup


class Package(setup_boilerplate.Package):
class Package(boilerplates.setup.Package):
"""Package metadata."""

name = 'ingit'
Expand Down

0 comments on commit 95ba36e

Please sign in to comment.