diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c6d44dc --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,28 @@ +name: s4cmd + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.6, 3.7, 3.8, 3.9] #TODO '3.9-dev' and 'nightly' + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get -qq update + sudo apt-get install -y tree + python -m pip install --upgrade pip + pip install flake8 pytest pytz boto3 + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test + run: | + BUILD_ID=$BUILD_NUMBER && ./runtests.sh \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dfd2bbe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -os: linux -dist: xenial -python: -- '2.7' -- '3.6' -- '3.7' -- '3.8' -- '3.9' -- '3.9-dev' -- 'nightly' -before_install: -- sudo apt-get -qq update -- sudo apt-get install -y tree -install: -- pip install pytz boto3 -script: -- export BUILD_ID="$TRAVIS_BUILD_ID" -- "./runtests.sh" diff --git a/runtests.sh b/runtests.sh index ea36e8d..821700a 100755 --- a/runtests.sh +++ b/runtests.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # # Copyright 2012-2021 BloomReach, Inc. # @@ -839,7 +841,7 @@ fi echo 'Initializing...' -initialize > /dev/null 2>&1 +initialize #> /dev/null 2>&1 echo "Executing test cases with $PYTHON_VERSION" pushd $LOCALDIR > /dev/null for case in $TEST_CASES diff --git a/setup.py b/setup.py index a7d1e6d..ee3a5b5 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ __author__ = "Chou-han Yang" __copyright__ = "Copyright 2012-2018 BloomReach, Inc." -__license__ = "http://www.apache.org/licenses/LICENSE-2.0" +__license__ = "Apache License 2.0" __version__ = "2.1.0" __maintainer__ = "Navin Pai, Naveen Vardhi" __status__ = "Development" @@ -44,6 +44,7 @@ def run(self): description='Super S3 command line tool', author=__author__, license=__license__, + license_files = ["LICENSE"], long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/bloomreach/s4cmd', @@ -55,4 +56,9 @@ def run(self): 's4cmd = s4cmd:main', ]}, cmdclass={'install': install}, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + ], )