27
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| --- | ||||
| kind: pipeline | ||||
| type: docker | ||||
| name: torrentSearch | ||||
|  | ||||
| platform: | ||||
|   os: linux | ||||
|   arch: amd64 | ||||
|  | ||||
| steps: | ||||
|   - name: Install python | ||||
|     image: python:3.8 | ||||
|     commands: | ||||
|       - python setup.py install | ||||
|       - pip install pytest | ||||
|       - pytest | ||||
|  | ||||
|   - name: Upload coverage report | ||||
|     image: python:3.8 | ||||
|     commands: | ||||
|       - python setup.py install | ||||
|       - pip install -r requirements-dev.txt | ||||
|       - coverage run -m pytest | ||||
|       - codecov -t $CODECOV_TOKEN | ||||
|     environment: | ||||
|       CODECOV_TOKEN: | ||||
|         from_secret: CODECOV_TOKEN | ||||
| @@ -1,11 +1,8 @@ | ||||
| # Torrent Search | ||||
|  | ||||
| [](https://www.python.org/downloads/release/python-360/) | ||||
|  | ||||
| [](https://travis-ci.org/KevinMidboe/torrent_search) | ||||
| [](https://codecov.io/gh/KevinMidboe/torrent_search) | ||||
| [](https://snyk.io/test/github/kevinmidboe/torrent_search?targetFile=requirements.txt) | ||||
| [](LICENSE) | ||||
| | Tested version | PyPi package | Drone CI | Travis CI | Code coverage | Known vulnerabilities | License | | ||||
| |:--------|:------|:------|:------|:------|:------|:------------| | ||||
| | [](https://www.python.org/downloads/release/python-360/) |  | [](https://drone.schleppe.cloud/KevinMidboe/torrent_search) | [](https://travis-ci.org/KevinMidboe/torrent_search) | [](https://codecov.io/gh/KevinMidboe/torrent_search) | [](https://snyk.io/test/github/kevinmidboe/torrent_search?targetFile=requirements.txt) | [](LICENSE) | ||||
|  | ||||
| ## Idea | ||||
| The idea behind this project is to create a modular torrent searcher/indexer in python. Currently we have the option to search for two sites, thepiratebay and with jackett. To add more sites one only needs to create a scraper script for a specific service, and from there create torrent class objects that are returned back to the search script. If the new site needs specific configuration values this can be set in the config.ini file and needs to be imported in the site selector in search.py.  | ||||
|   | ||||
| @@ -3,3 +3,4 @@ | ||||
| # dependencies for testing | ||||
| pytest>=3.2.5 | ||||
| codecov>=1.4.0 | ||||
| coverage==5.5 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user