Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build ABIs #289

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion piwheels/__init__.py
Expand Up @@ -67,7 +67,7 @@
# pylint: disable=bad-whitespace

__project__ = 'piwheels'
__version__ = '0.19'
__version__ = '0.20'
__keywords__ = ['raspberrypi', 'pip', 'wheels']
__author__ = 'Ben Nuttall'
__author_email__ = 'ben@bennuttall.com'
Expand Down
8 changes: 6 additions & 2 deletions piwheels/initdb/sql/create_piwheels.sql
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE configuration (
CONSTRAINT config_pk PRIMARY KEY (id)
);

INSERT INTO configuration(id, version) VALUES (1, '0.19');
INSERT INTO configuration(id, version) VALUES (1, '0.20');
GRANT SELECT ON configuration TO {username};

-- packages
Expand Down Expand Up @@ -91,14 +91,18 @@ GRANT SELECT ON versions TO {username};
-------------------------------------------------------------------------------
-- The "build_abis" table defines the set of CPython ABIs that the master
-- should attempt to build. This table must be populated with rows for anything
-- to be built. In addition, there must be at least one slave for each defined
-- to be built. In addition, there must be at least one slave for each active
-- ABI. Typical values are "cp34m", "cp35m", etc. Special ABIs like "none" must
-- NOT be included in the table.
-------------------------------------------------------------------------------

CREATE TABLE build_abis (
abi_tag VARCHAR(100) NOT NULL,
skip VARCHAR(100) DEFAULT '' NOT NULL,
python_name VARCHAR(100) DEFAULT '' NOT NULL,
python_major INTEGER NOT NULL,
python_minor INTEGER NOT NULL,
os_release VARCHAR(100) DEFAULT '' NOT NULL,

CONSTRAINT build_abis_pk PRIMARY KEY (abi_tag),
CONSTRAINT build_abis_none_ck CHECK (abi_tag <> 'none')
Expand Down
7 changes: 7 additions & 0 deletions piwheels/initdb/sql/update_piwheels_0.19_to_0.20.sql
@@ -0,0 +1,7 @@
UPDATE configuration SET version = '0.20';

ALTER TABLE build_abis
ADD COLUMN python_name VARCHAR(100) DEFAULT '' NOT NULL,
ADD COLUMN python_major INTEGER NOT NULL,
ADD COLUMN python_minor INTEGER NOT NULL,
ADD COLUMN os_release VARCHAR(100) DEFAULT '' NOT NULL;
2 changes: 1 addition & 1 deletion piwheels/master/the_scribe.py
Expand Up @@ -570,7 +570,7 @@ def get_releases(self, versions, files):
The name of the package to get versions for.

:param list files:
Set of versions to exclude from results.
List of files that exist for the package.
"""
releases = []
for version in versions:
Expand Down