You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
676 B
Batchfile

1 year ago
:: Batch file for building the Python package, checking it,
:: and uploading it to PyPi.
::
:: usage:
:: make
::
@setlocal
:: set the project
@set PROJ=spexygen
:: adjust the Python location for your system
@set PYTHON=python
:: cleanup any previous builds...
@rmdir /S /Q build
@rmdir /S /Q dist
@rmdir /S /Q %PROJ%.egg-info
:: execute the build...
%PYTHON% setup.py sdist bdist_wheel
:: check the build...
twine check dist/*
:: upload to PyPi -- skip for now
twine upload dist/* --verbose
:: copy/rename the "wheel" to the current dir
@cp dist/%PROJ%-*.tar.gz %PROJ%.tar.gz
:: cleanup after the build...
@rm -rf build
@rm -rf dist
@rm -rf %PROJ%.egg-info
@endlocal