Skip to content

Commit

Permalink
Merge pull request #45 from Point72/tkp/notice
Browse files Browse the repository at this point in the history
Add notice for licenses of dependencies
  • Loading branch information
ngoldbaum committed Feb 8, 2024
2 parents d2bd01f + 259fe31 commit c011061
Show file tree
Hide file tree
Showing 4 changed files with 6,236 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
- v*
paths-ignore:
- LICENSE
- NOTICE
- README.md
pull_request:
branches:
- main
paths-ignore:
- LICENSE
- NOTICE
- README.md
workflow_dispatch:
inputs:
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Text files
include LICENSE
include NOTICE
include README.md
include CONTRIBUTING.md

# Python files
graft csp
Expand Down
21 changes: 18 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
EXTRA_ARGS :=

UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
NPROC = $(shell nproc)
endif
ifeq ($(UNAME), Darwin)
NPROC = $(shell sysctl -n hw.physicalcpu)
endif

#########
# BUILD #
#########
Expand All @@ -14,7 +22,7 @@ develop: requirements ## install dependencies and build library
python -m pip install -e .[develop]

build-py: ## build the python library
python setup.py build build_ext --inplace -- -- -j8
python setup.py build build_ext --inplace -- -- -j$(NPROC)

build: build-py ## build the library

Expand Down Expand Up @@ -114,7 +122,7 @@ major:
########
# DIST #
########
.PHONE: dist-py dist-py-sdist dist-py-wheel dist-py-cibw dist-check dist publish-py publish
.PHONY: dist-py dist-py-sdist dist-py-wheel dist-py-cibw dist-check dist publish-py publish

dist-py: dist-py-sdist # Build python dist
dist-py-sdist:
Expand All @@ -137,6 +145,13 @@ publish-py: # Upload python assets

publish: dist publish-py ## Publish dists


.PHONY: notice

notice:
printf 'CSP - Copyright 2024 Point72, L.P.\nThis project contains software with the below copyrights\n\n\n' > NOTICE
for file in `find vcpkg_installed -name "copyright" | sort`; do echo $$file >> NOTICE && printf '\n\n' >> NOTICE && cat $$file >> NOTICE && printf '\n\n' >> NOTICE; done

#########
# CLEAN #
#########
Expand Down Expand Up @@ -173,7 +188,7 @@ dependencies-win: ## install dependnecies via windows (vcpkg)
############################################################################################
# Thanks to Francoise at marmelab.com for this
.DEFAULT_GOAL := help
.PHONE: help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

Expand Down
Loading

0 comments on commit c011061

Please sign in to comment.