Skip to content

Commit

Permalink
Updated twine make rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dhylands committed Jan 29, 2024
1 parent 624d5b1 commit 6b80fbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
#
# Note: My setup uses the username/password stored in the ~/.pypirc file
#

test:
./tests/test-rshell.sh

# Creates the source distribution tarball
sdist:
python3 setup.py sdist

# Registers this package on the pypi test server
register-test:
python3 setup.py register -r pypitest

# Creates the distribution tarball and uploads to the pypi test server
upload-test:
rm -rf dist/*
python3 setup.py sdist
twine upload -u dhylands --repository-url https://test.pypi.org/legacy/ dist/*
twine upload -r testpypi dist/*

# Creates the distribution tarball and uploads to the pypi live server
upload:
#python3 setup.py sdist upload -r pypi
rm -rf dist/*
python3 setup.py sdist
twine upload -u dhylands dist/*
twine upload -r pypi dist/*

# Registers this package on the pypi live server
register:
python3 setup.py register -r pypi
requirements:
pip install -r requirements.txt
2 changes: 1 addition & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def is_micropython_usb_device(port):
if usb_id.startswith('usb vid:pid=2e8a:0005'):
USB_BUFFER_SIZE = RPI_PICO_USB_BUFFER_SIZE
return True
# Check for XIAO ESP32C3
# Check for XIAO ESP32S3
if usb_id.startswith('usb vid:pid=303a:4001'):
USB_BUFFER_SIZE = 256
return True
Expand Down

0 comments on commit 6b80fbe

Please sign in to comment.