| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,14 +15,14 @@ jobs: | |||
| 15 | 15 | runs-on: ubuntu-latest | |
| 16 | 16 | strategy: | |
| 17 | 17 | matrix: | |
| 18 | - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
| 18 | + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] | ||
| 19 | 19 | ||
| 20 | 20 | steps: | |
| 21 | 21 | - uses: actions/checkout@v2 | |
| 22 | 22 | with: | |
| 23 | 23 | fetch-depth: 1000 | |
| 24 | 24 | - name: Set up Python ${{ matrix.python-version }} | |
| 25 | - uses: actions/setup-python@v1 | ||
| 25 | + uses: actions/setup-python@v2 | ||
| 26 | 26 | with: | |
| 27 | 27 | python-version: ${{ matrix.python-version }} | |
| 28 | 28 | - name: Install dependencies | |
@@ -35,9 +35,9 @@ jobs: | |||
| 35 | 35 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| 36 | 36 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
| 37 | 37 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| 38 | - - name: Test with nose | ||
| 38 | + - name: Test | ||
| 39 | 39 | run: | | |
| 40 | - pip install nose | ||
| 40 | + pip install pytest | ||
| 41 | 41 | ulimit -n 48 | |
| 42 | 42 | ulimit -n | |
| 43 | - nosetests -v | ||
| 43 | + pytest -v | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,11 +24,11 @@ clean-files: | |||
| 24 | 24 | clean: clean-files clean-docs | |
| 25 | 25 | ||
| 26 | 26 | test: | |
| 27 | - nosetests | ||
| 27 | + pytest | ||
| 28 | 28 | ||
| 29 | 29 | coverage: | |
| 30 | - nosetests --with-coverage --cover-package=smmap | ||
| 31 | - | ||
| 30 | + pytest --cov smmap --cov-report xml | ||
| 31 | + | ||
| 32 | 32 | build: | |
| 33 | 33 | ./setup.py build | |
| 34 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ For performance critical 64 bit applications, a simplified version of memory map | |||
| 27 | 27 | ||
| 28 | 28 | ## Prerequisites | |
| 29 | 29 | ||
| 30 | - * Python 3.5+ | ||
| 30 | + * Python 3.6+ | ||
| 31 | 31 | * OSX, Windows or Linux | |
| 32 | 32 | ||
| 33 | 33 | The package was tested on all of the previously mentioned configurations. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - # -*- coding: utf-8 -*- | ||
| 2 | 1 | # | |
| 3 | 2 | # smmap documentation build configuration file, created by | |
| 4 | 3 | # sphinx-quickstart on Wed Jun 8 15:14:25 2011. | |
@@ -38,8 +37,8 @@ | |||
| 38 | 37 | master_doc = 'index' | |
| 39 | 38 | ||
| 40 | 39 | # General information about the project. | |
| 41 | - project = u'smmap' | ||
| 42 | - copyright = u'2011, Sebastian Thiel' | ||
| 40 | + project = 'smmap' | ||
| 41 | + copyright = '2011, Sebastian Thiel' | ||
| 43 | 42 | ||
| 44 | 43 | # The version info for the project you're documenting, acts as replacement for | |
| 45 | 44 | # |version| and |release|, also used in various other places throughout the | |
@@ -173,8 +172,8 @@ | |||
| 173 | 172 | # Grouping the document tree into LaTeX files. List of tuples | |
| 174 | 173 | # (source start file, target name, title, author, documentclass [howto/manual]). | |
| 175 | 174 | latex_documents = [ | |
| 176 | - ('index', 'smmap.tex', u'smmap Documentation', | ||
| 177 | - u'Sebastian Thiel', 'manual'), | ||
| 175 | + ('index', 'smmap.tex', 'smmap Documentation', | ||
| 176 | + 'Sebastian Thiel', 'manual'), | ||
| 178 | 177 | ] | |
| 179 | 178 | ||
| 180 | 179 | # The name of an image file (relative to this directory) to place at the top of | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ For performance critical 64 bit applications, a simplified version of memory map | |||
| 20 | 20 | ############# | |
| 21 | 21 | Prerequisites | |
| 22 | 22 | ############# | |
| 23 | - * Python 3.5+ | ||
| 23 | + * Python 3.6+ | ||
| 24 | 24 | * OSX, Windows or Linux | |
| 25 | 25 | ||
| 26 | 26 | The package was tested on all of the previously mentioned configurations. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,2 @@ | |||
| 1 | - [bdist_wheel] | ||
| 2 | - universal = 1 | ||
| 3 | - | ||
| 4 | 1 | [flake8] | |
| 5 | 2 | exclude = .tox,.venv,build,dist,doc | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | import smmap | |
| 12 | 12 | ||
| 13 | 13 | if os.path.exists("README.md"): | |
| 14 | - long_description = open('README.md', "r", encoding="utf-8").read().replace('\r\n', '\n') | ||
| 14 | + long_description = open('README.md', encoding="utf-8").read().replace('\r\n', '\n') | ||
| 15 | 15 | else: | |
| 16 | 16 | long_description = "See https://github.com/gitpython-developers/smmap" | |
| 17 | 17 | ||
@@ -26,7 +26,7 @@ | |||
| 26 | 26 | license="BSD", | |
| 27 | 27 | packages=find_packages(), | |
| 28 | 28 | zip_safe=True, | |
| 29 | - python_requires=">=3.5", | ||
| 29 | + python_requires=">=3.6", | ||
| 30 | 30 | classifiers=[ | |
| 31 | 31 | "Development Status :: 5 - Production/Stable", | |
| 32 | 32 | "Environment :: Console", | |
@@ -38,15 +38,13 @@ | |||
| 38 | 38 | "Operating System :: MacOS :: MacOS X", | |
| 39 | 39 | "Programming Language :: Python", | |
| 40 | 40 | "Programming Language :: Python :: 3", | |
| 41 | - "Programming Language :: Python :: 3.5", | ||
| 42 | 41 | "Programming Language :: Python :: 3.6", | |
| 43 | 42 | "Programming Language :: Python :: 3.7", | |
| 44 | 43 | "Programming Language :: Python :: 3.8", | |
| 45 | 44 | "Programming Language :: Python :: 3.9", | |
| 45 | + "Programming Language :: Python :: 3.10", | ||
| 46 | 46 | "Programming Language :: Python :: 3 :: Only", | |
| 47 | 47 | ], | |
| 48 | 48 | long_description=long_description, | |
| 49 | 49 | long_description_content_type='text/markdown', | |
| 50 | - tests_require=('nose', 'nosexcover'), | ||
| 51 | - test_suite='nose.collector' | ||
| 52 | 50 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | __all__ = ["SlidingWindowMapBuffer"] | |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | - class SlidingWindowMapBuffer(object): | ||
| 7 | + class SlidingWindowMapBuffer: | ||
| 8 | 8 | ||
| 9 | 9 | """A buffer like object which allows direct byte-wise object and slicing into | |
| 10 | 10 | memory of a mapped file. The mapping is controlled by the provided cursor. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | #}END utilities | |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | - class WindowCursor(object): | ||
| 18 | + class WindowCursor: | ||
| 19 | 19 | ||
| 20 | 20 | """ | |
| 21 | 21 | Pointer into the mapped region of the memory manager, keeping the map | |
@@ -233,7 +233,7 @@ def fd(self): | |||
| 233 | 233 | #} END interface | |
| 234 | 234 | ||
| 235 | 235 | ||
| 236 | - class StaticWindowMapManager(object): | ||
| 236 | + class StaticWindowMapManager: | ||
| 237 | 237 | ||
| 238 | 238 | """Provides a manager which will produce single size cursors that are allowed | |
| 239 | 239 | to always map the whole file. | |
@@ -486,7 +486,7 @@ class SlidingWindowMapManager(StaticWindowMapManager): | |||
| 486 | 486 | ||
| 487 | 487 | def __init__(self, window_size=-1, max_memory_size=0, max_open_handles=sys.maxsize): | |
| 488 | 488 | """Adjusts the default window size to -1""" | |
| 489 | - super(SlidingWindowMapManager, self).__init__(window_size, max_memory_size, max_open_handles) | ||
| 489 | + super().__init__(window_size, max_memory_size, max_open_handles) | ||
| 490 | 490 | ||
| 491 | 491 | def _obtain_region(self, a, offset, size, flags, is_recursive): | |
| 492 | 492 | # bisect to find an existing region. The c++ implementation cannot | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | 9 | #{ Utilities | |
| 10 | 10 | ||
| 11 | - class FileCreator(object): | ||
| 11 | + class FileCreator: | ||
| 12 | 12 | ||
| 13 | 13 | """A instance which creates a temporary file with a prefix and a given size | |
| 14 | 14 | and provides this info to the user. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments