2021-12-01 13:23:19 -05:00
|
|
|
all: release
|
|
|
|
|
2022-06-09 04:31:48 -04:00
|
|
|
test:
|
|
|
|
@echo Running tests...
|
|
|
|
python -m tests.all
|
|
|
|
|
2021-12-01 13:23:19 -05:00
|
|
|
clean:
|
|
|
|
@echo Cleaning...
|
|
|
|
-rm -r ./build
|
|
|
|
-rm -r ./dist
|
2022-06-10 06:50:48 -04:00
|
|
|
-rm -r ./__pycache__
|
|
|
|
-rm -r ./RNS/__pycache__
|
|
|
|
-rm -r ./RNS/Cryptography/__pycache__
|
|
|
|
-rm -r ./RNS/Cryptography/aes/__pycache__
|
|
|
|
-rm -r ./RNS/Cryptography/pure25519/__pycache__
|
|
|
|
-rm -r ./RNS/Interfaces/__pycache__
|
|
|
|
-rm -r ./RNS/Utilities/__pycache__
|
|
|
|
-rm -r ./RNS/vendor/__pycache__
|
|
|
|
-rm -r ./RNS/vendor/i2plib/__pycache__
|
|
|
|
-rm -r ./tests/__pycache__
|
|
|
|
-rm -r ./tests/rnsconfig/storage
|
2021-12-01 13:23:19 -05:00
|
|
|
|
|
|
|
remove_symlinks:
|
|
|
|
@echo Removing symlinks for build...
|
|
|
|
-rm Examples/RNS
|
|
|
|
-rm RNS/Utilities/RNS
|
|
|
|
|
|
|
|
create_symlinks:
|
|
|
|
@echo Creating symlinks...
|
|
|
|
-ln -s ../RNS ./Examples/
|
|
|
|
-ln -s ../../RNS ./RNS/Utilities/
|
|
|
|
|
2022-06-10 06:46:20 -04:00
|
|
|
build_sdist_only:
|
|
|
|
python3 setup.py sdist
|
|
|
|
|
2021-12-01 13:23:19 -05:00
|
|
|
build_wheel:
|
|
|
|
python3 setup.py sdist bdist_wheel
|
|
|
|
|
2022-06-10 06:46:20 -04:00
|
|
|
build_pure_wheel:
|
|
|
|
python3 setup.py sdist bdist_wheel --pure
|
|
|
|
|
|
|
|
release: remove_symlinks build_wheel build_pure_wheel create_symlinks
|
2021-12-01 13:23:19 -05:00
|
|
|
|
|
|
|
upload:
|
2022-06-10 06:46:20 -04:00
|
|
|
@echo Ready to publish release, hit enter to continue
|
|
|
|
@read VOID
|
2021-12-01 13:23:19 -05:00
|
|
|
@echo Uploading to PyPi...
|
|
|
|
twine upload dist/*
|
2022-06-10 06:46:20 -04:00
|
|
|
@echo Release published
|