mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Merge pull request #479 from bndr/projecttoml_upgrade
Update pyproject.toml and tests.yml config
This commit is contained in:
commit
08c5eb09cc
4
.github/workflows/flake8.yml
vendored
4
.github/workflows/flake8.yml
vendored
@ -8,9 +8,9 @@ jobs:
|
|||||||
name: Lint
|
name: Lint
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source repository
|
- name: Check out source repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python environment
|
- name: Set up Python environment
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- name: flake8 Lint
|
- name: flake8 Lint
|
||||||
|
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@ -1,6 +1,10 @@
|
|||||||
name: Tests and Codecov
|
name: Tests and Codecov
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
- "release/*"
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@ -10,14 +14,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9-7.3.12']
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9-7.3.13']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
@ -34,7 +38,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -49,7 +53,7 @@ jobs:
|
|||||||
run: poetry run coverage xml
|
run: poetry run coverage xml
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
files: coverage.xml
|
files: coverage.xml
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
name = "pipreqs"
|
name = "pipreqs"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
description = "Pip requirements.txt generator based on imports in project"
|
description = "Pip requirements.txt generator based on imports in project"
|
||||||
authors = ["Vadim Kravcenko <vadim.kravcenko@gmail.com>"]
|
authors = [
|
||||||
|
{ name = "Vadim Kravcenko", email = "vadim.kravcenko@gmail.com" }
|
||||||
|
]
|
||||||
|
maintainers = [
|
||||||
|
{name = "Jonas Eschle", email = "jonas.eschle@gmail.com"}
|
||||||
|
]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
readme = ["README.rst", "HISTORY.rst"]
|
readme = "README.rst"
|
||||||
packages = [{ include = "pipreqs" }]
|
packages = [{ include = "pipreqs" }]
|
||||||
repository = "https://github.com/bndr/pipreqs"
|
repository = "https://github.com/bndr/pipreqs"
|
||||||
keywords = ["pip", "requirements", "imports"]
|
keywords = ["pip", "requirements", "imports"]
|
||||||
@ -14,29 +19,31 @@ classifiers = [
|
|||||||
"License :: OSI Approved :: Apache Software License",
|
"License :: OSI Approved :: Apache Software License",
|
||||||
"Natural Language :: English",
|
"Natural Language :: English",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12"
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
]
|
]
|
||||||
|
requires-python = ">=3.9, <3.14"
|
||||||
|
dependencies = [
|
||||||
|
"yarg>=0.1.9",
|
||||||
|
"docopt>=0.6.2",
|
||||||
|
"nbconvert>=7.11.0",
|
||||||
|
"ipython>=8.12.3",
|
||||||
|
]
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"flake8>=6.1.0",
|
||||||
|
"tox>=4.11.3",
|
||||||
|
"coverage>=7.3.2",
|
||||||
|
"sphinx>=7.2.6;python_version>='3.9'",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
pipreqs = "pipreqs.pipreqs:main"
|
pipreqs = "pipreqs.pipreqs:main"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = ">=3.8.1,<3.13"
|
|
||||||
yarg = "0.1.9"
|
|
||||||
docopt = "0.6.2"
|
|
||||||
nbconvert = "^7.11.0"
|
|
||||||
ipython = "8.12.3"
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
flake8 = "^6.1.0"
|
|
||||||
tox = "^4.11.3"
|
|
||||||
coverage = "^7.3.2"
|
|
||||||
sphinx = { version = "^7.2.6", python = ">=3.9" }
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,15 +1,15 @@
|
|||||||
[tox]
|
[tox]
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist = py38, py39, py310, py311, py312, pypy3, flake8
|
envlist = py39, py310, py311, py312, py313, pypy3, flake8
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.8: py38
|
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311
|
3.11: py311
|
||||||
3.12: py312
|
3.12: py312
|
||||||
pypy-3.9-7.3.12: pypy3
|
3.13: py313
|
||||||
|
pypy-3.9-7.3.13: pypy3
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user