Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def setup(app):
"pyobjcryst Documentation",
ab_authors,
"pyobjcryst",
"One line description of project.",
"Python bindings to the ObjCryst++ library.",
"Miscellaneous",
),
]
Expand Down
Binary file removed docs/source/img/scikit-package-logo-text.png
Binary file not shown.
3 changes: 1 addition & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Authors

`pyobjcryst` was written as part of the DANSE_ open-source project by
Christopher Farrow, Pavol Juhás, and Simon J.L. Billinge.
The sources are maintained as a part of the DiffPy-CMI complex
modeling initiative at the Brookhaven National Laboratory.
The sources are maintained as a part of the `diffpy` project.
The underlying library `ObjCryst++ <https://github.com/vincefn/objcryst>`_
was developed by V. Favre-Nicolin as part of the development of the
`Fox <http://fox.vincefn.net>`_ software.
Expand Down
28 changes: 0 additions & 28 deletions docs/source/snippets/example-table.rst

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[project.scripts]
pyobjcryst = "pyobjcryst.app:main"
pyobjcryst = "pyobjcryst.pyobjcryst_app:main"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pyobjcryst.app module does not exist. See the following screenshot:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no app exists should we simply remove this code-block ([project.scripts])?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that the pyobjcryst_app.py file is what the project.scripts is meant to call. It utilizes argparsers to parse CLI commands from the user and everything. Here are the contents of the file, so please let me know if you still want the [project.scripts] code block deleted!

import argparse

from pyobjcryst.version import __version__  # noqa


def main():
    parser = argparse.ArgumentParser(
        prog="pyobjcryst",
        description=(
            "Python bindings to the ObjCryst++ library.\n\n"
            "For more information, visit: "
            "https://github.com/diffpy/pyobjcryst/"
        ),
        formatter_class=argparse.RawDescriptionHelpFormatter,
    )

    parser.add_argument(
        "--version",
        action="store_true",
        help="Show the program's version number and exit",
    )

    args = parser.parse_args()

    if args.version:
        print(f"pyobjcryst {__version__}")
    else:
        # Default behavior when no arguments are given
        parser.print_help()


if __name__ == "__main__":
    main()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just the standard one that is produced by scikit-package. I think we can delete this


[tool.setuptools.dynamic]
dependencies = {file = ["requirements/pip.txt"]}
Expand Down
Loading