-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile.dist
58 lines (48 loc) · 1.1 KB
/
Makefile.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Makefile to create sdist and wheel packages
packages-help:
$(MAKE)
@echo
@echo Available targets for publishing pynauty packages:
@echo
@echo ' packages - create source and binary distribution packages'
@echo ' testupload - upload packages to https://test.pypi.org'
@echo ' upload - upload packages to https://pypi.org'
@echo
@echo 'Virtualenv: $(VIRTUAL_ENV)'
@echo
include Makefile.common
ifdef GITHUB_ACTIONS
$(info Run by Gitub actions)
else
$(info Run locally)
ifndef VIRTUAL_ENV
$(error ERROR: not in a virtaulenv! bailing out ...)
endif
endif
packages: tools pynauty tests docs
$(MAKE) clean-nauty
ifndef GITHUB_ACTIONS
$(PYTHON) setup.py sdist
endif
$(PYTHON) setup.py bdist_wheel
#$(PYTHON) -m build
@cd dist/ ; ../src/fix-wheel-tag.sh
@echo Packages created:
@ls -l dist/
testupload:
@echo Packages to be uploaded:
@ls -l dist/
$(TWINE) upload --repository testpypi dist/*
upload:
@echo Packages to be uploaded:
@ls -l dist/
$(TWINE) upload dist/*
.PHONY: tests
tests:
$(MAKE) $@
.PHONY: docs
docs:
$(MAKE) $@
%:
$(MAKE) $@
# vim: filetype=make syntax=make