Commit graph

83 commits

Author SHA1 Message Date
Alex Gaynor
7a296270aa
Move Cargo.toml workspace configuration to the root of the repo. (#11836)
This allows cargo commands like check/fmt to work from the root of the repo
2024-10-27 16:17:40 -05:00
Alex Gaynor
5e828628a2
Install uv in CI when available (#11805) 2024-10-21 14:49:13 -07:00
Alex Gaynor
2f3daa894e
Special case ci-constraints-requirements.txt for Python 3.9 as well (#11759) 2024-10-13 19:31:51 -06:00
Alex Gaynor
3d43e3398e
Drop pre-release from sphinx-rtd-theme dep (#11708) 2024-10-07 08:36:41 -04:00
Alex Gaynor
d4452997ed
Use uv to build ci-constraints-requirements.txt which hopefully makes it more maintainable (#11505) 2024-09-06 19:43:42 -07:00
Alex Gaynor
1627baa85f
Use uv for building sdists (#11549)
Hash-pin dependencies

refs #11548
2024-09-06 19:39:35 -07:00
Paul Kehrer
43897cbe22
port 43.0.1 changelog (#11534)
bonus deny another setuptool
2024-09-03 16:08:07 -04:00
Alex Gaynor
709e9de7a7
Another one bites the dust -- Queen (#11525) 2024-09-02 23:55:07 +00:00
Alex Gaynor
e587837f65
Use rc1 rtd sphinx theme (#11522) 2024-09-02 15:10:29 +00:00
Alex Gaynor
c0d077973e
Mark that check-sdist is a Python 3.8+ only dependency (#11499)
It has no versions that support Python 3.7. This is necessary to support using `uv` to manage our ci-constraints file
2024-08-28 20:09:28 -07:00
Alex Gaynor
d5ec40515f
Restrict setuptools version to work around breakages (#11503) 2024-08-28 06:56:42 -07:00
Alex Gaynor
c315d72ceb
added 3.13 trove classifier since we test on it (#11491) 2024-08-26 22:55:34 +00:00
Alex Gaynor
b6f7fb1c3b
fixed typo in comment (#11490) 2024-08-26 22:55:00 +00:00
Alex Gaynor
339bb6c352
fix weird 3-space indents (#11387)
* fix weird 3-space indents

* Update pyproject.toml
2024-08-04 11:50:38 -07:00
Paul Kehrer
7e033c18a6
reopen for 44 (#11312) 2024-07-20 12:55:35 -04:00
Paul Kehrer
ebf14f2edc
bump for 43.0.0 and update changelog (#11311)
* bump for 43.0.0 and update changelog

* fix nox

* fix flake and name better

* more noxfile update
2024-07-20 12:28:42 -04:00
Alex Gaynor
5b23baae7e
Switch to maturin. (#8815)
It seems to be much faster at doing things locally.
2024-07-05 11:57:08 -07:00
Alex Gaynor
320314cc4a
See if wheel dep is required (#11122)
The setuptools changelog sort of implies its not anymore
2024-06-20 09:27:42 +02:00
Alex Gaynor
43b8b7910d
Raise MSRV to 1.65 (#10481) 2024-02-25 23:04:40 +00:00
Alex Gaynor
d9cb236c1a
fixed typos and confusing phrasing in comment (#10477) 2024-02-25 13:49:27 -06:00
Alex Gaynor
f52c275ceb
remove stray space (#10339) 2024-02-03 17:42:21 -06:00
Alex Gaynor
4a7dc8cc92
Update ruff configuration for ruff 0.2.0 (#10332) 2024-02-02 07:51:50 -06:00
Alex Gaynor
36368cc056
Include cryptography_vectors in our test deps (#10277)
fixes #10242
2024-01-28 13:29:34 -06:00
Paul Kehrer
71cd1c43a9
reopen main for 43 dev (#10234) 2024-01-22 21:50:49 -05:00
Paul Kehrer
4e64baf360
42.0.0 version bump (#10232) 2024-01-22 20:05:18 -05:00
Alex Gaynor
71023b0a0c
Manually bump pydantic (#10106)
* Manually bump pydantic

For some reason, dependabot chokes on it

* Update pyproject.toml
2024-01-01 16:17:08 -03:00
Alex Gaynor
135050a5c1
Added certifi to test dependencies (#10043)
Needed for https://github.com/pyca/cryptography/pull/10042
2023-12-23 12:42:56 -03:00
Alex Gaynor
a9a4f5df1d
Build cp39 wheels in addition to cp37 ones (#9998) 2023-12-18 21:38:18 -06:00
Alex Gaynor
70b2bc77ca
Simplify verifying README.rst in CI (#9991) 2023-12-12 14:24:27 -06:00
Alex Gaynor
6970149e39
Alway use ruff format (#9778) 2023-10-25 17:15:44 -05:00
Hugo van Kemenade
92fd87f742
Add Python 3.12 classifier (#9507) 2023-08-26 16:53:09 -04:00
Alex Gaynor
afc06e28f2
Migrate a bit more logic to pyproject.toml (#9489) 2023-08-23 07:32:16 -07:00
Alex Gaynor
f558199dbf
Try running an extra ruff rule (#9402)
* Try running an extra ruff rule

I think `from __future__ import annotations` means this is fine, even on older Python

* Enable UP007

* Enable UP038
2023-08-11 14:31:31 -05:00
Diogo Teles Sant'Anna
7d62332542
CI: Update build and release dependencies to be referenced by SHA (#9177)
* ci: Update GitHub owned actions to be referenced by SHA. Work automated using StepSecurity

Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>

* ci: create hash-pinned requirements files for build and publish processes

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci: change ci files to install build and publish dependencies using hashes

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci: fix path to requirements files

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci: rebuild the requirement.txt files using `--allow-unsafe`

The flag is needed to create hash-pinned requirements for pip and
setup-tools. Find more information about this at these issues from [pip-tools](https://github.com/jazzband/pip-tools/issues/806) and from [pip](https://github.com/pypa/pip/issues/6459).

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* refactor(workflows): move build requirements files to a separated folder

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* fix(workflow): requirements download was erasing work from previous steps

Using the actions/checkout to download the requirements.txt was erasing
some necessary files that came from previous steps. Thus, this commit
changes moves the checkout action to the beginnig of the jobs.

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci: remove reference to inexistent input in pypi-publish.yml

* docs(workflows): remove comment related to a line already delated from code

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* refactor(workflows): use a workflow-level env var to define path to build requirements file

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* fix(workflows): refer to env vars using ${{  }} sintax

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* refactor(workflows): move build and publish requirements files

Moved from .github/workflows/requirements/ to .github/requirements/

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* docs(workflows): add comments on requirements files explaining their relation

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci(workflows): update build dependencies to match exactly the ones at pyproject.toml

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* ci: remove unnecessary parameter

When calling actions/checkout , we were passing the `ref` parameter as `github.ref`, but it will likely be always main, or the vary same value as the default for this parameter.

* Update dependabot config to cover build/publish dependencies

---------

Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Co-authored-by: StepSecurity Bot <bot@stepsecurity.io>
2023-07-11 13:19:45 -05:00
Alex Gaynor
42acf4091c
Enable ruff's own ruleset (#9114) 2023-06-23 05:25:46 +02:00
Paul Kehrer
a7d613b89f
reopen for 42 dev (#8993) 2023-05-31 03:29:55 +00:00
Paul Kehrer
c4d494fd3e
41.0.0 version bump (#8991)
* 41.0.0 version bump

* bust cache since we don't currently compute cache key including version
2023-05-30 21:33:32 +00:00
Alex Gaynor
be18c83985
Switch from check-manifest to check-sdist (#8846)
The latter will work with non-setuptools build backends.
2023-04-30 18:14:28 +02:00
Alex Gaynor
828bcf36d6
Remove pointless newlines that snuck in (#8845) 2023-04-30 08:11:30 +02:00
Alex Gaynor
9d06775cb1
Automate the version bump (#8828) 2023-04-26 08:21:39 -05:00
Alex Gaynor
9d70b87ff5
Don't use setup.py in doc tests (#8820) 2023-04-25 02:10:54 +00:00
Alex Gaynor
3f00e4d8c6
Switch to an allow-list (#8747)
Right now the rust subdirectory gets processed for packages, which never exist. This can break some development workflows.
2023-04-17 22:01:25 -05:00
Paul Kehrer
eb59d966b6
remove pytest-shard (#8665) 2023-04-04 06:51:51 -04:00
Alex Gaynor
1e49cb9c13
Switch from tox to nox (#8651) 2023-04-02 16:28:22 +09:00
Alex Gaynor
35ef119e2f
Make the readme metadata static (#8639) 2023-03-31 15:13:40 +09:00
Alex Gaynor
22759dbab0
Switch from pytest-subtests to a mini-version that's faster (#8613) 2023-03-29 02:28:17 +00:00
Alex Gaynor
7e19ff0229
Migrate from setup.cfg to pyproject.toml completely (#8116)
One less file?
2023-03-25 04:59:44 +08:00
Paul Kehrer
b5170bf26d
drop python 3.6 support (#8448)
* drop python 3.6 support

* Update tests/hazmat/bindings/test_openssl.py

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

---------

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2023-03-24 13:15:13 +00:00
Matthew Ryan
c5eb29860e
Python 3.6 compatibility fix. (#8516)
* Python 3.6 compatibility fix.

The capture_output argument to subprocess.run() was not introduced until
Python 3.7.  Use stdout=subprocess.PIPE and stderr=subprocess.PIPE instead,
which is equivalent.

* Update pyproject.toml

* Black

---------

Co-authored-by: Matthew Ryan <matt.ryan@nominum.com>
Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
2023-03-15 06:47:58 -04:00
Paul Kehrer
36f418a687
add pytest flag to show percentage at all times (#8474)
progress-even-when-capture-no isn't in a released pytest yet, but when
https://github.com/pytest-dev/pytest/pull/10755 is released this
will work. Until then this flag will simply have no effect.

Also add a COLUMNS variable and pass it through to tox so we can limit
column width to 80 in CI
2023-03-09 06:02:46 -05:00