Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pyproject.toml #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- name: "Install requirements"
run: |
python -m pip install -r requirements-dev.txt
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- name: "Run pytest"
run: |
pytest
pdm run pytest

check-typing:
runs-on: ubuntu-latest
Expand All @@ -33,5 +34,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- run: pip install mypy
- run: mypy --install-types --non-interactive
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install
- run: pdm run mypy --install-types --non-interactive
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: |
python -m pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Install dependencies
run: python -m pip install build
- name: Build package
run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 0 additions & 3 deletions mypy.ini

This file was deleted.

44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[project]
name = "cmake-file-api"
dynamic = ["version"]
description = "Read and interpret CMake's file-based API"
license = {text = "MIT"}
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.9"

classifiers = [
"Development Status :: 1 - Planning",
"Programming Language :: Python :: 3",
"Programming Language :: C",
"Programming Language :: C++",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]

authors = [
{name = "Anonymous Maarten", email = "[email protected]"}
]

[project.urls]
Homepage = "http://github.com/madebr/python-cmake-file-api"
Repository = "http://github.com/madebr/python-cmake-file-api"

[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
readme = {file = ["README.rst"]}

[tool.setuptools_scm]

[dependency-groups]
dev = [
"pytest",
"mypy[install-types]"
]

[tool.mypy]
files = [
"cmake_file_api"
]
2 changes: 0 additions & 2 deletions requirements-dev.txt

This file was deleted.

28 changes: 0 additions & 28 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

Loading