diff --git a/pyproject.toml b/pyproject.toml index ecaf836..45c8729 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ classifiers = [ ] [project.scripts] -distanceprinter = 'DistancePrinter.distanceprinter:main' +distanceprinter = 'diffpy.distanceprinter.distanceprinter:main' [project.urls] Homepage = "https://github.com/diffpy/diffpy.distanceprinter/" @@ -46,7 +46,7 @@ dev_template = "{tag}" dirty_template = "{tag}" [tool.setuptools.packages.find] -where = ["DistancePrinter"] # list of folders that contain the packages (["."] by default) +where = ["src"] # list of folders that contain the packages (["."] by default) include = ["*"] # package names should match these glob patterns (["*"] by default) exclude = [] # exclude packages matching these glob patterns (empty by default) namespaces = false # to disable scanning PEP 420 namespaces (true by default) diff --git a/src/diffpy/__init__.py b/src/diffpy/__init__.py new file mode 100644 index 0000000..5138d34 --- /dev/null +++ b/src/diffpy/__init__.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +############################################################################## +# +# DistancePrinter by Simon J. L. Billinge group +# (c) 2013 Trustees of the Columbia University +# in the City of New York. All rights reserved. +# +# File coded by: Xiaohao Yang +# +# See AUTHORS.txt for a list of people who contributed. +# See LICENSENOTICE.txt for license information. +# +############################################################################## + +# Placeholder until this gets scikit-packaged later \ No newline at end of file diff --git a/DistancePrinter/__init__.py b/src/diffpy/distanceprinter/__init__.py similarity index 100% rename from DistancePrinter/__init__.py rename to src/diffpy/distanceprinter/__init__.py diff --git a/DistancePrinter/distanceprinter.py b/src/diffpy/distanceprinter/distanceprinter.py similarity index 100% rename from DistancePrinter/distanceprinter.py rename to src/diffpy/distanceprinter/distanceprinter.py diff --git a/DistancePrinter/version.py b/src/diffpy/distanceprinter/version.py similarity index 100% rename from DistancePrinter/version.py rename to src/diffpy/distanceprinter/version.py diff --git a/tests/test_distanceprinter.py b/tests/test_distanceprinter.py index 565a03e..9d1d618 100644 --- a/tests/test_distanceprinter.py +++ b/tests/test_distanceprinter.py @@ -1,7 +1,7 @@ import os from io import open -from DistancePrinter.distanceprinter import main +from diffpy.distanceprinter.distanceprinter import main def test_distanceprinter(monkeypatch):