Skip to content

Commit

Permalink
Implement PEP-621 (#101)
Browse files Browse the repository at this point in the history
* Implement PEP-621

* Update CHANGELOG
  • Loading branch information
Takishima authored Dec 15, 2023
1 parent 0df3ff5 commit c8a01a6
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 60 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
¨# Changelog
# Changelog

All notable changes to this project will be documented in this file.

Expand All @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Added metadata to mark support for Python 3.12 and enabled CI checks for it
- Implemented PEP-621

### Changed

Expand Down
60 changes: 60 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,66 @@ build-backend = "setuptools.build_meta"

# ==============================================================================

[project]
name = 'cmake_pre_commit_hooks'
authors = [
{name = 'Damien Nguyen', email = 'ngn.damien@gmail.com'},
]
description = 'pre-commit hooks for CMake-based projects'
readme = 'README.md'
requires-python = '>=3.8'
keywords = [
]
license = {text = 'Apache2'}
classifiers = [
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'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',
]
dependencies = [
'toml',
'CLinters>=1.3.0',
'fasteners',
'filelock',
'attrs>=23'
]
dynamic = ['version']

[project.urls]
Homepage = 'https://github.com/Takishima/cmake-pre-commit-hooks'
Pypi = 'https://pypi.org/project/cmake-pre-commit-hooks/'
Repository = 'https://github.com/Takishima/cmake-pre-commit-hooks'
Issues = 'https://github.com/Takishima/cmake-pre-commit-hooks/issues'
Changelog = 'https://github.com/Takishima/cmake-pre-commit-hooks/blob/main/CHANGELOG.md'

[project.optional-dependencies]
clang-format = ['clang-format']
clang-tidy = ['clang-tidy']
lizard = ['lizard']
test = ['pytest', 'pytest-cov', 'pytest-mock', 'mock']

[project.scripts]
cmake-pc-clang-format-hook = 'cmake_pc_hooks.clang_format:main'
cmake-pc-clang-tidy-hook = 'cmake_pc_hooks.clang_tidy:main'
cmake-pc-cppcheck-hook = 'cmake_pc_hooks.cppcheck:main'
cmake-pc-cpplint-hook = 'cmake_pc_hooks.cpplint:main'
cmake-pc-include-what-you-use-hook = 'cmake_pc_hooks.include_what_you_use:main'
cmake-pc-lizard-hook = 'cmake_pc_hooks.lizard:main'

[tool.distutils.bdist_wheel]
universal = true

[tool.setuptools.packages.find]
include = ['cmake_pc_hooks']
namespaces = false

# ==============================================================================

[tool.ruff]
line-length = 120
target-version = 'py38'
Expand Down
59 changes: 0 additions & 59 deletions setup.cfg

This file was deleted.

0 comments on commit c8a01a6

Please sign in to comment.