Skip to content

Commit

Permalink
<>[Initial]: <Fix TravisCI>
Browse files Browse the repository at this point in the history
[]

[]
  • Loading branch information
Humberto Sanchez II committed Jun 25, 2022
1 parent 9f899de commit d5ba7f7
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ __pycache__/
build/
dist/
/untanglepyut.egg-info/
/pyenv-3.`0.0/
/pyenv-3.10.0/
.python-version
.envrc
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ language: python
cache: pip

python:
- "3.9.7"
- "3.10.0"

# command to install dependencies
install:
- pip3 install click
- pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
- pip3 install ogl


# command to run tests
Expand Down
19 changes: 19 additions & 0 deletions scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

function changeToProjectRoot {

areHere=$(basename "${PWD}")
export areHere
if [[ ${areHere} = "scripts" ]]; then
cd ..
fi
}

changeToProjectRoot

rm -rf dist build

find . -type d -name '*'.egg-info -delete

rm -rf .eggs
rm -rfv untanglepyut.egg-info
19 changes: 19 additions & 0 deletions scripts/packageme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

function changeToProjectRoot {

areHere=$(basename "${PWD}")
export areHere
if [[ ${areHere} = "scripts" ]]; then
cd ..
fi
}

changeToProjectRoot

clear

python -m build --sdist --wheel

# Check package
twine check dist/*
19 changes: 19 additions & 0 deletions scripts/runmypy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

function changeToProjectRoot {

export areHere=$(basename ${PWD})
if [[ ${areHere} = "scripts" ]]; then
cd ..
fi
}

changeToProjectRoot

mypy --config-file .mypi.ini --pretty --no-color-output --show-error-codes untanglepyut tests
# mypy --config-file .mypi.ini --pretty --show-error-codes org
status=$?

echo "Exit with status: ${status}"
exit ${status}

16 changes: 16 additions & 0 deletions scripts/runtests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

function changeToProjectRoot {

export areHere=`basename ${PWD}`
if [[ ${areHere} = "scripts" ]]; then
cd ..
fi
}

changeToProjectRoot

# python3 -m tests.RunTests
# python3 -m tests.TestAll $*

echo "Soon we will have some unit tests"
Empty file added tests/__init__.py
Empty file.
Empty file added tests/resources/__init__.py
Empty file.
Empty file added tests/untanglepyut/__init__.py
Empty file.
1 change: 1 addition & 0 deletions untanglepyut/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit d5ba7f7

Please sign in to comment.