Skip to content

Commit

Permalink
- prepare release 5.6 and package cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Nov 16, 2022
1 parent c2f66ea commit 91f84c7
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,23 @@ jobs:
# output (pip install uses a random temporary directory, making this difficult).
python setup.py build_ext -i
python setup.py bdist_wheel
- name: Build zope.security (macOS universal2, Python 3.8+)
if: >
startsWith(runner.os, 'Mac')
&& !(startsWith(matrix.python-version, 'pypy')
|| matrix.python-version == '2.7'
|| matrix.python-version == '3.5'
|| matrix.python-version == '3.6'
|| matrix.python-version == '3.7')
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
_PYTHON_HOST_PLATFORM: macosx-10.9-universal2
ARCHFLAGS: -arch arm64 -arch x86_64
run: |
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult).
python setup.py build_ext -i
python setup.py bdist_wheel
- name: Build zope.security (all other versions)
if: >
!startsWith(runner.os, 'Mac')
Expand Down Expand Up @@ -236,6 +253,20 @@ jobs:
# on the GHA runner, which uses x86_64 architecture.
name: zope.security-${{ runner.os }}-${{ matrix.python-version }}-arm64.whl
path: dist/*arm64.whl
- name: Upload zope.security wheel (macOS universal2)
if: >
startsWith(runner.os, 'Mac')
&& !(startsWith(matrix.python-version, 'pypy')
|| matrix.python-version == '2.7'
|| matrix.python-version == '3.5'
|| matrix.python-version == '3.6'
|| matrix.python-version == '3.7')
uses: actions/upload-artifact@v3
with:
# The universal2 wheel is uploaded with a different name just so it
# can be manually downloaded when desired.
name: zope.security-${{ runner.os }}-${{ matrix.python-version }}-universal2.whl
path: dist/*universal2.whl
- name: Upload zope.security wheel (all other platforms)
if: >
!startsWith(runner.os, 'Mac')
Expand Down
3 changes: 2 additions & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/c-code
[meta]
template = "c-code"
commit-id = "57e4030390098babcc18db626cc426388394c231"
commit-id = "342271a70d886e753e5cc629e8a81b3cfab692ac"

[python]
with-appveyor = true
Expand All @@ -12,6 +12,7 @@ with-future-python = false
with-legacy-python = true
with-docs = true
with-sphinx-doctests = true
with-macos = false

[tox]
use-flake8 = true
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Changes
=========

5.6 (unreleased)
5.6 (2022-11-16)
================

- Add support for building arm64 wheels on macOS.
Expand Down
25 changes: 14 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
===============
zope.security
===============

.. image:: https://img.shields.io/pypi/v/zope.security.svg
:target: https://pypi.python.org/pypi/zope.security/
:alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.security.svg
:target: https://pypi.org/project/zope.security/
:alt: Supported Python versions
===================
``zope.security``
===================

.. image:: https://github.com/zopefoundation/zope.security/actions/workflows/tests.yml/badge.svg
:target: https://github.com/zopefoundation/zope.security/actions/workflows/tests.yml

.. image:: https://ci.appveyor.com/api/projects/status/github/zopefoundation/zope.security?branch=master&svg=true
:target: https://ci.appveyor.com/project/mgedmin/zope-security

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.security/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.security?branch=master

.. image:: https://readthedocs.org/projects/zopesecurity/badge/?version=latest
:target: https://zopesecurity.readthedocs.io/en/latest/
:alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/zope.security.svg
:target: https://pypi.python.org/pypi/zope.security/
:alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.security.svg
:target: https://pypi.org/project/zope.security/
:alt: Supported Python versions


The Security framework provides a generic mechanism to implement security
policies on Python objects.
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,16 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'https://docs.python.org/': None,
'https://docs.python.org/3/': None,
'https://zopeinterface.readthedocs.io/en/latest': None,
'https://zopeproxy.readthedocs.io/en/latest': None,
'https://zopeschema.readthedocs.io/en/latest': None,
'https://zopelocation.readthedocs.io/en/latest': None,
}

extlinks = {'issue': ('https://github.com/zopefoundation/zope.datetime/issues/%s',
extlinks = {'issue': ('https://github.com/zopefoundation/zope.security/issues/%s',
'issue #'),
'pr': ('https://github.com/zopefoundation/zope.datetime/pull/%s',
'pr': ('https://github.com/zopefoundation/zope.security/pull/%s',
'pull request #')}

autodoc_default_flags = [
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __str__(self):


setup(name='zope.security',
version='5.6.dev0',
version='5.6',
author='Zope Foundation and Contributors',
author_email='[email protected]',
description='Zope Security Framework',
Expand Down Expand Up @@ -164,6 +164,12 @@ def __str__(self):
'Framework :: Zope :: 3',
],
url='http://github.com/zopefoundation/zope.security',
project_urls={
'Documentation': 'https://zopesecurity.readthedocs.io',
'Issue Tracker': ('https://github.com/zopefoundation'
'/zope.security/issues'),
'Sources': 'https://github.com/zopefoundation/zope.security',
},
license='ZPL 2.1',
packages=find_packages('src'),
package_dir={'': 'src'},
Expand Down

0 comments on commit 91f84c7

Please sign in to comment.