Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize project structure #49

Open
skrah opened this issue Apr 27, 2024 · 5 comments
Open

Reorganize project structure #49

skrah opened this issue Apr 27, 2024 · 5 comments
Assignees

Comments

@skrah
Copy link
Member

skrah commented Apr 27, 2024

After the deprecation of distutils the separate libraries are hard to maintain. To facilitate maintenance and development, the following changes will be made:

Repository renamings

ndtypes ==> libndtypes

xnd ==> libxnd

gumath ==> libgumath

These are of course easily reversible if the new structure does not work out.

New combined repository

The new combined repository will be named xnd and will contain all libraries and Python modules. The Python modules have a dual function: They are built for running the library tests but they are also the authoritative source for the Python packages.

Build system

In order to maximize independence from the Python packaging machinery, xnd will be entirely built by CMake. CMake has excellent support for building Python C-extensions without relying on any third party packages.

The Python modules built by CMake are of course directly usable for testing and development, thereby making support for editable installs unnecessary.

Python packages

A separate xndpy repository will contain the necessary code for building packages. The actual build will utilize CMake, the packaging routines will be handled by a custom backend, flit and pyproject.toml. Developers will never need this, see above.

@skrah skrah pinned this issue Apr 27, 2024
@skrah
Copy link
Member Author

skrah commented Apr 27, 2024

Done. The new repositories are:

https://github.com/xnd-project/xnd
https://github.com/xnd-project/xndpy

@skrah skrah closed this as completed Apr 27, 2024
@skrah skrah unpinned this issue Apr 27, 2024
@skrah skrah reopened this Apr 27, 2024
@skrah
Copy link
Member Author

skrah commented Apr 27, 2024

The issue is finished, but it will be left open and pinned so people can see what is going on.

@skrah skrah pinned this issue Apr 27, 2024
@skrah skrah self-assigned this Apr 27, 2024
@skrah
Copy link
Member Author

skrah commented Apr 27, 2024

It would be good to unpin libndtypes, libxnd and libgumath and pin xnd and xndpy instead. However, I no longer have owner privileges. @pearu, would it be possible to either restore my owner privileges or change the pins?

@skrah
Copy link
Member Author

skrah commented Apr 27, 2024

Ideally the proper history of all libraries should be restored, but merging all three turned out to be quite difficult. If this setup proves successful, it can be done later.

@pearu
Copy link
Member

pearu commented Apr 27, 2024

It would be good to unpin libndtypes, libxnd and libgumath and pin xnd and xndpy instead. However, I no longer have owner privileges. @pearu, would it be possible to either restore my owner privileges or change the pins?

@skrah, it nice to hear from you again! Yes, let me try to restore the privileges. Could you contact me via private email as I think I don't have your contacts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants