diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..203f3c8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 7361358..fd73d6d 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -3,11 +3,7 @@ name: Python package -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request, workflow_dispatch] jobs: build: @@ -16,19 +12,21 @@ jobs: strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + include: + - experimental: false + continue-on-error: ${{ matrix.experimental }} steps: - uses: actions/checkout@v4 - with: - fetch-depth: 1000 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install dependencies + allow-prereleases: ${{ matrix.experimental }} + - name: Install project run: | python -m pip install --upgrade pip + pip install . - name: Lint with flake8 run: | pip install flake8 diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 947c71a..dc243eb 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -2,6 +2,12 @@ Changelog ######### +****** +v5.0.2 +****** + +- remove a usage of mktemp + ****** v5.0.1 ****** diff --git a/setup.py b/setup.py index 49d90a0..d7e1842 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ author_email=smmap.__contact__, url=smmap.__homepage__, platforms=["any"], - license="BSD", + license="BSD-3-Clause", packages=find_packages(), zip_safe=True, python_requires=">=3.7", diff --git a/smmap/__init__.py b/smmap/__init__.py index 429f47a..657c8c5 100644 --- a/smmap/__init__.py +++ b/smmap/__init__.py @@ -3,7 +3,7 @@ __author__ = "Sebastian Thiel" __contact__ = "byronimo@gmail.com" __homepage__ = "https://github.com/gitpython-developers/smmap" -version_info = (5, 0, 1) +version_info = (5, 0, 2) __version__ = '.'.join(str(i) for i in version_info) # make everything available in root package for convenience diff --git a/smmap/test/lib.py b/smmap/test/lib.py index ca91ee9..b15b0ec 100644 --- a/smmap/test/lib.py +++ b/smmap/test/lib.py @@ -18,12 +18,12 @@ class FileCreator: def __init__(self, size, prefix=''): assert size, "Require size to be larger 0" - self._path = tempfile.mktemp(prefix=prefix) self._size = size - with open(self._path, "wb") as fp: - fp.seek(size - 1) - fp.write(b'1') + with tempfile.NamedTemporaryFile("wb", prefix=prefix, delete=False) as file: + self._path = file.name + file.seek(size - 1) + file.write(b'1') assert os.path.getsize(self.path) == size
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: