File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ ENVIRONMENT_FILE := environment.yml
20
20
include third_party/make-env/conda.mk
21
21
22
22
# Build the package locally
23
+ # -------------------------------------
23
24
24
25
build : $(CONDA_ENV_PYTHON )
25
26
$(IN_CONDA_ENV ) python setup.py sdist bdist_wheel && twine check dist/*
@@ -33,3 +34,22 @@ build-clean:
33
34
.PHONY : build build-clean
34
35
35
36
clean :: build-clean
37
+
38
+ # Upload the package to PyPi
39
+ # -------------------------------------
40
+
41
+ # PYPI_TEST = --repository-url https://test.pypi.org/legacy/
42
+ # PYPI_TEST = --repository testpypi
43
+
44
+ upload-test : build | $(CONDA_ENV_PYTHON )
45
+ $(IN_CONDA_ENV ) twine upload ${PYPI_TEST} dist/*
46
+
47
+
48
+ .PHONY : upload-test
49
+
50
+
51
+ upload : build | $(CONDA_ENV_PYTHON )
52
+ $(IN_CONDA_ENV ) twine upload --verbose dist/*
53
+
54
+
55
+ .PHONY : upload
You can’t perform that action at this time.
0 commit comments