mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Fix pypi release (#4983)
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -49,9 +49,11 @@ jobs: | ||||
|         with: | ||||
|           python-version: "3.x" | ||||
|       - name: Set up python environment | ||||
|         env: | ||||
|           ESPHOME_NO_VENV: 1 | ||||
|         run: | | ||||
|           script/setup | ||||
|           pip install setuptools wheel twine | ||||
|           pip install twine | ||||
|       - name: Build | ||||
|         run: python setup.py sdist bdist_wheel | ||||
|       - name: Upload | ||||
|   | ||||
| @@ -5,12 +5,13 @@ set -e | ||||
|  | ||||
| cd "$(dirname "$0")/.." | ||||
|  | ||||
| if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ]; then | ||||
| if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ] && [ ! "$ESPHOME_NO_VENV" ]; then | ||||
|   python3 -m venv venv | ||||
|   source venv/bin/activate | ||||
| fi | ||||
|  | ||||
| pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt | ||||
| pip3 install setuptools wheel | ||||
| pip3 install --no-use-pep517 -e . | ||||
|  | ||||
| pre-commit install | ||||
|   | ||||
		Reference in New Issue
	
	Block a user