Skip to content

Commit

Permalink
it works (#2)
Browse files Browse the repository at this point in the history
* not ready

* good

* good

* from/to numpy

* good

* make unique

* clone

* update

* not ready

* not ready

* good

* fix

* fix

* ready

* ready

* fix

* update docs

---------

Co-authored-by: TANG ZHIXIONG <[email protected]>
  • Loading branch information
district10 and zhixiong-tang authored Sep 3, 2023
1 parent 3f73c8a commit 38e73c0
Show file tree
Hide file tree
Showing 8 changed files with 690 additions and 97 deletions.
67 changes: 67 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"files.associations": {
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cfenv": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"any": "cpp",
"filesystem": "cpp",
"functional": "cpp",
"optional": "cpp",
"ratio": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"numeric": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"regex": "cpp",
"utility": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp"
}
}
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
cmake_minimum_required(VERSION 3.4...3.18)
project(naive_svg)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 14)

include_directories(headers/include)

set(PYBIND11_CPP_STANDARD -std=c++14)
add_subdirectory(pybind11)
file(GLOB SRCS src/*.cpp)
pybind11_add_module(_naive_svg ${SRCS})
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# naive-svg

Online document: **[readthedocs](http://naive-svg.readthedocs.io/)**
Upgrated version of [svg.hpp](https://github.com/cubao/naive-svg/blob/master/svg.hpp).

Online document: **[readthedocs](http://pybind11-naive-svg.readthedocs.io/)**

<!--intro-start-->

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
site_name: naive-svg
site_url: https://naive-svg.readthedocs.io
site_url: https://pybind11-naive-svg.readthedocs.io
site_description: naive svg writer
site_author: district10

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def build_extension(self, ext: CMakeExtension) -> None:
# logic and declaration, and simpler if you include description/version in a file.
setup(
name="naive_svg",
version="0.0.1",
version="0.0.2",
author="tzx",
author_email="[email protected]",
url="https://naive-svg.readthedocs.io",
url="https://pybind11-naive-svg.readthedocs.io",
description="naive svg writer",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
Loading

0 comments on commit 38e73c0

Please sign in to comment.