Bladeren bron

update version (#3186)

* add mds

* add test for mds

* fixed the issue of multiple compilers for templates

* update mds from 1.1.0 to 1.1.1

* rename project: mds -> pytype

* update pytype

* update pkg

* update version and fix bug

* Restart the action that failed because of a network problem

```
Failed to download action 'https://api.github.com/repos/actions/checkout/tarball/50fbc622fc4ef5163becd7fab6573eac35f8462e'. Error: nodename nor servname provided, or not known (api.github.com:443)
```

Make a small change to restart the action

* rename pytype -> pyincpp for googleable

---------

Co-authored-by: Jérôme Leclercq <[email protected]>
Chobits 1 jaar geleden
bovenliggende
commit
9093437e63
1 gewijzigde bestanden met toevoegingen van 9 en 9 verwijderingen
  1. 9 9
      packages/p/pyincpp/xmake.lua

+ 9 - 9
packages/p/pytype/xmake.lua → packages/p/pyincpp/xmake.lua

@@ -1,26 +1,26 @@
-package("pytype")
-    set_kind("library", {headeronly = true})
-    set_homepage("https://github.com/chen-qingyu/pytype-cpp")
+package("pyincpp")
+    set_homepage("https://github.com/chen-qingyu/pyincpp")
     set_description("A C++ type library that is as easy to use as Python built-in types.")
+    set_kind("library", {headeronly = true})
 
-    add_urls("https://github.com/chen-qingyu/pytype-cpp/archive/refs/tags/$(version).tar.gz", 
-             "https://github.com/chen-qingyu/pytype-cpp.git")
+    add_urls("https://github.com/chen-qingyu/pyincpp/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/chen-qingyu/pyincpp.git")
 
-    add_versions("v1.3.1", "7729a9492caebaff63281e993d22b1f4ca4d488664dada59bfc765002ff7e7de")
+    add_versions("v1.3.2", "687148704f278c292962cffe1f440e5a4cc33f2a82f5e5a17b23aab88a282951")
 
     on_install(function (package)
-        os.cp("sources/*.hpp", package:installdir("include/pytype"))
+        os.cp("sources/*.hpp", package:installdir("include/pyincpp"))
     end)
 
     on_test(function (package)
         assert(package:check_cxxsnippets({test = [[
             #include <cassert>
-            using namespace pytype;
+            using namespace pyincpp;
             void test() {
                 Map<String, List<Integer>> map = {{"first", {123, 456}}, {"second", {789}}, {"second", {0}}, {"third", {"12345678987654321", 5}}};
                 assert(map.size() == 3);
                 assert(map.keys() == Set<String>({"first", "second", "third"}));
                 assert(map["third"][-1].factorial() == 120);
             }
-        ]]}, {configs = {languages = "c++17"}, includes = "pytype/pytype.hpp"}))
+        ]]}, {configs = {languages = "c++17"}, includes = "pyincpp/pyincpp.hpp"}))
     end)