Skip to content

Commit

Permalink
Move from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwager committed Oct 31, 2024
1 parent 1c3f0a3 commit 4c7235e
Show file tree
Hide file tree
Showing 8 changed files with 340 additions and 72 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@ jobs:
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
requirements.txt
requirements-dev.txt
cache: "poetry"
- name: Run CI
run: |
python -m pip install --requirement requirements.txt
python -m pip install --requirement requirements-dev.txt
python -m pip install --editable .
python -m flake8
python -m flake8 --print-dlint-linters
python -m pytest --cov
poetry env use ${{ matrix.python-version }}
poetry install --with dev
poetry run flake8
poetry run flake8 --print-dlint-linters
poetry run pytest --cov
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Dlint

[![CI](https://github.com/dlint-py/dlint/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dlint-py/dlint/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/dlint-py/dlint/badge.svg?branch=master)](https://coveralls.io/github/dlint-py/dlint?branch=master)
[![Python Versions](https://img.shields.io/pypi/pyversions/dlint.svg)](https://pypi.org/project/dlint/)
[![PyPI Version](https://img.shields.io/pypi/v/dlint.svg)](https://pypi.org/project/dlint/)

Expand Down
286 changes: 286 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[tool.poetry]
name = "dlint"
version = "0.15.0"
description = "Dlint is a tool for encouraging best coding practices and helping ensure Python code is secure."
authors = []
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/dlint-py/dlint"
homepage = "https://github.com/dlint-py/dlint"
packages = [{include = "dlint"}]
classifiers = [
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Security',
'Topic :: Software Development :: Quality Assurance',
]

[tool.poetry.dependencies]
python = "^3.8.1"
flake8 = ">=3.6.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.0"
pytest-cov = "^5.0.0"
pytest-benchmark = "^4.0.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.plugins."flake8.extension"]
DUO = "dlint.extension:Flake8Extension"

[tool.coverage.run]
source = ["dlint"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
4 changes: 0 additions & 4 deletions requirements-dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

0 comments on commit 4c7235e

Please sign in to comment.