Skip to content

Commit

Permalink
Merge pull request #9 from mdmintz/fix-new-flake8-issues
Browse files Browse the repository at this point in the history
Fix new flake8 issues
  • Loading branch information
mdmintz authored Jul 31, 2023
2 parents bf82868 + b815b98 commit b55b7b6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nose/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pynose nose package
__version__ = "1.4.6"
__version__ = "1.4.7"
4 changes: 2 additions & 2 deletions nose/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ def configureLogging(self):
debugLogAbsPath = os.path.abspath(self.debugLog)
for h in logger.handlers:
if (
type(h) == logging.FileHandler
type(h) is logging.FileHandler
and h.baseFilename == debugLogAbsPath
):
found = True
else:
for h in logger.handlers:
if (
type(h) == logging.StreamHandler
type(h) is logging.StreamHandler
and h.stream == self.logStream
):
found = True
Expand Down
2 changes: 1 addition & 1 deletion nose/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def isproperty(obj):
False
>>> isproperty(Foo.get)
True """
return type(obj) == property
return type(obj) is property


def getfilename(package, relativeTo=None):
Expand Down
20 changes: 14 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,23 @@
os.system("rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl")
os.system("rm -rf build/bdist.*; rm -rf build/lib")
print("\n*** Installing build: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade 'build>=0.10.0'")
os.system("python -m pip install --upgrade 'build'")
print("\n*** Installing pkginfo: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade 'pkginfo>=1.9.6'")
os.system("python -m pip install --upgrade 'pkginfo'")
print("\n*** Installing readme-renderer: *** (For PyPI uploads)\n")
os.system("python -m pip install --upgrade 'readme-renderer>=40.0'")
os.system("python -m pip install --upgrade 'readme-renderer'")
print("\n*** Installing jaraco.classes: *** (For PyPI uploads)\n")
os.system("python -m pip install --upgrade 'jaraco.classes'")
print("\n*** Installing more-itertools: *** (For PyPI uploads)\n")
os.system("python -m pip install --upgrade 'more-itertools'")
print("\n*** Installing zipp: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade 'zipp'")
print("\n*** Installing importlib-metadata: *** (For PyPI uploads)\n")
os.system("python -m pip install --upgrade 'importlib-metadata'")
print("\n*** Installing keyring, requests-toolbelt: *** (For PyPI)\n")
os.system("python -m pip install --upgrade keyring requests-toolbelt")
print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade 'twine>=4.0.2'")
print("\n*** Installing tqdm: *** (Required for PyPI uploads)\n")
os.system("python -m pip install --upgrade tqdm")
os.system("python -m pip install --upgrade 'twine'")
print("\n*** Rebuilding distribution packages: ***\n")
os.system("python -m build") # Create new tar/wheel
print("\n*** Publishing The Release to PyPI: ***\n")
Expand Down

0 comments on commit b55b7b6

Please sign in to comment.