Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify

  • Loading branch information...
commit 2a653d081c39ac2cbf6031b9b965880eb54214ae 1 parent 61310d4
@jacquev6 jacquev6 authored
View
1  .travis.yml
@@ -7,6 +7,5 @@ python:
- "3.2"
install:
- if [ $TRAVIS_PYTHON_VERSION == '2.5' ]; then pip install -r python25-requirements.txt --use-mirrors; fi
- - if [ $TRAVIS_PYTHON_VERSION == '2.6' ]; then pip install -r python26-requirements.txt --use-mirrors; fi
script:
- python setup.py test
View
18 github/tests/__init__.py
@@ -12,21 +12,3 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
-
-import sys
-
-atLeastPython27 = sys.hexversion >= 0x02070000
-
-if atLeastPython27:
- import unittest
-else: # pragma no cover
- import unittest2 as unittest # pragma no cover
-
-import AllTests
-
-
-def run():
- testLoader = unittest.loader.TestLoader()
- testRunner = unittest.runner.TextTestRunner(verbosity=1)
- test = testLoader.loadTestsFromModule(AllTests)
- return testRunner.run(test)
View
9 publish.sh
@@ -3,15 +3,16 @@
pep8 --ignore=E501 github *.py # pip install pep8
-python3 setup.py test
+python -3 setup.py test --quiet
+python3 setup.py test --quiet
-coverage run --branch "--include=github/*.py" "--omit=github/tests/*.py" setup.py test
+coverage run --branch "--include=build/lib.linux-x86_64-2.7/github/*.py" "--omit=build/lib.linux-x86_64-2.7/github/tests/*.py" setup.py test --quiet
coverage report --show-missing
-previousVersion=$( grep 'version =' setup.py | sed 's/.*version = \"\(.*\)\".*/\1/' )
+previousVersion=$( grep 'version=' setup.py | sed 's/.*version=\"\(.*\)\".*/\1/' )
echo "Next version number? (previous: '$previousVersion')"
read version
-sed -i -b "s/version = .*/version = \"$version\",/" setup.py
+sed -i -b "s/version=.*/version=\"$version\",/" setup.py
git add setup.py
git log v$previousVersion.. --oneline
View
1  python25-requirements.txt
@@ -1,2 +1 @@
simplejson
-unittest2
View
1  python26-requirements.txt
@@ -1 +0,0 @@
-unittest2
View
9 setup.py
@@ -14,14 +14,11 @@
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
-from setuptools import setup, Command
+import setuptools
import textwrap
-import sys
-atLeastPython3 = sys.hexversion >= 0x03000000
-
-setup(
+setuptools.setup(
name="PyGithub",
version="1.9.1",
description="Use the full Github API v3",
@@ -74,5 +71,5 @@
"Topic :: Software Development",
],
test_suite="github.tests.AllTests",
- use_2to3=atLeastPython3
+ use_2to3=True
)
Please sign in to comment.
Something went wrong with that request. Please try again.