-
-
Notifications
You must be signed in to change notification settings - Fork 27
Upgrade Deltacode to use Skeleton and support python 3.8+ #182 #187
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
Merged
AyanSinhaMahapatra
merged 148 commits into
aboutcode-org:develop
from
arnav-mandal1234:skeleton_upgrade
Mar 28, 2023
Merged
Changes from all commits
Commits
Show all changes
148 commits
Select commit
Hold shift + click to select a range
421d175
New repository initialized by cvs2svn.
5664513
Initial commit
agustinhenze c7ba5bd
Initial commit
c83207d
Initial commit
pombredanne 7ab4312
Merge branch 'dlt-master'
pombredanne 182532f
Use wheels embedded in virtualenv.pyz
pombredanne cd4e87b
Do not force an upgrade on virtualenv.pyz embeds
pombredanne 1c84e9e
Merge pull request #24 from nexB/use-venv-embeds
pombredanne d6fe59f
Update markers syntax for pytest
pombredanne ca6ab21
Add fallback version for setuptools_scm
pombredanne 1364bbb
Add note for setuptools_scam fallback version
pombredanne be851b0
Use azure-posix.yml for linux and macOS
pombredanne 4f0aecf
Adopt new configure script derived from ScanCode
pombredanne aa04429
Add notes on customization
pombredanne 56ada8f
Adopt new configure --dev convention
pombredanne 0dbcdc9
Clarify CHANGELOG to be Rst
pombredanne d21aef3
Add skeleton release notes to README.rst
pombredanne a75737d
Merge pull request #25 from nexB/new-configure
pombredanne 3aeb2ec
Update format
pombredanne 2c412e8
Add Python 3.9 to Travis
pombredanne 69eec23
Format and remove spurious spaces
pombredanne 0e09ad9
Bump to more modern version of setuptools_scm
pombredanne e339a70
Add space for correct syntax
pombredanne 9dff54a
Create junction from Scripts to bin
chinyeungli b735a3f
Merge pull request #26 from nexB/windows-junction
pombredanne 77ce5e4
Check for deps in local thirdparty directory #31
JonoYang fa13562
Merge pull request #32 from nexB/install-from-thirdparty-dir
JonoYang 1bcaaa5
Enforce use of requirements.txt #34
JonoYang e9067c8
Add scripts from scancode-toolkit/etc/release/ #33
JonoYang 0e1f56b
Normalize license in load_pkginfo_data #33
JonoYang 288532d
Add --init option to configure #33
JonoYang a5ae4f3
Update README.rst #33
JonoYang 593e237
Use venv as virtual environment directory name #37
JonoYang 9342bc1
Update configure.bat #33
JonoYang 45e4a2a
Add placeholder requirements.txt files #33
JonoYang 944fbae
Handle multiple options in configure #33
JonoYang 3532b22
Fix path to aboutcode in utils_thirdparty.py #33
JonoYang 9c78ddb
Update release notes in README.rst
JonoYang ebcfb93
Handle ExpressionParseError #33
JonoYang 6ab9c10
Update README.rst
pombredanne bfdc6ff
Address review comments #33
JonoYang 8583d7f
Merge pull request #39 from nexB/update-skeleton
JonoYang 71d8dad
Update READMEs
JonoYang d3b8524
Merge pull request #40 from nexB/add-scripts-readme
JonoYang d2bafb9
Fixed #41 - Handled encoding issue when generating ABOUT files
chinyeungli c41196a
Merge pull request #42 from nexB/41_fix_encoding_error
chinyeungli 5671563
Treat text files as text
pombredanne 14f6a2d
Add helper to publish files in GH releases
pombredanne 1a2a144
Add code to use curl if wget is not installed
chinyeungli 7aa7d4c
Do not issue warning if thirdparty dir is missing
pombredanne 51d0c5c
Merge pull request #45 from nexB/open-as-text
pombredanne b46d84f
Handle as_text correctly in cache
pombredanne 255a898
Handle as_text correctly in cache
pombredanne 7b76f4a
Merge origin/as_text-cache
pombredanne 3a5307c
Merge pull request #47 from nexB/as_text-cache
pombredanne e5833d1
Add support for Python 3.10
pombredanne 0a0ef12
Adopt black style
pombredanne 31ed446
Drop Ubuntu 16 add Python 3.10
pombredanne 00aaa26
Merge pull request #48 from nexB/update-system
pombredanne 2ce7c7a
Disable Python 3.10 tests on macOS 10.14
pombredanne 1fa3699
Merge pull request #49 from nexB/update-system
pombredanne 2cc2c5a
Add code to remove the symlink before creating
chinyeungli 61af9f9
Merge remote-tracking branch 'puppeter/basic' into adopt-vers-spec
pombredanne 6b2320a
Improve handling licenses without scancode
pombredanne 6ccff2b
Add support for deb and rpm containers
pombredanne 6962f8b
Support licenses when ScanCode is not installed
pombredanne 04c5de3
Merge remote-tracking branch 'rubygems/master' into refinements
pombredanne dd188e4
Merge pull request #14 from nexB/refinements
pombredanne 2f77f97
Improve wheel build
pombredanne 784e701
Aligne with latest ScanCode TK updates
pombredanne a7c2efd
Do not ignore setup.py
pombredanne b1dabd8
Update scripts
pombredanne 4004ebe
Do not use pytest 7.0.0 which is buggy
pombredanne b15b6b7
Update `configure` to work with space in installation path
chinyeungli 311b0a1
Remove echo statement
chinyeungli 5351f0b
automate pypi release on a tag
TG1999 96b6405
Refine GH Action definition
pombredanne 635df78
Format GH action yaml
pombredanne 6bbeddd
Use verbose name for job
pombredanne 840ccef
Add black codestyle test for skeleton
keshav-space 35af643
Update configure.bat
chinyeungli 70a2d2f
Merge pull request #55 from nexB/configure_for_path_with_spaces_on_wi…
pombredanne c7084ee
Merge pull request #56 from keshav-space/main
pombredanne 9558c0c
Deprecate windows-2016 images for azure CI
AyanSinhaMahapatra e19a520
Remove macos 10.14 job from azure-pipelines.yml
JonoYang cb17d70
Merge pull request #57 from nexB/deprecate-win-2016-ci
JonoYang 7eb4ca8
Merge pull request #58 from nexB/remove-mac-1014
JonoYang 47da14b
Do not use Python 3.6 on Windows 2022 jobs
JonoYang c4678dc
Merge pull request #59 from nexB/win2022-py36
JonoYang ad17a42
Deprecate windows-2016 images for azure CI
AyanSinhaMahapatra cad3164
Remove macos 10.14 job from azure-pipelines.yml
JonoYang d659e09
Do not use Python 3.6 on Windows 2022 jobs
JonoYang b408c85
Merge pull request #60 from nexB/update-signoff
pombredanne c5251f4
Run tests on macOS 11
pombredanne a118fe7
Align configuration scripts on POSIX and Windows
pombredanne e810da3
Update README
pombredanne 243f7cb
Refactor and streamline thirdparty utilities
pombredanne 931f610
Cleanup whitespaces
pombredanne 6e43a7a
Add usage instructions to README.rst
JonoYang ae73ce3
Merge pull request #61 from nexB/update-readme
JonoYang 6238b83
Merge branch 'main' of https://github.com/nexB/skeleton into main
pombredanne b272e3b
Format code
pombredanne 907e540
Merge pull request #62 from nexB/better-tpp-scripts
pombredanne 1e4d3bc
Reorg setup sections
pombredanne 03d4799
Do not depend on click. Use argparse.
pombredanne f0d5a29
Correct configure scripts
pombredanne 6ed9983
Remove remnants of configure --init
pombredanne bf6bbaa
Pytyon 3.6 is not available on Windows 2022
pombredanne 4ab834f
Add long_description_content_type
pombredanne 4ef463f
Run fewer Azure jobs
pombredanne e921052
Add RTD css templates
AyanSinhaMahapatra bd2df2a
Add GitHub action for doc build tests
AyanSinhaMahapatra 3e2d801
Fix conf.py to fix doc build
AyanSinhaMahapatra c76dff4
Merge pull request #63 from nexB/add-rtd-templates
AyanSinhaMahapatra eb57889
Add docs option in configure
AyanSinhaMahapatra 2841270
Merge pull request #64 from nexB/add-docs-in-configure
AyanSinhaMahapatra 5556e71
Add documentation contribute page
AyanSinhaMahapatra f3d1fcd
Merge pull request #65 from nexB/add-docs-contrib
AyanSinhaMahapatra 5431ee5
Properly check for existance of thirdparty dir
JonoYang 435e9ee
Merge pull request #66 from nexB/check-for-thirdparty-dir
JonoYang b02d5d5
Merge remote-tracking branch 'uni/main' into main
pombredanne c44c442
Improve GH action documentation
pombredanne 99ba101
Use Python 3.9 as a base for actions
pombredanne 00f4fe7
Remove variable from string in fetch_thirdparty.py
JonoYang 5d48c1c
Improve thirdparty scripts
pombredanne 6a3c5b0
Update thirdparty fetching utilities
pombredanne ff348f5
Format code with black
pombredanne d35d4fe
Only use PyPI for downloads
pombredanne 154144b
Enable automatic release on tag
pombredanne 1165f12
Remove Travis config
pombredanne c1f70fc
Add ScanCode Code of Conduct
pombredanne 9acab17
Improve detection of thirdparty dir
pombredanne 4dc2521
Add comment
pombredanne 04a872c
Remove the thirdparty directory
chinyeungli 07cd736
Update the azure-piprlines
chinyeungli 509b032
Add missing os import in utils_requirements.py
JonoYang c6bba07
Reinstate Ubuntu 18 and drop Python 3.6 and 3.7
pombredanne bec5391
Merge pull request #68 from nexB/remove_thirdparty_and_update_ci
pombredanne 1bd7a2f
Replace packaging with packvers
swastkk 5be2690
Merge pull request #71 from swastkk/packvers-added
pombredanne 6f21d2b
Ignore egginfo
pombredanne f841c2f
Drop Python 3.7 add Python 3.11
pombredanne bd2a464
Clean .cache and .eggs
pombredanne 6270a88
Add COC to redistributed license-like files
pombredanne d3a19bd
Add new Makefile
pombredanne 91f5613
Align scripts with latest ScanCode Toolkit
pombredanne 1205bc0
Merge latest main branch
pombredanne bfdfaa9
Upgrade Deltacode to use Skeleton and python 3.7+
arnav-mandal1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| # Ignore all Git auto CR/LF line endings conversions | ||
| * -text | ||
| pyproject.toml export-subst |
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,37 @@ | ||
| name: CI Documentation | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-20.04 | ||
|
|
||
| strategy: | ||
| max-parallel: 4 | ||
| matrix: | ||
| python-version: [3.9] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Give permission to run scripts | ||
| run: chmod +x ./docs/scripts/doc8_style_check.sh | ||
|
|
||
| - name: Install Dependencies | ||
| run: pip install -e .[docs] | ||
|
|
||
| - name: Check Sphinx Documentation build minimally | ||
| working-directory: ./docs | ||
| run: sphinx-build -E -W source build | ||
|
|
||
| - name: Check for documentation style errors | ||
| working-directory: ./docs | ||
| run: ./scripts/doc8_style_check.sh | ||
|
|
||
|
|
||
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,83 @@ | ||
| name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch | ||
|
|
||
|
|
||
| # This is executed automatically on a tag in the main branch | ||
|
|
||
| # Summary of the steps: | ||
| # - build wheels and sdist | ||
| # - upload wheels and sdist to PyPI | ||
| # - create gh-release and upload wheels and dists there | ||
| # TODO: smoke test wheels and sdist | ||
| # TODO: add changelog to release text body | ||
|
|
||
| # WARNING: this is designed only for packages building as pure Python wheels | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
|
|
||
| jobs: | ||
| build-pypi-distribs: | ||
| name: Build and publish library to PyPI | ||
| runs-on: ubuntu-20.04 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: 3.9 | ||
|
|
||
| - name: Install pypa/build | ||
| run: python -m pip install build --user | ||
|
|
||
| - name: Build a binary wheel and a source tarball | ||
| run: python -m build --sdist --wheel --outdir dist/ | ||
|
|
||
| - name: Upload built archives | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: pypi_archives | ||
| path: dist/* | ||
|
|
||
|
|
||
| create-gh-release: | ||
| name: Create GH release | ||
| needs: | ||
| - build-pypi-distribs | ||
| runs-on: ubuntu-20.04 | ||
|
|
||
| steps: | ||
| - name: Download built archives | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: pypi_archives | ||
| path: dist | ||
|
|
||
| - name: Create GH release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| draft: true | ||
| files: dist/* | ||
|
|
||
|
|
||
| create-pypi-release: | ||
| name: Create PyPI release | ||
| needs: | ||
| - create-gh-release | ||
| runs-on: ubuntu-20.04 | ||
|
|
||
| steps: | ||
| - name: Download built archives | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: pypi_archives | ||
| path: dist | ||
|
|
||
| - name: Publish to PyPI | ||
| if: startsWith(github.ref, 'refs/tags') | ||
| uses: pypa/gh-action-pypi-publish@master | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} |
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
This file was deleted.
Oops, something went wrong.
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
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,86 @@ | ||
| Contributor Covenant Code of Conduct | ||
| ==================================== | ||
|
|
||
| Our Pledge | ||
| ---------- | ||
|
|
||
| In the interest of fostering an open and welcoming environment, we as | ||
| contributors and maintainers pledge to making participation in our | ||
| project and our community a harassment-free experience for everyone, | ||
| regardless of age, body size, disability, ethnicity, gender identity and | ||
| expression, level of experience, education, socio-economic status, | ||
| nationality, personal appearance, race, religion, or sexual identity and | ||
| orientation. | ||
|
|
||
| Our Standards | ||
| ------------- | ||
|
|
||
| Examples of behavior that contributes to creating a positive environment | ||
| include: | ||
|
|
||
| - Using welcoming and inclusive language | ||
| - Being respectful of differing viewpoints and experiences | ||
| - Gracefully accepting constructive criticism | ||
| - Focusing on what is best for the community | ||
| - Showing empathy towards other community members | ||
|
|
||
| Examples of unacceptable behavior by participants include: | ||
|
|
||
| - The use of sexualized language or imagery and unwelcome sexual | ||
| attention or advances | ||
| - Trolling, insulting/derogatory comments, and personal or political | ||
| attacks | ||
| - Public or private harassment | ||
| - Publishing others’ private information, such as a physical or | ||
| electronic address, without explicit permission | ||
| - Other conduct which could reasonably be considered inappropriate in a | ||
| professional setting | ||
|
|
||
| Our Responsibilities | ||
| -------------------- | ||
|
|
||
| Project maintainers are responsible for clarifying the standards of | ||
| acceptable behavior and are expected to take appropriate and fair | ||
| corrective action in response to any instances of unacceptable behavior. | ||
|
|
||
| Project maintainers have the right and responsibility to remove, edit, | ||
| or reject comments, commits, code, wiki edits, issues, and other | ||
| contributions that are not aligned to this Code of Conduct, or to ban | ||
| temporarily or permanently any contributor for other behaviors that they | ||
| deem inappropriate, threatening, offensive, or harmful. | ||
|
|
||
| Scope | ||
| ----- | ||
|
|
||
| This Code of Conduct applies both within project spaces and in public | ||
| spaces when an individual is representing the project or its community. | ||
| Examples of representing a project or community include using an | ||
| official project e-mail address, posting via an official social media | ||
| account, or acting as an appointed representative at an online or | ||
| offline event. Representation of a project may be further defined and | ||
| clarified by project maintainers. | ||
|
|
||
| Enforcement | ||
| ----------- | ||
|
|
||
| Instances of abusive, harassing, or otherwise unacceptable behavior may | ||
| be reported by contacting the project team at pombredanne@gmail.com | ||
| or on the Gitter chat channel at https://gitter.im/aboutcode-org/discuss . | ||
| All complaints will be reviewed and investigated and will result in a | ||
| response that is deemed necessary and appropriate to the circumstances. | ||
| The project team is obligated to maintain confidentiality with regard to | ||
| the reporter of an incident. Further details of specific enforcement | ||
| policies may be posted separately. | ||
|
|
||
| Project maintainers who do not follow or enforce the Code of Conduct in | ||
| good faith may face temporary or permanent repercussions as determined | ||
| by other members of the project’s leadership. | ||
|
|
||
| Attribution | ||
| ----------- | ||
|
|
||
| This Code of Conduct is adapted from the `Contributor Covenant`_ , | ||
| version 1.4, available at | ||
| https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
|
||
| .. _Contributor Covenant: https://www.contributor-covenant.org |
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,54 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Copyright (c) nexB Inc. and others. All rights reserved. | ||
| # ScanCode is a trademark of nexB Inc. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. | ||
| # See https://github.com/nexB/skeleton for support or download. | ||
| # See https://aboutcode.org for more information about nexB OSS projects. | ||
| # | ||
|
|
||
| # Python version can be specified with `$ PYTHON_EXE=python3.x make conf` | ||
| PYTHON_EXE?=python3 | ||
| VENV=venv | ||
| ACTIVATE?=. ${VENV}/bin/activate; | ||
|
|
||
| dev: | ||
| @echo "-> Configure the development envt." | ||
| ./configure --dev | ||
|
|
||
| isort: | ||
| @echo "-> Apply isort changes to ensure proper imports ordering" | ||
| ${VENV}/bin/isort --sl -l 100 src tests setup.py | ||
|
|
||
| black: | ||
| @echo "-> Apply black code formatter" | ||
| ${VENV}/bin/black -l 100 src tests setup.py | ||
|
|
||
| doc8: | ||
| @echo "-> Run doc8 validation" | ||
| @${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/ | ||
|
|
||
| valid: isort black | ||
|
|
||
| check: | ||
|
AyanSinhaMahapatra marked this conversation as resolved.
|
||
| @echo "-> Run pycodestyle (PEP8) validation" | ||
| @${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache . | ||
| @echo "-> Run isort imports ordering validation" | ||
| @${ACTIVATE} isort --sl --check-only -l 100 setup.py src tests . | ||
| @echo "-> Run black validation" | ||
| @${ACTIVATE} black --check --check -l 100 src tests setup.py | ||
|
|
||
| clean: | ||
| @echo "-> Clean the Python env" | ||
| ./configure --clean | ||
|
|
||
| test: | ||
| @echo "-> Run the test suite" | ||
| ${VENV}/bin/pytest -vvs | ||
|
|
||
| docs: | ||
| rm -rf docs/_build/ | ||
| @${ACTIVATE} sphinx-build docs/ docs/_build/ | ||
|
|
||
| .PHONY: conf dev check valid black isort clean test docs | ||
|
AyanSinhaMahapatra marked this conversation as resolved.
|
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.