diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d212dd857ed2fce8ca4e94b8060b2fb957b4330f..902b4c9f6760149298c038959b43bafa036916ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -133,7 +133,7 @@ pypi:
     stage: release
     cache: {}
     script:
-        - pip install -U twine setuptools
+        - pip install -U twine setuptools setuptools_scm
         - python setup.py sdist
         - twine upload dist/*
     only: