Skip to content

Commit

Permalink
PyPI fixes. (#1061)
Browse files Browse the repository at this point in the history
- Checkout submodules in the PyPI builder to make sure the OSV schema is
included in the built package.
- Make sure the JSON schema is included as a data file. 
- Add missing PyPI package dependencies. This should align with our root
Pipfile.

Part of #1060
  • Loading branch information
oliverchang committed Feb 23, 2023
1 parent c61a4f5 commit 657fe2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/checkout@v3 # v2.3.4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python 3
uses: actions/setup-python@v4 # v2.2.2
with:
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='osv',
version='0.0.17',
version='0.0.18',
author='OSV authors',
author_email='osv-discuss@googlegroups.com',
description='Open Source Vulnerabilities library',
Expand All @@ -39,11 +39,17 @@
'PyYAML',
'semver',
'attrs',
'jsonschema'
'jsonschema',
'grpcio',
'packaging',
],
package_dir={
'': '.',
},
package_data={
# Include any JSON schemas.
'': ['*.json'],
},
python_requires='>=3.7',
zip_safe=False,
)

0 comments on commit 657fe2a

Please sign in to comment.