From b00ac95d34d586ad7173299b6b8b04bd8d526607 Mon Sep 17 00:00:00 2001 From: troyyyyy Date: Tue, 26 Dec 2023 12:43:38 +0800 Subject: [PATCH 1/2] [ENH] add packaging files --- LICENSE | 21 +++++++++++++++++++++ pyproject.toml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 LICENSE create mode 100644 pyproject.toml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b25a23f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 LAMDA + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c0af56c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "abl" +version = "0.0.1" +authors = [ + { name="LAMDA 2023" }, +] +description = "ABL-Package" +readme = "README.md" +requires-python = ">=3.6" +license = {file = "LICENSE"} +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/AbductiveLearning/ABL-Package" +Issues = "https://github.com/AbductiveLearning/ABL-Package/issues" + +[tool.pytest.ini_options] +minversion = "6.0" +addopts = "-ra -q" +testpaths = [ + "tests", +] \ No newline at end of file From 789ae09e28558c3d69047591e751486b0870b1e0 Mon Sep 17 00:00:00 2001 From: troyyyyy Date: Tue, 26 Dec 2023 14:31:04 +0800 Subject: [PATCH 2/2] [ENH] add dependencies in pyproject --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c0af56c..42d73d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "abl" -version = "0.0.1" +version = "0.1.3" authors = [ { name="LAMDA 2023" }, ] @@ -17,6 +17,14 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] +dependencies = [ + "numpy", + "pyswip==0.2.9", + "torch", + "torchvision", + "zoopt", + "termcolor" +] [project.urls] Homepage = "https://github.com/AbductiveLearning/ABL-Package"