commit
5d94850eb6
|
@ -10,12 +10,12 @@ env:
|
|||
- secure: CQYL7MH6tSVrCcluIfWfDSTo4E/p+9pF0eI7Vtf0oaZBzyulODHK8h/mzJp4HwezyfOu0RCedq6sloGQr1/29CvWWESaYyoGoGz9Mz2ZS+MpIcjGISfZa+x4vSp6QPFvd4i/1Z/1j2gJVVyswkrIVUwZIDJtfAKzZI5iHx2gH8Y=
|
||||
- secure: SsKJoJwtDVWrL5xxl9C/gTRy6FhfRQQNNAFOogl9mTs/WeI2t9QTYoKsxLPXOdoRdu4MvT3h/B2sjwggt7zP81fBVxQRTkg4nq0zSHlj0NqclbFa6I5lUYdGwH9gPk/HWJJwXhKRDsqn/iRw2v+qBDs/j3kIgPQ0yjM58LEPXic=
|
||||
matrix:
|
||||
- TOXENV=lint
|
||||
- TOXENV=py27
|
||||
- TOXENV=py33
|
||||
- TOXENV=py34
|
||||
- TOXENV=pypy
|
||||
- TOXENV=pypy3
|
||||
- TOXENV=lint
|
||||
sudo: false
|
||||
install:
|
||||
- travis_retry pip install tox
|
||||
|
|
|
@ -80,7 +80,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
|
|||
|
||||
To run all unit and integration tests:
|
||||
```sh
|
||||
pip install pytest
|
||||
pip install pytest flaky
|
||||
py.test
|
||||
```
|
||||
|
||||
|
|
26
RELEASING.md
Normal file
26
RELEASING.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Release Checklist
|
||||
|
||||
* [ ] Get master to the appropriate code release state. [Travis CI](https://travis-ci.org/pylast/pylast) should be running cleanly for all merges to master.
|
||||
* [ ] Update version in `pylast/__init__.py` and `setup.py` and commit:
|
||||
```bash
|
||||
git add pylast/__init__.py setup.py
|
||||
git commit -m "Release 1.1.0"
|
||||
```
|
||||
* [ ] Tag the last commit with the version number:
|
||||
```bash
|
||||
git tag -a 1.1.0
|
||||
```
|
||||
* [ ] Release on PyPI:
|
||||
```bash
|
||||
python setup.py register
|
||||
python setup.py sdist --format=gztar upload
|
||||
```
|
||||
* [ ] Push: `git push`
|
||||
* [ ] Push tags: `git push --tags`
|
||||
* [ ] Create new GitHub release: https://github.com/pylast/pylast/releases/new
|
||||
* [ ] Update develop branch from master:
|
||||
```bash
|
||||
git checkout develop
|
||||
git merge master --ff-only
|
||||
git push
|
||||
```
|
|
@ -20,12 +20,6 @@
|
|||
#
|
||||
# http://code.google.com/p/pylast/
|
||||
|
||||
__version__ = '1.1.0'
|
||||
__author__ = 'Amr Hassan, hugovk'
|
||||
__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2014 hugovk"
|
||||
__license__ = "apache2"
|
||||
__email__ = 'amr.hassan@gmail.com'
|
||||
|
||||
import hashlib
|
||||
from xml.dom import minidom
|
||||
import xml.dom
|
||||
|
@ -36,9 +30,14 @@ import sys
|
|||
import collections
|
||||
import warnings
|
||||
import re
|
||||
|
||||
import six
|
||||
|
||||
__version__ = '1.1.0'
|
||||
__author__ = 'Amr Hassan, hugovk'
|
||||
__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2014 hugovk"
|
||||
__license__ = "apache2"
|
||||
__email__ = 'amr.hassan@gmail.com'
|
||||
|
||||
|
||||
def _deprecation_warning(message):
|
||||
warnings.warn(message, DeprecationWarning)
|
||||
|
|
2
setup.py
2
setup.py
|
@ -1,6 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
import os
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"""
|
||||
Integration (not unit) tests for pylast.py
|
||||
"""
|
||||
from flaky import flaky
|
||||
import os
|
||||
import pytest
|
||||
from random import choice
|
||||
|
@ -30,6 +31,7 @@ def load_secrets():
|
|||
return doc
|
||||
|
||||
|
||||
@flaky
|
||||
class TestPyLast(unittest.TestCase):
|
||||
|
||||
secrets = None
|
||||
|
|
Loading…
Reference in a new issue