-
-
Notifications
You must be signed in to change notification settings - Fork 597
support-python-private-classifier #4075
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
Open
VarshaUN
wants to merge
11
commits into
aboutcode-org:develop
Choose a base branch
from
VarshaUN:support-python-private-package
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e03db23
support-private-classifier
VarshaUN c941e59
Fix tests
VarshaUN 2a35ecf
Modify test files
VarshaUN 19e0fa9
modify test fails
VarshaUN de9250a
Modify get_urls() to accept is_private as an argument
VarshaUN 12e0a37
Extend support across other handlers
VarshaUN 92dfab4
Merge branch 'develop' into support-python-private-package
VarshaUN bb4a59f
Add test-files for handlers
VarshaUN c893efe
Merge branch 'support-python-private-package' of https://github.com/V…
VarshaUN 6e1d600
fix test failures
VarshaUN e7632cc
Move is_private_package to pypi
VarshaUN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
...gedcode/data/pypi/pyproject-toml/standard/private-classifier-pyproject.toml-expected.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
[ | ||
{ | ||
"type": "pypi", | ||
"namespace": null, | ||
"name": "titanic_ml", | ||
"version": "0.1.0", | ||
"qualifiers": {}, | ||
"subpath": null, | ||
"primary_language": "Python", | ||
"description": "titanic_ml example package", | ||
"release_date": null, | ||
"parties": [ | ||
{ | ||
"type": "person", | ||
"role": "author", | ||
"name": "Niels Zeilemaker", | ||
"email": "[email protected]", | ||
"url": null | ||
} | ||
], | ||
"keywords": [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Private :: Do Not Upload" | ||
], | ||
"homepage_url": null, | ||
"download_url": null, | ||
"size": null, | ||
"sha1": null, | ||
"md5": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"bug_tracking_url": null, | ||
"code_view_url": null, | ||
"vcs_url": null, | ||
"copyright": null, | ||
"holder": null, | ||
"declared_license_expression": null, | ||
"declared_license_expression_spdx": null, | ||
"license_detections": [], | ||
"other_license_expression": null, | ||
"other_license_expression_spdx": null, | ||
"other_license_detections": [], | ||
"extracted_license_statement": null, | ||
"notice_text": null, | ||
"source_packages": [], | ||
"file_references": [], | ||
"is_private": true, | ||
"is_virtual": false, | ||
"extra_data": {}, | ||
"dependencies": [ | ||
{ | ||
"purl": "pkg:pypi/pyspark", | ||
"extracted_requirement": null, | ||
"scope": "install", | ||
"is_runtime": true, | ||
"is_optional": false, | ||
"is_pinned": false, | ||
"is_direct": true, | ||
"resolved_package": {}, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"purl": "pkg:pypi/sklearn", | ||
"extracted_requirement": null, | ||
"scope": "install", | ||
"is_runtime": true, | ||
"is_optional": false, | ||
"is_pinned": false, | ||
"is_direct": true, | ||
"resolved_package": {}, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"purl": "pkg:pypi/tox", | ||
"extracted_requirement": null, | ||
"scope": "dev", | ||
"is_runtime": true, | ||
"is_optional": true, | ||
"is_pinned": false, | ||
"is_direct": true, | ||
"resolved_package": {}, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"purl": "pkg:pypi/pre-commit", | ||
"extracted_requirement": null, | ||
"scope": "dev", | ||
"is_runtime": true, | ||
"is_optional": true, | ||
"is_pinned": false, | ||
"is_direct": true, | ||
"resolved_package": {}, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"purl": "pkg:pypi/bump2version", | ||
"extracted_requirement": null, | ||
"scope": "dev", | ||
"is_runtime": true, | ||
"is_optional": true, | ||
"is_pinned": false, | ||
"is_direct": true, | ||
"resolved_package": {}, | ||
"extra_data": {} | ||
} | ||
], | ||
"repository_homepage_url": null, | ||
"repository_download_url": null, | ||
"api_data_url": null, | ||
"datasource_id": "pypi_pyproject_toml", | ||
"purl": "pkg:pypi/[email protected]" | ||
} | ||
] |
29 changes: 29 additions & 0 deletions
29
...s/packagedcode/data/pypi/pyproject-toml/standard/python-private-classifier/pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#Taken from : https://xebia.com/blog/minimal-pyproject-toml-example/ | ||
|
||
[project] | ||
name = "titanic_ml" | ||
description = "titanic_ml example package" | ||
version = "0.1.0" | ||
authors = [ | ||
{ name = "Niels Zeilemaker", email = "[email protected]" } | ||
] | ||
dependencies = [ | ||
"pyspark[ml]", | ||
"sklearn" | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Private :: Do Not Upload" | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"tox", | ||
"pre-commit", | ||
"bump2version" | ||
] | ||
|
||
[build-system] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["flit_core >=3.2,<4"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.