Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DOCDIR := docs
MDCHECKGLOBS := 'docs/**/*.md' 'docs/**/*.rst' 'examples/**/*.md' 'notebooks/**/*.md' 'scripts/**/*.md'
MDCHECKFILES := CODE_OF_CONDUCT.md CONTRIBUTING.md DEVELOPING.md README.md

BUILD_ARGS := # set nightly to build nightly release
TARGETS := "" # targets for running pytests: full,efficientnet,inception,resnet,vgg,ssd,yolo
PYTEST_ARGS := ""
ifneq ($(findstring full,$(TARGETS)),full)
Expand Down Expand Up @@ -61,7 +62,7 @@ docs:

# creates wheel file
build:
python3 setup.py sdist bdist_wheel
python3 setup.py sdist bdist_wheel $(BUILD_ARGS)

# clean package
clean:
Expand Down
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
from datetime import date
from typing import Tuple, List, Dict
from setuptools import find_packages, setup

_PACKAGE_NAME = "sparsezoo"
_VERSION = "0.1.0"
_NIGHTLY = "nightly" in sys.argv

if _NIGHTLY:
_PACKAGE_NAME += "-nightly"
_VERSION += "." + date.today().strftime("%Y%m%d")
# remove nightly param so it does not break bdist_wheel
sys.argv.remove("nightly")

_deps = [
"numpy>=1.0.0",
"onnx>=1.0.0,<1.8.0",
Expand Down Expand Up @@ -65,8 +77,8 @@ def _setup_long_description() -> Tuple[str, str]:


setup(
name="sparsezoo",
version="0.1.0",
name=_PACKAGE_NAME,
version=_VERSION,
author="Neuralmagic, Inc.",
author_email="support@neuralmagic.com",
description="Neural network model repository for highly sparse models "
Expand Down