@@ -29,17 +29,6 @@ VERSION := $(strip $(file < $(PACKAGE_VERSION_PATH)))
2929
3030SRC_FILES := $(wildcard src/mkdocstrings_handlers/garpy_python/* .py) $(PYTHON_VERSION_PATH )
3131
32- USE_TEST_CHANNEL :=
33- ifeq ($(USE_TEST_CHANNEL ) ,)
34- UPLOAD_TEST :=
35- UPLOAD_OVERWRITE :=
36- else
37- UPLOAD_TEST :=-test
38- UPLOAD_OVERWRITE :=--overwrite
39- endif
40- CONDA_UPLOAD_CHANNEL := garage-conda-local$(UPLOAD_TEST )
41- PYPI_UPLOAD_CHANNEL := adi-pypi-local$(UPLOAD_TEST )
42-
4332# Env names
4433DEV_ENV := mkxref-dev
4534
@@ -73,13 +62,10 @@ help:
7362 @$(ECHO ) " create-dev - Create conda development environment named '$( DEV_ENV) '."
7463 @$(ECHO ) " update-dev - Update conda development environment '$( DEV_ENV) '."
7564 @$(ECHO ) " clean-dev - Remove $( DEV_ENV) conda environment"
76- @$(ECHO ) " create-ci-env - Create CI conda environment named $( DEV_ENV) ."
7765 @$(ECHO )
7866 @$(ECHO ) " $( SECTION_COLOR) --- test ---$( COLORLESS) "
7967 @$(ECHO ) " pytest - Run pytest in '$( DEV_ENV) ' environment."
8068 @$(ECHO ) " test - Run tests and linting in '$( DEV_ENV) ' environment."
81- # @$(ECHO) "test-all - Run all tests against all supported environments"
82- # @$(ECHO) " and linting {% if cookiecutter.pre_commit == "yes" -%} and pre-commit {%- endif %} in '$(DEV_ENV)' environment."
8369 @$(ECHO ) " coverage-test - Runs pytest instrumented for coverage and generates html report"
8470 @$(ECHO ) " coverage-show - Open html coverage report in a web browser."
8571 @$(ECHO )
9480 @$(ECHO ) " build-conda - Build conda package (requires whl2conda)"
9581 @$(ECHO )
9682 @$(ECHO ) " $( SECTION_COLOR) --- upload ---$( COLORLESS) "
97- @$(ECHO) "upload - Upload conda package and wheel to artifactory"
98- @$(ECHO) " Run 'make upload USE_TEST_CHANNEL=1' to upload to test channel."
99- @$(ECHO) "upload-wheel - Upload wheel to artifactory channel $(PYPI_UPLOAD_CHANNEL)"
100- @$(ECHO) "upload-conda - Upload conda package to artifactory channel $(CONDA_UPLOAD_CHANNEL)"
101- @$(ECHO) "verify-upload - Install uploaded package into test environment and verify it can be imported."
102- @$(ECHO) " Run 'verify-upload USE_TEST_CHANNEL=1' to verify upload from test channel."
103- @$(ECHO) "verify-upload-wheel - Verify upload of only wheel."
104- @$(ECHO) "verify-upload-conda - Verify upload of only conda package."
83+ @$(ECHO ) " upload - Upload wheel to pypi (requires authorization)"
84+ @$(ECHO ) " check-upload - Verify file for upload"
10585 @$(ECHO )
10686 @$(ECHO ) " $( SECTION_COLOR) --- documentation ---$( COLORLESS) "
10787 @$(ECHO ) " doc - Build HTML documentation in site/ directory."
@@ -194,6 +174,13 @@ showdoc: site/index.html
194174
195175showdocs : showdoc
196176
177+ check-upload :
178+ $(CONDA_RUN ) twine check $(WHEEL_FILE )
179+
180+ upload : check-upload
181+ # NOTE: --skip-existing doesn't seem to actually work
182+ $(CONDA_RUN ) twine upload --skip-existing $(WHEEL_FILE )
183+
197184clean-build :
198185 -@$(RMDIR ) build
199186 -@$(RMDIR ) dist
0 commit comments