mirror of
				https://github.com/benbusby/whoogle-search.git
				synced 2021-09-19 22:48:34 +03:00 
			
		
		
		
	Move timestamp for dev builds into build process
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/pypi.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/pypi.yml
									
									
									
									
										vendored
									
									
								
							| @@ -18,6 +18,8 @@ jobs: | |||||||
|         pip install |         pip install | ||||||
|         build |         build | ||||||
|         --user |         --user | ||||||
|  |     - name: Set dev timestamp | ||||||
|  |       run: echo "DEV_BUILD=$(date +%s)" >> $GITHUB_ENV | ||||||
|     - name: Build binary wheel and source tarball |     - name: Build binary wheel and source tarball | ||||||
|       run: >- |       run: >- | ||||||
|         python -m |         python -m | ||||||
| @@ -26,8 +28,6 @@ jobs: | |||||||
|         --wheel |         --wheel | ||||||
|         --outdir dist/ |         --outdir dist/ | ||||||
|         . |         . | ||||||
|       env: |  | ||||||
|         DEV_BUILD: 1 |  | ||||||
|     - name: Publish distribution to TestPyPI |     - name: Publish distribution to TestPyPI | ||||||
|       uses: pypa/gh-action-pypi-publish@master |       uses: pypa/gh-action-pypi-publish@master | ||||||
|       with: |       with: | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								setup.py
									
									
									
									
									
								
							| @@ -1,6 +1,5 @@ | |||||||
| import os | import os | ||||||
| import setuptools | import setuptools | ||||||
| import time |  | ||||||
|  |  | ||||||
| long_description = open('README.md', 'r').read() | long_description = open('README.md', 'r').read() | ||||||
|  |  | ||||||
| @@ -8,7 +7,7 @@ requirements = list(open('requirements.txt', 'r')) | |||||||
|  |  | ||||||
| optional_dev_tag = '' | optional_dev_tag = '' | ||||||
| if os.getenv('DEV_BUILD'): | if os.getenv('DEV_BUILD'): | ||||||
|     optional_dev_tag = '.dev' + str(int(time.time())) |     optional_dev_tag = '.dev' + os.getenv('DEV_BUILD') | ||||||
|  |  | ||||||
| setuptools.setup( | setuptools.setup( | ||||||
|     author='Ben Busby', |     author='Ben Busby', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ben Busby
					Ben Busby