Skip to content

Commit

Permalink
switch to setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-steinmeyer committed Jul 6, 2023
1 parent bf6b6ed commit 2746549
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ pytest = "^6.0.2"
tox = "^3.20.0"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
35 changes: 35 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""

import pathlib

from setuptools import find_packages, setup

here = pathlib.Path(__file__).parent.resolve()

long_description = (here / "README.md").read_text(encoding="utf-8")

setup(
name="keras-surgeon", # Required
version="0.2.0", # Required
description="A library for performing network surgery on trained Keras models. Useful for deep neural network pruning.", # Optional
long_description=long_description, # Optional
long_description_content_type="text/markdown", # Optional (see note above)
package_dir={"": "src"}, # Optional
packages=find_packages(where="src"), # Required
python_requires=">=3.10, <4",
# only functional dependencies, no dev dependencies (like pytest)
install_requires=[
"importlib-metadata",
"pandas",
"pillow",
"tensorflow"
],
extras_require={ # Optional
"dev": ["build"],
"test": ["pytest"],
},
)

0 comments on commit 2746549

Please sign in to comment.