Skip to content

Commit

Permalink
Use manylinux for whl deployment on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Jan 21, 2022
1 parent ddb9041 commit c453973
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,30 @@ jobs:
run: |
python setup.py bdist_wheel
twine upload dist/*
deploy-cython-manylinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.10

- uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'cython'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine --upgrade
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py bdist_wheel
twine upload dist/*-manylinux*.whl
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,43 @@ jobs:
name: python_box
path: dist/*.whl

package-manylinux-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: package-manylinux-check-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install coveralls flake8 flake8-print mypy setuptools wheel twine Cython
- uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'cython'

- name: Test packaged wheel on linux
run: |
pip install dist/*cp310-manylinux*.whl
rm -rf box
python -m pytest
- name: Upload wheel artifact
uses: actions/upload-artifact@v2
with:
name: python_box
path: dist/*-manylinux*.whl

test:
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2020 Chris Griffith
Copyright (c) 2017-2022 Chris Griffith

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ But you can also sub out "ruamel.yaml" for "PyYAML".

Check out `more details <https://github.com/cdgriffith/Box/wiki/Installation>`_ on installation details.

Box 5 is tested on python 3.7+, if you are upgrading from previous versions, please look through
Box 6 is tested on python 3.7+, if you are upgrading from previous versions, please look through
`any breaking changes and new features <https://github.com/cdgriffith/Box/wiki/Major-Version-Breaking-Changes-and-New-Features>`_.

Optimized Version
-----------------

Box 5.5 is introducing Cython optimizations for major platforms by default.
Box 6 is introducing Cython optimizations for major platforms by default.
Loading large data sets can be up to 10x faster!

If you are **not** on a x86_64 supported system you will need to do some extra work to install the optimized version.
Expand Down Expand Up @@ -115,7 +115,7 @@ Also special shout-out to PythonBytes_, who featured Box on their podcast.
License
=======

MIT License, Copyright (c) 2017-2020 Chris Griffith. See LICENSE_ file.
MIT License, Copyright (c) 2017-2022 Chris Griffith. See LICENSE_ file.


.. |BoxImage| image:: https://raw.githubusercontent.com/cdgriffith/Box/master/box_logo.png
Expand Down
2 changes: 1 addition & 1 deletion box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

__author__ = "Chris Griffith"
__version__ = "6.0.0rc1"
__version__ = "6.0.0rc2"

from box.box import Box
from box.box_list import BoxList
Expand Down
2 changes: 1 addition & 1 deletion box/box.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017-2020 - Chris Griffith - MIT License
# Copyright (c) 2017-2022 - Chris Griffith - MIT License
"""
Improved dictionary access through dot notation with additional tools.
"""
Expand Down
2 changes: 1 addition & 1 deletion box/box_list.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017-2020 - Chris Griffith - MIT License
# Copyright (c) 2017-2022 - Chris Griffith - MIT License
import copy
import re
from os import PathLike
Expand Down

0 comments on commit c453973

Please sign in to comment.