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

build: Use hatchling to package project #9

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 0 additions & 12 deletions models/setup.py

This file was deleted.

31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "UMNN"
version = "1.70"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Set to 1.70 given https://pypi.org/project/UMNN/1.70/ exists and so assuming that release corresponds to 9e489b5.

description = "Unconstrained Monotonic Neural Networks"
license = { text = "BSD-3-Clause" } # SPDX short identifier
requires-python = ">=3.6"
authors = [
{ name = "awehenkel", email = "[email protected]" },
]
dependencies = [
"torch>=1.1",
"numpy",
]


[project.urls]
Homepage = "https://github.com/AWehenkel/UMNN"

[tool.hatch.build.targets.sdist]
# hatchling always includes:
# pyproject.toml, .gitignore, any README, any LICENSE, AUTHORS
include = [
"/models/UMNN",
]

[tool.hatch.build.targets.wheel]
packages = ["models/UMNN"]