mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Fix requirements for packaging
This commit is contained in:
parent
2729fe94f0
commit
aaafd73a8a
13
Makefile
13
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user