Skip to content

Commit

Permalink
Merge pull request #236 from transifex/py37
Browse files Browse the repository at this point in the history
Add support for Python 3.7
  • Loading branch information
rigaspapas committed Jul 3, 2018
2 parents 58259ab + 28decbd commit c8434af
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
8 changes: 5 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ jobs:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
TOX_PY27: 2.7.13
TOX_PY35: 3.5.2
TOX_PY36: 3.6.1
TOX_PY35: 3.5.5
TOX_PY36: 3.6.5
TOX_PY37: 3.7-dev
# To see the list of pre-built images that CircleCI provides for most
# common languages see
# https://circleci.com/docs/2.0/circleci-images/
Expand Down Expand Up @@ -42,7 +43,8 @@ jobs:
- run: pyenv install -s $TOX_PY27
- run: pyenv install -s $TOX_PY35
- run: pyenv install -s $TOX_PY36
- run: pyenv local $TOX_PY27 $TOX_PY35 $TOX_PY36
- run: pyenv install -s $TOX_PY37
- run: pyenv local $TOX_PY27 $TOX_PY35 $TOX_PY36 $TOX_PY37
# Save dependency cache
- save_cache:
key: txclient-{{ .Branch }}-{{ epoch }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Build transifex-client for Windows

2. Download and install [Python](https://www.python.org/downloads/windows/).

At this step choose the right version of python (2.7, 3.5 or 3.6) and x86 or x86-64 instruction set.
At this step choose the right version of python (2.7, 3.5, 3.6 or 3.7) and x86 or x86-64 instruction set.

Make sure pip marked for installation(default for latest installers).

Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ install:

# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "pip install --disable-pip-version-check --user --upgrade pip==9.0.3"
- "pip install pyinstaller"
- "python -m pip install --disable-pip-version-check --user --upgrade pip==9.0.3"
- "python -m pip install pyinstaller"

# Set up the project in develop mode. If some dependencies contain
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
- pip install -e .
- "python -m pip install -e ."

build_script:
# Build the compiled extension
Expand Down
25 changes: 13 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,38 @@


def get_file_content(filename):
with open(filename, 'r', encoding='UTF-8') as f:
with open(filename, "r", encoding="UTF-8") as f:
return f.read()


setup(
name="transifex-client",
version=txclib.__version__,
entry_points={'console_scripts': ['tx=txclib.cmdline:main']},
entry_points={"console_scripts": ["tx=txclib.cmdline:main"]},
description="A command line interface for Transifex",
long_description=get_file_content('README.md'),
long_description=get_file_content("README.md"),
author="Transifex",
author_email="admin@transifex.com",
url="https://www.transifex.com",
license="GPLv2",
dependency_links=[],
setup_requires=[],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.7',
install_requires=get_file_content('requirements.txt').splitlines(),
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8",
install_requires=get_file_content("requirements.txt").splitlines(),
tests_require=["mock"],
data_files=[],
test_suite="tests",
zip_safe=False,
packages=['txclib'],
packages=["txclib"],
include_package_data=True,
package_data={},
keywords=('translation', 'localization', 'internationalization',),
keywords=("translation", "localization", "internationalization",),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36}-{vanilla,pyopenssl}
envlist = py{27,35,36,37}-{vanilla,pyopenssl}

[testenv]
deps =
Expand Down
2 changes: 1 addition & 1 deletion txclib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-

# https://www.python.org/dev/peps/pep-0440/#examples-of-compliant-version-schemes
__version__ = '0.13.3'
__version__ = '0.13.4'

0 comments on commit c8434af

Please sign in to comment.