Commit Graph

592 Commits

Author SHA1 Message Date
Zuul 7cf67355f7 Merge "CI: Remove centos-7 jobs" 2024-03-01 20:52:48 +00:00
Tim Burke 6a376b9156 CI: Remove centos-7 jobs
CentOS 7 will go EOL later this year, and infra wants to drop the nodes
soon-ish -- don't make them wait on our account.

Change-Id: I24d653041df35304188500cbadfac8228bac5dce
2024-03-01 10:41:03 -08:00
Tim Burke 3f8ead5a29 tests: Fix random "invalid range" errors
random.randint is inclusive on both ends, unlike random.randrange.
As a result, we could previously (rarely) select an end value
*exactly equal* to len(whole_file_bytes), causing an error like

    pyeclib.ec_iface.ECInvalidParameter: pyeclib_c_decode invalid
    range ERROR: Invalid arguments. Please inspect syslog for
    liberasurecode error report.

Change-Id: I842fbbc2eb1f8c4a1d4eb53597ad14cce4eb3dcf
2024-02-29 11:52:06 -08:00
Zuul f1732386eb Merge "Use generic py311 job" 2024-01-25 18:28:23 +00:00
Zuul 084a835fac Merge "pep8: Use default line width" 2024-01-25 18:28:21 +00:00
Zuul cfdfc7b30e Merge "Include stdint.h in where it's used" 2024-01-25 18:28:20 +00:00
Takashi Kajinami bed3b55540 pep8: Use default line width
We can use the default value by fixing the only one error.

test/test_pyeclib_api.py:111:80: E501 line too long (83 > 79 characters)

Change-Id: Idcdd6f643330b76328b5cd28c32900eeceacafb8
2024-01-26 01:49:00 +09:00
Takashi Kajinami 9f4e4fcfc5 Include stdint.h in where it's used
stdint.h was added to use exact-width int types[1] but later these were
all moved to .c file.

[1] 89721c5d17
[2] f81a59b592

Change-Id: I06f83b818da1291669c8ab90ac7e8595f144d8a5
2024-01-26 01:41:50 +09:00
Tim Burke 30191f657d Use generic py311 job
When we added pyeclib-tox-py311, openstack-tox-py311 wasn't a thing.

Change-Id: I0ed300ebf24424fbbe10ff4e58046d58fd7b6783
2024-01-25 08:26:18 -08:00
Takashi Kajinami a11e6656de Remove trailing whitespaces
We probably want some format tools (like clang-format) in the future,
but for now all these spaces are deleted by sed.

Change-Id: If7e52e75772551406b27f97854cebdebf2da2abf
2024-01-26 00:17:15 +09:00
Tim Burke eca7e3605e Add release notes to PyPI project URLs
Change-Id: I8cd7f190bed6e7ae8d4c86302d8f0b976d8f1844
2023-08-03 15:46:04 -07:00
Zuul e965dce7b7 Merge "Test on CentOS 9 Stream" 2023-08-02 00:03:45 +00:00
Zuul 97aa0f90c9 Merge "Switch from yasm to nasm" 2023-07-13 19:40:48 +00:00
Tim Burke d6e198797d Switch from yasm to nasm
... and build it from source so we can build latest ISA-L
(otherwise, the version shipped by some distros would
complain about a %use directive).

Change-Id: Iddba90e65c0eac135a71af920b3433775b9c8f0e
2023-07-11 13:55:29 -07:00
Tim Burke 8e71d37d31 Test on CentOS 9 Stream
Change-Id: Icc4d156748f9cd5b64a2a37cec53f51b13f9a0eb
2023-07-11 13:30:12 -07:00
Tim Burke 41ae583b1e Test under py311
Change-Id: I298000d12dbf3e702e00c9e8d754c86ee077cd32
2023-07-11 12:35:45 -07:00
Tim Burke 415efe08f2 Fix gate
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/881890
Change-Id: I9ebf7457e0fc0c98711ba1b093b0f1b8a9f25dff
2023-05-01 08:49:55 -07:00
wangjiaqi07 4ce04d1d5c remove unicode from code
Change-Id: Ic7dba15d4ec03b92d96e85bc6fa2f3a2c87a7ac7
2022-08-25 10:56:22 +08:00
Tim Burke ce4c9f6b82 CI: Compile liberasurecode from source for py35 tests
Those jobs run on xenial, and the distro package is ancient.

Change-Id: I366738154cf6d81874bd3da1b6aa23d1915adcd0
2022-05-02 10:36:46 -07:00
Tim Burke 008840ca19 Prep for 1.6.1 release
Change-Id: I37735a81131612464caff1d08b78d5efb78d694c
2022-04-13 22:10:27 -07:00
Zuul 7f05a784fb Merge "Use hacking checks" 2022-04-14 05:05:51 +00:00
Tim Burke 2884a6b882 Use hacking checks
Change-Id: I5ed0829d1124c813fb3457cf45152a0f175cebea
2022-04-08 20:29:20 -07:00
Tim Burke 86e9f03c31 Restrict ourselves to Python's Stable ABI
This allows us to build shared libraries that work across minor CPython
releases. See also: https://docs.python.org/3/c-api/stable.html

To build abi3 wheels, run something like

   python setup.py bdist_wheel --py-limited-api=cp35

Change-Id: Iaa747d58c6ac9dd64c5e4d3b5fdd4e56e8e2cb5e
2022-04-06 10:10:16 -07:00
Tim Burke 836dc916f0 Add py310 to default tox envlist
Change-Id: Ia2b346f6b1f96a86b6ca84c06b3e4c6197a17ab5
2022-04-05 12:08:08 -07:00
Tim Burke 4c5dc672d9 Deprecate Jerasure support
It's been on its last legs ever since it got pulled from UTK and bitbucket.

See also: the notice at http://web.eecs.utk.edu/~jplank/plank/www/software.html

Change-Id: I28e050a52a2dcf738b1ce7edcfdc3fd78172d025
2022-04-05 12:07:37 -07:00
Tim Burke 067d227426 CI: Use https:// instead of git:// when cloning ISA-L
Change-Id: Ic6e513f9df5ff4bfc32a364959d85a1556106990
2022-04-05 11:53:00 -07:00
Tim Burke b50040969a Set long_description_content_type
Otherwise, `twine check` warns

   warning: `long_description_content_type` missing. defaulting to `text/x-rst`.

Change-Id: I272f50c523fbc425f169ebdcf2f4ba8e938ee1f4
2022-03-11 13:53:33 -08:00
Tim Burke c73609967b Test under py310
Change-Id: I740ce943e8ff3021393d3ecb2e9ad7a52cbaa7b7
2022-03-11 11:02:48 -08:00
Zuul 516584ab5f Merge "Move CI from CentOS 8 to CentOS 8 Stream" 2021-12-08 04:56:48 +00:00
Tim Burke cbfd4a09ab Move CI from CentOS 8 to CentOS 8 Stream
See also: http://lists.opendev.org/pipermail/service-announce/2021-December/000029.html

Change-Id: I419e5386b7a50c915f251e4bc72d88085183d799
2021-12-07 16:17:30 -08:00
Zuul ec7c246fc2 Merge "Docs build cleanup" 2021-12-03 20:39:24 +00:00
Zuul d74b43b2a4 Merge "Switch test runner from nose to pytest" 2021-12-03 20:05:41 +00:00
Tim Burke b90881f866 Docs build cleanup
Break doc requirements out to a separate file in the doc/ tree.

Drop upper-bound on sphinx -- the gate job has been pulling from
upper-constraints, anyway.

Clean up a warning:

   WARNING: html_static_path entry '_static' does not exist

Change-Id: I70010029060442fb31d96fce57e8f44a55424b7f
2021-11-29 11:16:56 -08:00
Tim Burke b34ab1b279 Move license file
Previously, building a wheel would say something about

   adding license file "AUTHORS" (matched pattern "AUTHORS*")

but not include the *actual* license.

Change-Id: I3c0d376eafed464a10eeb383c313c45e9f451526
2021-11-27 16:47:19 -08:00
Tim Burke 033fc066f3 Clean up compile warning
Previously, compiling would complain

   warning: comparison of integer expressions of different signedness:
   ‘int’ and ‘uint32_t’

Change-Id: Ic839ab02189103975985fc0557d6846052635b14
2021-10-25 21:49:40 -07:00
Tim Burke 61d1dd7d1e Clean up install warning
Previously, running `python setup.py install` would include a

   UserWarning: Unknown distribution option: bugtrack_url

Apparently, bugtrack_url isn't really a thing (anymore?), so include a
custom project URL instead.

Change-Id: I05dd64c63fe07e152b89a7f48ae7a4ab889e9b64
2021-10-25 21:45:31 -07:00
Zuul 218d5c5996 Merge "Add trove classifiers" 2021-10-25 20:35:51 +00:00
Zuul ec6074972d Merge "Update some project URLs" 2021-10-21 05:53:04 +00:00
Zuul 534224f31a Merge "Switch IRC references from freenode to OFTC" 2021-10-21 05:18:02 +00:00
Zuul 3d8db28be8 Merge "Skip building wheels for release jobs" 2021-10-21 01:04:47 +00:00
Zuul 96025e9326 Merge "Clean up extra spaces" 2021-10-15 17:36:27 +00:00
Tim Burke eb1aae1fe3 Pin ISA-L to v2.30.0
This is before they started having %use directives in their ASM.

Change-Id: Ieeed424bb43587ec93ae365afc288014e817947d
2021-10-15 09:03:02 -07:00
jinyuanliu e82d2926e0 Clean up extra spaces
Although these errors are not important, they affect the code
specification.

Change-Id: Ibfe897a406db027ac716fa216a9b8fba5885ec19
2021-09-15 02:05:47 -04:00
Zuul 3cc64adebd Merge "Add a __repr__ for ECPyECLibDriver" 2021-06-08 23:04:04 +00:00
Tim Burke 45299ec4c9 Skip building wheels for release jobs
Change-Id: I94224863b67a2ff264594dec1b958c29bef08425
2021-06-08 14:21:31 -07:00
Tim Burke 90c166617c Add trove classifiers
Change-Id: I4d6ddf874dc54009634ae6a4d309e18198921a1c
2021-06-01 12:26:23 -07:00
Tim Burke e4cc1733a2 Update some project URLs
Change-Id: I8945117faa1e8d0c9029e990c1060e6ee78100ed
2021-06-01 12:25:25 -07:00
Tim Burke 55a9c980ae Switch IRC references from freenode to OFTC
See http://lists.openstack.org/pipermail/openstack-discuss/2021-May/022718.html
and http://lists.opendev.org/pipermail/service-discuss/2021-May/000249.html
for more information.

Change-Id: I897cefeb2dd1a5f3b097fc89acc9d336f5f71749
2021-06-01 08:17:04 -07:00
Matthew Oliver f8103903ae Add non-voting pyeclib python3 unit test jobs
Add non-voting pyeclib-libec-jobs-arm64 project template.
It includes 1 non-voting project job:
* libec-pyeclib-unit-arm64

And running on seperate pipeline `check-arm64`.

Change-Id: I14a2ebb5424ff9c76a3fd273aee047baba4d7fc1
2021-05-27 17:36:19 -07:00
Zuul 04b0e24fee Merge "Use Py_ssize_t when calling PyArg_Parse" 2021-05-11 23:37:41 +00:00