2021-12-01 11:23:19 -07:00
|
|
|
all: release
|
|
|
|
|
2022-06-09 02:31:48 -06:00
|
|
|
test:
|
|
|
|
@echo Running tests...
|
|
|
|
python -m tests.all
|
|
|
|
|
2021-12-01 11:23:19 -07:00
|
|
|
clean:
|
|
|
|
@echo Cleaning...
|
2022-06-10 04:54:12 -06:00
|
|
|
@-rm -rf ./build
|
|
|
|
@-rm -rf ./dist
|
2022-06-14 05:45:48 -06:00
|
|
|
@-rm -rf ./*.data
|
2022-06-10 04:54:12 -06:00
|
|
|
@-rm -rf ./__pycache__
|
|
|
|
@-rm -rf ./RNS/__pycache__
|
|
|
|
@-rm -rf ./RNS/Cryptography/__pycache__
|
|
|
|
@-rm -rf ./RNS/Cryptography/aes/__pycache__
|
|
|
|
@-rm -rf ./RNS/Cryptography/pure25519/__pycache__
|
|
|
|
@-rm -rf ./RNS/Interfaces/__pycache__
|
|
|
|
@-rm -rf ./RNS/Utilities/__pycache__
|
|
|
|
@-rm -rf ./RNS/vendor/__pycache__
|
|
|
|
@-rm -rf ./RNS/vendor/i2plib/__pycache__
|
|
|
|
@-rm -rf ./tests/__pycache__
|
|
|
|
@-rm -rf ./tests/rnsconfig/storage
|
|
|
|
@-rm -rf ./*.egg-info
|
|
|
|
@echo Done
|
2021-12-01 11:23:19 -07: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 04:46:20 -06:00
|
|
|
build_sdist_only:
|
|
|
|
python3 setup.py sdist
|
|
|
|
|
2021-12-01 11:23:19 -07:00
|
|
|
build_wheel:
|
|
|
|
python3 setup.py sdist bdist_wheel
|
|
|
|
|
2022-06-10 04:46:20 -06:00
|
|
|
build_pure_wheel:
|
|
|
|
python3 setup.py sdist bdist_wheel --pure
|
|
|
|
|
2022-06-22 02:08:27 -06:00
|
|
|
documentation:
|
|
|
|
make -C docs html
|
|
|
|
|
2022-06-22 02:12:05 -06:00
|
|
|
manual:
|
|
|
|
make -C docs latexpdf
|
|
|
|
|
|
|
|
release: test remove_symlinks build_wheel build_pure_wheel documentation manual create_symlinks
|
2021-12-01 11:23:19 -07:00
|
|
|
|
2022-09-06 11:42:50 -06:00
|
|
|
debug: remove_symlinks build_wheel build_pure_wheel create_symlinks
|
|
|
|
|
2021-12-01 11:23:19 -07:00
|
|
|
upload:
|
2022-06-10 04:46:20 -06:00
|
|
|
@echo Ready to publish release, hit enter to continue
|
|
|
|
@read VOID
|
2021-12-01 11:23:19 -07:00
|
|
|
@echo Uploading to PyPi...
|
|
|
|
twine upload dist/*
|
2022-06-10 04:46:20 -06:00
|
|
|
@echo Release published
|