From 0ae8a8e58d7001f7bb997d3136de52ed08d33841 Mon Sep 17 00:00:00 2001 From: stefaanhessmann Date: Wed, 4 Sep 2024 22:01:37 +0200 Subject: [PATCH 1/2] fix config dir issue --- .travis.yml | 23 +++++++++++++++++++++++ MANIFEST.in | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 .travis.yml create mode 100644 MANIFEST.in diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..f6df79907 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: python + +install: + - pip install codecov + - pip install tox + +matrix: + include: + - python: 3.8 + env: TOXENV=py38 + - python: 3.8 + env: TOXENV=qa + +script: + - tox + +branches: + only: + - master + - dev + +after_success: + - codecov diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..79e506d57 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +recursive-include src/schnetpack *.py +recursive-include src/schnetpack *.yaml +global-exclude *.pyc +global-exclude __pycache__ From e18e8951a416c0abe4003deaeefb8fd856aa48bd Mon Sep 17 00:00:00 2001 From: Niklas Gebauer Date: Thu, 5 Sep 2024 12:36:12 +0200 Subject: [PATCH 2/2] add yaml configs as additional files for installation in pyproject.toml --- .travis.yml | 23 ----------------------- MANIFEST.in | 4 ---- pyproject.toml | 6 ++++++ 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 .travis.yml delete mode 100644 MANIFEST.in diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f6df79907..000000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: python - -install: - - pip install codecov - - pip install tox - -matrix: - include: - - python: 3.8 - env: TOXENV=py38 - - python: 3.8 - env: TOXENV=qa - -script: - - tox - -branches: - only: - - master - - dev - -after_success: - - codecov diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 79e506d57..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -recursive-include src/schnetpack *.py -recursive-include src/schnetpack *.yaml -global-exclude *.pyc -global-exclude __pycache__ diff --git a/pyproject.toml b/pyproject.toml index a275bb416..40ae9b72b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,3 +59,9 @@ script-files = [ [tool.setuptools.dynamic] version = {attr = "schnetpack.__version__"} + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +schnetpack = ["configs/**/*.yaml"]