Skip to content

Commit

Permalink
back to setuptools i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Feb 14, 2023
1 parent 5806cc8 commit 3a2f806
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ serve = "mkdocs serve --dev-addr localhost:8000"
packages = ["src/pointers"]
include = ["src/pointers/*.py", "src/pointers/_pointers.pyi"]

[build.hooks.custom]
enable-by-default = true
#[build.hooks.custom]
#enable-by-default = true
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[build-system]
requires = ["hatchling", "setuptools", "find-libpython"]
build-backend = "hatchling.build"
#requires = ["hatchling", "setuptools", "find-libpython"]
#build-backend = "hatchling.build"
requires = ["setuptools", "hatchling"]
build-backend = "setuptools.build_meta"

[project]
name = "pointers.py"
Expand All @@ -23,7 +25,7 @@ classifiers = [
dependencies = [
"typing_extensions",
]
dynamic = ["version"]
version = "2.6.0"

[project.urls]
Documentation = "https://pointers.zintensity.dev"
Expand Down
18 changes: 18 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from setuptools import Extension, setup

with open("./README.md") as f:
long_desc: str = f.read()

if __name__ == "__main__":
setup(
name="pointers.py",
version="2.6.0",
packages=["pointers"],
license="MIT",
project_urls={
"Source": "https://github.com/ZeroIntensity/pointers.py",
"Documentation": "https://pointers.zintensity.dev/",
},
package_dir={"": "src"},
ext_modules=[Extension("_pointers", ["./src/mod.c"])],
)

0 comments on commit 3a2f806

Please sign in to comment.