Fix requirements for packaging

This commit is contained in:
Régis Behmo 2019-06-19 12:14:49 +02:00
parent 2729fe94f0
commit aaafd73a8a
1 changed files with 7 additions and 6 deletions

View File

@ -8,6 +8,10 @@ compile-requirements: ## Compile requirements files
pip-compile -o requirements/base.txt requirements/base.in
pip-compile -o requirements/dev.txt requirements/dev.in
pip-compile -o requirements/docs.txt requirements/docs.in
package: ## Build a package ready to upload to pypi
pip install twine
python setup.py sdist
test: test-lint test-unit test-format test-package ## Run all tests by decreasing order or priority
@ -25,9 +29,8 @@ test-unit-core: ## Run unit tests on core
test-unit-plugins: ## Run unit tests on plugins
python3 -m unittest discover plugins/minio/tests
test-package: ## Test that package can be uploaded to pypi
python setup.py sdist
twine check dist/tutor-openedx*.tar.gz
test-package: package ## Test that package can be uploaded to pypi
twine check dist/tutor-openedx-$(shell make version).tar.gz
format: ## Format code automatically
black $(BLACK_OPTS)
@ -103,9 +106,7 @@ ci-images: ## Build and push docker images to hub.docker.com
docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
tutor images push all
ci-pypi: ## Push release to pypi
pip install twine
python setup.py sdist
ci-pypi: package ## Push release to pypi
twine upload dist/*.tar.gz
###### Additional commands