-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,36 +7,25 @@ on: | |
|
||
jobs: | ||
|
||
publish-linux: | ||
environment: PyPI | ||
wheel-linux: | ||
runs-on: ubuntu-latest | ||
name: Publish Linux wheels | ||
name: Build Linux wheels | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install build package | ||
run: python -m pip install -U build | ||
- name: Build a source tarball | ||
run: python -m build --sdist --outdir dist | ||
- name: Build manylinux wheels | ||
uses: RalfG/[email protected] | ||
with: | ||
build-requirements: 'setuptools' | ||
- name: Publish distributions to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
- name: Store built wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
name: wheels | ||
path: dist/* | ||
|
||
publish-osx: | ||
environment: PyPI | ||
wheel-osx: | ||
runs-on: macos-latest | ||
name: Publish OSX wheels | ||
name: Build OSX wheels | ||
strategy: | ||
matrix: | ||
python-version: | ||
|
@@ -45,8 +34,6 @@ jobs: | |
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
- pypy-3.6 | ||
- pypy-3.7 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
@@ -55,7 +42,7 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install build package | ||
run: python -m pip install -U build | ||
run: python -m pip install -U build pip setuptools | ||
- name: Build wheel distribution | ||
run: python -m build --wheel --outdir dist | ||
- name: Store built wheels | ||
|
@@ -94,3 +81,4 @@ jobs: | |
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
skip_existing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
|
||
## [Unreleased] | ||
|
||
[Unreleased]: https://github.com/althonos/iocursor/compare/v1.0.0...HEAD | ||
|
||
|
||
## [v0.1.0] - 2021-02-06 | ||
|
||
[v0.1.0]: https://github.com/althonos/iocursor/compare/f47f405...v0.1.0 | ||
|
||
Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# coding: utf-8 | ||
"""A zero-copy file-like wrapper for Python byte buffers. | ||
""" | ||
|
||
import io | ||
import os | ||
|
||
from .cursor import Cursor | ||
|
||
__author__ = "Martin Larralde <[email protected]>" | ||
__version__ = "0.1.0" | ||
__license__ = "MIT" | ||
|
||
io.IOBase.register(Cursor) # type: ignore | ||
io.BufferedIOBase.register(Cursor) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ version = attr: iocursor.__version__ | |
author = Martin Larralde | ||
author-email = [email protected] | ||
home-page = https://github.com/althonos/iocursor | ||
description = A zero-copy file-like wrapper for byte buffers, inspired by Rust `std::io::Cursor`. | ||
description = A zero-copy file-like wrapper for byte buffers, inspired by Rust's std::io::Cursor. | ||
long-description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = MIT | ||
|
@@ -21,18 +21,21 @@ classifiers = | |
Programming Language :: C | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Programming Language :: Python :: Implementation :: CPython | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Utilities | ||
Typing :: Typed | ||
project_urls = | ||
Bug Tracker = https://github.com/althonos/iocursor/issues | ||
Changelog = https://github.com/althonos/iocursor/blob/master/CHANGELOG.md | ||
Coverage = https://codecov.io/gh/althonos/iocursor | ||
Builds = https://github.com/althonos/iocursor/actions | ||
[options] | ||
zip_safe = false | ||
|