-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation for pyproject.toml
- Loading branch information
Showing
25 changed files
with
71 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES C) | ||
|
||
set(CMAKE_C_STANDARD 99) | ||
|
||
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module) | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(LIBRRD REQUIRED IMPORTED_TARGET librrd) | ||
|
||
python_add_library(rrd MODULE c_src/rrd.c WITH_SOABI) | ||
target_link_libraries(rrd PRIVATE PkgConfig::LIBRRD) | ||
set_property(TARGET rrd PROPERTY INTERPROCEDURAL_OPTIMIZATION True) | ||
|
||
install(TARGETS rrd DESTINATION collectd_rest) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[build-system] | ||
requires = ["scikit-build-core>=0.3.3"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "django-collectd-rest" | ||
version = "0.2.4" | ||
authors = [ | ||
{name = "Matwey V. Kornilov", email = "matwey.kornilov@gmail.com"}, | ||
] | ||
description = "A simple Django application to demonstrate RRD plots generated by collectd or any other rrd data" | ||
readme = "README.md" | ||
license = {text = "BSD-2-Clause"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Internet :: WWW/HTTP", | ||
] | ||
requires-python = ">= 3.7" | ||
dependencies = [ | ||
"djangorestframework", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"mock", | ||
"pytest", | ||
"pytest-django", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/matwey/django-collectd-rest.git" | ||
Issues = "https://github.com/matwey/django-collectd-rest/issues" | ||
|
||
[tool.scikit-build] | ||
cmake.verbose = true | ||
wheel.packages = ["src/collectd_rest"] | ||
|
||
[tool.pytest.ini_options] | ||
DJANGO_SETTINGS_MODULE = "tests.settings" | ||
django_find_project = false | ||
pythonpath = ". src" | ||
testpaths = [ | ||
"src/collectd_rest", | ||
"tests", | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.