Skip to content

Commit 8125cef

Browse files
authored
Transfer pypi updates from ACE (#1257)
Take the updates for the PyPI releases from ACE #20 and port them back to full-model.
1 parent 2188edd commit 8125cef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ IMAGE ?= fme
33
REGISTRY ?= registry.nersc.gov/m4492/ai2cm
44
ENVIRONMENT_NAME ?= fme
55
USERNAME ?= $(shell beaker account whoami --format=json | jq -r '.[0].name')
6+
DEPLOY_TARGET ?= pypi
67

78
build_docker_image:
89
docker build -f docker/Dockerfile -t $(IMAGE):$(VERSION) .
@@ -40,3 +41,17 @@ test_fast:
4041

4142
test_very_fast:
4243
pytest --durations 40 --very-fast .
44+
45+
46+
# For maintainer use only
47+
# requires fme[deploy] to be installed
48+
49+
build_pypi:
50+
rm -rf fme/dist
51+
cd fme && python -m build
52+
53+
deploy_pypi: build_pypi
54+
cd fme && twine upload --repository $(DEPLOY_TARGET) dist/*
55+
56+
deploy_test_pypi: DEPLOY_TARGET = testpypi
57+
deploy_test_pypi: deploy_pypi

0 commit comments

Comments
 (0)