summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 387e177a6f9fdd3d95ef52db7768a3de98ebce45 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                        
                                                                 
 

               
 
    
                                

           



                                                                   

                                 
                                       






                                           
                                       

                                                                      
                                       








                                                                      
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# Copyright © 2020-2022 siddharth ravikumar <s@ricketyspace.net>
#
VENV_DIR=.venv
VENV=virtualenv

fmt:
	black acmens.py setup.py
.PHONY: fmt

venv:
	test -d ${VENV_DIR} || ${VENV} --python=python3 ${VENV_DIR}
.PHONY: venv

develop:
	@python3 setup.py develop
	@pip install -U pip black twine
.PHONY: develop

build:
	@python3 setup.py sdist bdist_wheel
.PHONY: build

upload:
	@twine upload -r acmens -s -i \
		'1534 126D 8C8E AD29 EDD9  1396 6BE9 3D8B F866 4377' \
		dist/*.tar.gz
	@twine upload -r acmens -s -i \
		'1534 126D 8C8E AD29 EDD9  1396 6BE9 3D8B F866 4377' \
		dist/*.whl
.PHONY: upload

clean:
	@python3 setup.py clean
	@rm -rf build/ dist/ *.egg-info __pycache__/
	@find . -name '*.pyc' -exec rm -f {} +
.PHONY: clean