Skip to content

Commit

Permalink
Update Installation Scripts in CI (#108)
Browse files Browse the repository at this point in the history
* Update travis script

* Updated appveyor script

* Relax codecov
  • Loading branch information
avik-pal committed Jul 2, 2019
1 parent a9f28fd commit 0b10f84
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ install:
- "%PYTHON%/python -m pip install --upgrade pip"

# Install torch with pip and other dependencies
- pip install "https://download.pytorch.org/whl/cpu/torch-1.0.1-%PY_TAG%-%PY_TAG%m-win_amd64.whl"
- pip install torchvision scipy
- pip install "https://download.pytorch.org/whl/cpu/torch-1.1.0-%PY_TAG%-%PY_TAG%m-win_amd64.whl"
- pip install "https://download.pytorch.org/whl/cpu/torchvision-0.3.0-%PY_TAG%-%PY_TAG%m-win_amd64.whl"
- pip install scipy

# Now install spiceypy
- IF "%ARCH%"=="32" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86) ELSE (ECHO "probably a 64bit build")
Expand Down
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ coverage:
project:
default:
enabled: true
target: 75%
target: 50%

ignore:
- "setup.py"
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ jobs:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment -c pytorch python=$TRAVIS_PYTHON_VERSION $PYTORCH_PACKAGE
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install pytorch-cpu torchvision-cpu -c pytorch

install:
- python setup.py install
Expand All @@ -44,6 +45,7 @@ jobs:

after_success:
- bash <(curl -s https://codecov.io/bash)
- source deactivate

# Auto Deploy to Pip and Conda from here itself

2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
numpy
pillow==5.3.0
torch
torchvision
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def find_version(*file_paths):

VERSION = find_version("torchgan", "__init__.py")

requirements = ["numpy", "pillow==5.3.0", "torch", "torchvision"]
requirements = ["numpy", "pillow==5.3.0"]

setup(
# Metadata
name="torchgan",
version=VERSION,
author="Avik Pal & Aniket Das",
author_email="torchgan@gmail.com",
author_email="avikpal@cse.iitk.ac.in",
url="https://github.com/torchgan/torchgan",
description="Research Framework for easy and efficient training of GANs based on Pytorch",
long_description=readme,
Expand Down

0 comments on commit 0b10f84

Please sign in to comment.