-
Notifications
You must be signed in to change notification settings - Fork 99
Drop python 2 and 3.5 #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,10 @@ max-complexity = 10 | |
| ignore = | ||
| E126, | ||
| E501, | ||
| E741, | ||
| E722, | ||
| F401, | ||
| F811, | ||
| C901 | ||
| C901, | ||
| W503, | ||
| W504 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| argcomplete==1.8.2 | ||
| colorama==0.3.9 | ||
| flake8==3.2.1 | ||
| jmespath==0.9.2 | ||
| mock==2.0.0 | ||
| pylint==1.9.4; python_version <= '2.7' | ||
| pylint==2.3.1; python_version >= '3.5' | ||
| pygments==2.2.0 | ||
| pyyaml==3.12 | ||
| six==1.10.0 | ||
| tabulate==0.7.7 | ||
| vcrpy==1.10.3 | ||
| pytest==4.6.6 | ||
| argcomplete==1.11.1 | ||
| colorama==0.4.3 | ||
| flake8==3.7.9 | ||
| jmespath==0.9.4 | ||
| mock==4.0.1 | ||
| pylint==2.3.0 | ||
| Pygments==2.5.2 | ||
| PyYAML==5.3 | ||
| six==1.14.0 | ||
| tabulate==0.8.6 | ||
| vcrpy==4.0.2 | ||
| pytest==5.3.5 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated using |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,12 +39,11 @@ | |
| 'Intended Audience :: Developers', | ||
| 'Intended Audience :: System Administrators', | ||
| 'Programming Language :: Python', | ||
| 'Programming Language :: Python :: 2', | ||
| 'Programming Language :: Python :: 2.7', | ||
| 'Programming Language :: Python :: 3', | ||
| 'Programming Language :: Python :: 3.5', | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| 'Programming Language :: Python :: 3.6', | ||
| 'Programming Language :: Python :: 3.7', | ||
| 'Programming Language :: Python :: 3.8', | ||
| 'License :: OSI Approved :: MIT License', | ||
| ], | ||
| packages=['knack', 'knack.testsdk'], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,13 +186,15 @@ def test_set_config_value_file_permissions(self): | |
| file_mode = os.stat(self.cli_config.config_path).st_mode | ||
| self.assertTrue(bool(file_mode & stat.S_IRUSR)) | ||
| self.assertTrue(bool(file_mode & stat.S_IWUSR)) | ||
| self.assertFalse(bool(file_mode & stat.S_IXUSR)) | ||
| self.assertFalse(bool(file_mode & stat.S_IRGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IWGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IXGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IROTH)) | ||
| self.assertFalse(bool(file_mode & stat.S_IWOTH)) | ||
| self.assertFalse(bool(file_mode & stat.S_IXOTH)) | ||
| # only S_IRUSR and S_IWUSR are supported on Windows: https://docs.python.org/3.8/library/os.html#os.chmod | ||
| if os.name != 'nt': | ||
| self.assertFalse(bool(file_mode & stat.S_IXUSR)) | ||
| self.assertFalse(bool(file_mode & stat.S_IRGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IWGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IXGRP)) | ||
| self.assertFalse(bool(file_mode & stat.S_IROTH)) | ||
| self.assertFalse(bool(file_mode & stat.S_IWOTH)) | ||
| self.assertFalse(bool(file_mode & stat.S_IXOTH)) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Windows doesn't have Linux-like user/group/other concepts for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As far as I understand from the doc, the limitation only takes effect on I agreed on file mode checking across different OS platform, but if file mode checking differentiate on Windows, should we add additional support?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also didn't find the doc for
Checking permission on Windows requires
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe you are running this command on Cygwin which has additional file management logic. Running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, on CMD |
||
|
|
||
| def test_has_option_local(self): | ||
| section = 'MySection' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [tox] | ||
| envlist = py27,py35,py36,py37 | ||
| envlist = py36,py37,py38 | ||
| [testenv] | ||
| deps = -rrequirements.txt | ||
| commands= | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New entries are added to mute newer versions of flake8.
According to pycodestyle