Commit graph

54 commits

Author SHA1 Message Date
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
Alex Gaynor
03decbf52f
Add an ignore for the newest ruff (#8440)
* Add an ignore for the newest ruff

Clearly document why we have each of our ignores

* Bump ruff from 0.0.253 to 0.0.254

Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.253 to 0.0.254.
- [Release notes](https://github.com/charliermarsh/ruff/releases)
- [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.253...v0.0.254)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-05 06:24:20 +08:00
Paul Kehrer
f59a7d42fb
update to latest pytest-subtests and add the new flag (#8301)
* update to latest pytest-subtests and add the new flag

* crimez

* lol
2023-02-16 03:24:35 +00:00
Hugo
d97c7071b9
Remove redundant ruff excludes (#8256)
Ruff ignores anything in gitignore by default, so these are all
redundant.
2023-02-10 07:04:55 -05:00
Alex Gaynor
67a8facee0
ignore a new ruff warning type (#8225)
* ignore a new ruff warning type

* Update ci-constraints-requirements.txt
2023-02-07 07:40:55 -06:00
Alex Gaynor
5d3db676cf
Use the ruff 'pyupgrade' checks (#8104) 2023-01-20 05:36:01 +08:00
Viicos
0a02a7dacf
Replace more deprecated abstractproperty (#7944) 2022-12-28 17:33:22 +07:00
Alex Gaynor
7ff729ecf2
Switch from flake8 to ruff (#7920)
It's more than 60x faster.
2022-12-21 09:44:47 +07:00
Paul Kehrer
15e6acf4e3
a few more mypy flags and fixes (#7877) 2022-12-04 23:38:51 +00:00
Alex Gaynor
92feb2a10c
Move coverage configuration into pyproject.toml (#7274) 2022-05-27 06:35:05 +08:00
Alex Gaynor
3d21206ae9
Instead of ignoring _openssl with mypy, use a pyi (#7177) 2022-05-02 18:08:03 +00:00
Alex Gaynor
496703c8a5
Refs #7079 -- added basic scaffholding for benchmarks (#7087)
As it turns out, pytest-benchmark does basically what we want so there's not much to this.
2022-04-18 20:52:20 -05:00
Alex Gaynor
f6a7b6d5b1
Pin setuptools to fix build failure on pypy (#6868)
* Testing for CI

* Attempt to pin setuptools here
2022-02-14 18:15:48 -06:00
Paul Kehrer
830343d11c
add some more mypy flags (#6751)
remove some unneeded type ignores. This work found a missing type and
added it as well.
2021-12-23 07:55:23 -05:00
Alex Gaynor
69daab83c7
iso8601 is now typed (#6649) 2021-11-23 21:11:17 +00:00
Alex Gaynor
8c73dcd966
Make --capture=no and --strict-markers enabled by default for pytest (#6598) 2021-11-13 04:56:24 +08:00
Alex Gaynor
1c348a02e6
Remove setup_requires -- setuptools has deprecated it (#6465)
* Remove setup_requires -- setuptools has deprecated it

* Update comments
2021-10-24 07:18:21 +08:00
Alex Gaynor
b6760af9f9
Revert "Ban cffi version that makes CI sad (#6418)" (#6441)
* Revert "Ban cffi version that makes CI sad (#6418)"

This reverts commit bba65084ea.

* Run the necessary teardown code always

* Restore this
2021-10-19 19:45:04 +08:00
Alex Gaynor
bba65084ea
Ban cffi version that makes CI sad (#6418)
* Update installation for testing against bookworm

* Try bumping macOS timeout

* Try pinning cffi

* Ban 1.15.0
2021-10-17 05:18:05 +08:00
Alex Gaynor
66ac2ad6ac
updated comments in pyproject.tom (#6245) 2021-08-29 21:41:52 -05:00
Paul Kehrer
b5c3bd2130
turn on mypy disallow implicit reexport and fix issues (#6240)
* turn on mypy disallow implicit reexport and fix issues

* import ordering
2021-08-29 15:18:18 -04:00
Alex Gaynor
5ad2488a72
Make whitespcae in pyproject.toml normal (#6130) 2021-06-19 17:00:16 -06:00
Tanvi Moharir
a4aa852a17
Adding mypy configuration to pyproject (#6116)
* Adding mypy configuration to pytproject

* Correcting specifications for pyproject.toml
2021-06-19 13:39:00 -04:00
Alex Gaynor
a2d4ea3e1a
wycheproof_tests is not longer a fixture (#5886) 2021-03-01 18:39:41 -06:00
Alex Gaynor
245d15b563
Remove requires_backend_interface from tests because it was useless (#5884) 2021-03-01 11:59:24 -06:00
Alex Gaynor
c84d6ee060
Integrate Rust into the build process properly (#5410) 2020-12-22 13:33:47 -06:00
Alex Gaynor
149796628e
put pytest configuration somewhere that goes in the sdist (#5648)
fixes #5646
2020-12-15 08:42:34 -06:00
Alex Gaynor
7d4e567e16
Switch black to py36 as the minimum version (#5608) 2020-12-08 23:40:21 -06:00
Alex Gaynor
1be144acc6
bump cffi minimum version to help out pyopenssl (#5598)
fixes https://github.com/pyca/pyopenssl/issues/971
2020-12-01 13:01:43 -06:00
Alex Gaynor
60aa04481f
Paint it Black by the Rolling Stones (#5324) 2020-07-20 13:06:29 -05:00