Fix/drone setup missing packages (#4)
* Trying explicitly defining colored package version. * Try first installing from requirements. * Tried defining pyproject file. * Requirements references setup packages. * Import __version__ from import statement directly. * Removed unused packages and restored requirements file. * Install dependencies before running setup.
This commit is contained in:
@@ -11,6 +11,7 @@ steps:
|
|||||||
- name: Install python
|
- name: Install python
|
||||||
image: python:3.8
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
|
- pip install -r requirements.txt
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- pip install pytest
|
- pip install pytest
|
||||||
- pytest
|
- pytest
|
||||||
@@ -18,8 +19,8 @@ steps:
|
|||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
image: python:3.8
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
- python setup.py install
|
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
|
- python setup.py install
|
||||||
- coverage run -m pytest
|
- coverage run -m pytest
|
||||||
- codecov -t $CODECOV_TOKEN
|
- codecov -t $CODECOV_TOKEN
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
7
pyproject.toml
Normal file
7
pyproject.toml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = [
|
||||||
|
"setuptools>=42",
|
||||||
|
"wheel"
|
||||||
|
]
|
||||||
|
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
@@ -1,4 +1,2 @@
|
|||||||
beautifulsoup4>=4.6.0
|
|
||||||
termcolor>=1.1.0
|
|
||||||
docopt==0.6.2
|
docopt==0.6.2
|
||||||
colored==1.3.5
|
colored==1.3.5
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -23,9 +23,7 @@ setup(
|
|||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'docopt',
|
'docopt',
|
||||||
'beautifulsoup4',
|
'colored'
|
||||||
'termcolor',
|
|
||||||
'colored',
|
|
||||||
],
|
],
|
||||||
url='https://github.com/KevinMidboe/torrent_search',
|
url='https://github.com/KevinMidboe/torrent_search',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|||||||
Reference in New Issue
Block a user