Skip to content

Commit 279628e

Browse files
author
Tonye Jack
committed
Fixed test and updated classifiers
1 parent 4c19f34 commit 279628e

File tree

7 files changed

+65
-6
lines changed

7 files changed

+65
-6
lines changed

.pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ confidence=
6161
# no Warning level messages displayed, use "--disable=all --enable=classes
6262
# --disable=W".
6363
disable=print-statement,
64+
super-with-arguments,
6465
parameter-unpacking,
6566
unpacking-in-except,
6667
old-raise-syntax,

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ matrix:
77
env: TOXENV=py34
88
- python: 3.5
99
env: TOXENV=py35
10+
- python: 3.6
11+
env: TOXENV=py36
12+
- python: 3.7
13+
env: TOXENV=py37
14+
- python: 3.8
15+
env: TOXENV=py38
16+
- python: 3.9
17+
env: TOXENV=py39
1018
- python: pypy
1119
env: TOXENV=pypy
1220
install:

Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Self-Documented Makefile see https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
2+
3+
.DEFAULT_GOAL := help
4+
5+
PYTHON := /usr/bin/env python
6+
PYTHON_PIP := /usr/bin/env pip
7+
8+
# Put it first so that "make" without argument is like "make help".
9+
help:
10+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-32s-\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
11+
12+
.PHONY: help
13+
14+
install: ## Install development extra dependencies.
15+
@echo "Installing development requirements..."
16+
@$(PYTHON_PIP) install -e .'[all]' -r requirements-tox.txt
17+
18+
test:
19+
@echo "Running tox..."
20+
@pip freeze | grep -q -i 'tox' || $(PYTHON_PIP) install -r requirements-tox.txt
21+
@tox

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![PyPI version](https://badge.fury.io/py/graphene-file-upload.svg)](https://badge.fury.io/py/graphene-file-upload)
1+
[![Build Status](https://travis-ci.com/lmcgartland/graphene-file-upload.svg?branch=master)](https://travis-ci.com/lmcgartland/graphene-file-upload) [![PyPI version](https://badge.fury.io/py/graphene-file-upload.svg)](https://badge.fury.io/py/graphene-file-upload)
22

33
# graphene-file-upload
44

graphene_file_upload/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ def new_merged_dict(*dicts):
5858

5959
def new_list_with_replaced_item(input_list, index, new_value):
6060
"""Creates new list with replaced item at specified index"""
61-
output = [i for i in input_list]
61+
output = input_list
6262
output[index] = new_value
6363
return output

setup.py

+29-1
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,38 @@
3838
url='https://github.com/lmcgartland/graphene-file-upload', # use the URL to the github repo
3939
# download_url = 'https://github.com/lmcgartland/graphene-file-upload/archive/0.1.0.tar.gz',
4040
keywords=['graphql', 'graphene', 'apollo', 'upload'], # arbitrary keywords
41-
classifiers=[],
4241
install_requires=[
4342
'six>=1.11.0',
4443
],
44+
classifiers=[
45+
"Development Status :: 5 - Production/Stable",
46+
"Intended Audience :: Developers",
47+
"License :: OSI Approved :: MIT License",
48+
"Natural Language :: English",
49+
"Topic :: Internet :: WWW/HTTP",
50+
"Operating System :: OS Independent",
51+
"Programming Language :: Python :: 2.7",
52+
"Programming Language :: Python :: 3.4",
53+
"Programming Language :: Python :: 3.5",
54+
"Programming Language :: Python :: 3.6",
55+
"Programming Language :: Python :: 3.7",
56+
"Programming Language :: Python :: 3.8",
57+
"Programming Language :: Python :: 3.9",
58+
"Programming Language :: Python :: Implementation :: CPython",
59+
"Programming Language :: Python :: Implementation :: PyPy",
60+
"Framework :: Django :: 1.11",
61+
"Framework :: Django :: 2.0",
62+
"Framework :: Django :: 2.1",
63+
"Framework :: Django :: 2.2",
64+
"Framework :: Django :: 3.0",
65+
"Framework :: Django :: 3.1",
66+
"Framework :: Flask :: 1.0.2",
67+
"Framework :: Flask :: 1.0.3",
68+
"Framework :: Flask :: 1.0.4",
69+
"Framework :: Flask :: 1.1.0",
70+
"Framework :: Flask :: 1.1.1",
71+
"Framework :: Flask :: 1.1.2",
72+
],
4573
extras_require={
4674
'flask': flask_requires,
4775
'django': django_requires,

tox.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py34, py35, py36, py37
7+
envlist = py27, py34, py35, py36, py37, py38, py39
8+
skip_missing_interpreters = true
89

910
[testenv]
1011
deps =
1112
.[all]
1213
coverage
1314
pytest
1415
pytest-cov
15-
py3{4,5,6,7}: pylint
16+
py3{4,5,6,7,8,9}: pylint
1617
commands =
1718
-coverage clean
18-
py3{4,5,6,7}: pylint graphene_file_upload
19+
py3{4,5,6,7,8,9}: pylint graphene_file_upload
1920
py.test --cov=graphene_file_upload -v tests/

0 commit comments

Comments
 (0)