-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from dipcode-software/feat/compat
Added compat to python3
- Loading branch information
Showing
10 changed files
with
83 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,46 @@ | ||
sudo: false | ||
language: python | ||
|
||
python: | ||
- 2.7 | ||
sudo: false | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
|
||
env: | ||
matrix: | ||
- django19 | ||
- django110 | ||
- django111 | ||
- djangomaster | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- python: "3.4" | ||
env: flake8 | ||
exclude: | ||
- python: "2.7" | ||
env: djangomaster | ||
- python: "3.6" | ||
env: django19 | ||
- python: "3.6" | ||
env: django111 | ||
allow_failures: | ||
- env: djangomaster | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
- $TRAVIS_BUILD_DIR/.tox | ||
|
||
install: | ||
- pip install tox | ||
- pip install --upgrade pip wheel setuptools | ||
- pip install coveralls codacy-coverage tox-travis | ||
|
||
script: | ||
- tox -e flake8 | ||
- tox -e travis | ||
- tox | ||
|
||
after_success: | ||
- coveralls | ||
- python-codacy-coverage -r coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
default_app_config = 'obfuscator.apps.ObfuscatorConfig' | ||
|
||
__version__ = '0.1.1' | ||
__version__ = '0.1.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
# Package meta-data. | ||
VERSION = __import__("obfuscator").__version__ | ||
NAME = 'django-obfuscate' | ||
DESCRIPTION = 'Django app to obfuscate data. ' | ||
DESCRIPTION = 'Django app to obfuscate text data.' | ||
URL = 'https://github.com/dipcode-software/django-obfuscate' | ||
EMAIL = '[email protected]' | ||
AUTHOR = 'Dipcode' | ||
|
@@ -49,9 +49,9 @@ def run(self): | |
except OSError: | ||
pass | ||
|
||
self.status('Building Source and Wheel distribution…') | ||
self.status('Building Source and Wheel (universal) distribution…') | ||
os.system( | ||
'{0} setup.py sdist bdist_wheel '.format(sys.executable) | ||
'{0} setup.py sdist bdist_wheel --universal'.format(sys.executable) | ||
) | ||
|
||
self.status('Uploading the package to {env} via Twine…'\ | ||
|
@@ -83,12 +83,17 @@ class DevelopmentPublishCommand(PublishCommand): | |
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
'Framework :: Django :: 1.9', | ||
'Framework :: Django :: 1.10', | ||
'Framework :: Django :: 1.11', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
], | ||
cmdclass={ | ||
'publish_dev': DevelopmentPublishCommand, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,23 @@ | ||
[tox] | ||
skipsdist = True | ||
envlist = py27,flake8 | ||
envlist = | ||
py{27,34,35}-django{19,110,111}, | ||
py{35,36}-django{111,master} | ||
flake8 | ||
|
||
[testenv] | ||
deps = -r{toxinidir}/requirements.txt | ||
commands = {envpython} runtests.py | ||
|
||
[testenv:flake8] | ||
deps = flake8 | ||
commands = flake8 {toxinidir}/obfuscator | ||
|
||
[testenv:coverage] | ||
basepython=python2.7 | ||
deps= | ||
-r{toxinidir}/requirements.txt | ||
coverage | ||
setenv= | ||
PYTHONWARNINGS=ignore | ||
commands= | ||
coverage run runtests.py {posargs:} | ||
coverage report | ||
coverage erase | ||
|
||
[testenv:travis] | ||
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
coverage | ||
coveralls | ||
setenv = | ||
PYTHONWARNINGS=ignore | ||
commands = | ||
mock >= 2.0.0 | ||
django19: Django>=1.9,<1.10 | ||
django110: Django>=1.10,<1.11 | ||
django111: Django>=1.11,<2.0 | ||
djangomaster: https://github.com/django/django/archive/master.tar.gz | ||
commands= | ||
coverage run runtests.py {posargs:} | ||
coverage report | ||
coverage xml | ||
coveralls | ||
|
||
[testenv:flake8] | ||
deps = flake8 | ||
commands = flake8 {toxinidir}/obfuscator |