mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-08 16:14:08 +00:00
Fix requirements for packaging
This commit is contained in:
parent
2729fe94f0
commit
aaafd73a8a
13
Makefile
13
Makefile
@ -9,6 +9,10 @@ compile-requirements: ## Compile requirements files
|
|||||||
pip-compile -o requirements/dev.txt requirements/dev.in
|
pip-compile -o requirements/dev.txt requirements/dev.in
|
||||||
pip-compile -o requirements/docs.txt requirements/docs.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
|
test: test-lint test-unit test-format test-package ## Run all tests by decreasing order or priority
|
||||||
|
|
||||||
test-format: ## Run code formatting tests
|
test-format: ## Run code formatting tests
|
||||||
@ -25,9 +29,8 @@ test-unit-core: ## Run unit tests on core
|
|||||||
test-unit-plugins: ## Run unit tests on plugins
|
test-unit-plugins: ## Run unit tests on plugins
|
||||||
python3 -m unittest discover plugins/minio/tests
|
python3 -m unittest discover plugins/minio/tests
|
||||||
|
|
||||||
test-package: ## Test that package can be uploaded to pypi
|
test-package: package ## Test that package can be uploaded to pypi
|
||||||
python setup.py sdist
|
twine check dist/tutor-openedx-$(shell make version).tar.gz
|
||||||
twine check dist/tutor-openedx*.tar.gz
|
|
||||||
|
|
||||||
format: ## Format code automatically
|
format: ## Format code automatically
|
||||||
black $(BLACK_OPTS)
|
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"
|
docker login -u "$$DOCKER_USERNAME" -p "$$DOCKER_PASSWORD"
|
||||||
tutor images push all
|
tutor images push all
|
||||||
|
|
||||||
ci-pypi: ## Push release to pypi
|
ci-pypi: package ## Push release to pypi
|
||||||
pip install twine
|
|
||||||
python setup.py sdist
|
|
||||||
twine upload dist/*.tar.gz
|
twine upload dist/*.tar.gz
|
||||||
|
|
||||||
###### Additional commands
|
###### Additional commands
|
||||||
|
Loading…
Reference in New Issue
Block a user