generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nexB/collect-symbols
Collect symbols with ctags Signed-off-by: Philippe Ombredanne <[email protected]>
- Loading branch information
Showing
16 changed files
with
12,837 additions
and
291 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 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,62 +1,28 @@ | ||
A Simple Python Project Skeleton | ||
source-inspector | ||
================================ | ||
This repo attempts to standardize the structure of the Python-based project's | ||
repositories using modern Python packaging and configuration techniques. | ||
Using this `blog post`_ as inspiration, this repository serves as the base for | ||
all new Python projects and is mergeable in existing repositories as well. | ||
|
||
.. _blog post: https://blog.jaraco.com/a-project-skeleton-for-python-projects/ | ||
source-inspector is a ScanCode toolkit plugin to collect symbols from source files using various | ||
tools. | ||
|
||
This is a work in progress. | ||
|
||
Usage | ||
===== | ||
To get started: | ||
|
||
A brand new project | ||
------------------- | ||
.. code-block:: bash | ||
1. Clone this repo | ||
2. Run:: | ||
|
||
git init my-new-repo | ||
cd my-new-repo | ||
git pull [email protected]:nexB/skeleton | ||
./configure --dev | ||
source venv/bin/activate | ||
|
||
# Create the new repo on GitHub, then update your remote | ||
git remote set-url origin [email protected]:nexB/your-new-repo.git | ||
3. Run tests with:: | ||
|
||
From here, you can make the appropriate changes to the files for your specific project. | ||
pytest -vvs | ||
|
||
Update an existing project | ||
--------------------------- | ||
.. code-block:: bash | ||
4. Run a basic scan to collect symbols and display as YAML on screen:: | ||
|
||
cd my-existing-project | ||
git remote add skeleton [email protected]:nexB/skeleton | ||
git fetch skeleton | ||
git merge skeleton/main --allow-unrelated-histories | ||
scancode --yaml - --source-symbol tests/data/symbols_ctags/test3.cpp | ||
|
||
This is also the workflow to use when updating the skeleton files in any given repository. | ||
Homepage: https://github.com/nexB/source-inspector | ||
License: Apache-2.0 AND GPL-2.0 | ||
|
||
More usage instructions can be found in ``docs/skeleton-usage.rst``. | ||
|
||
|
||
Release Notes | ||
============= | ||
|
||
- 2023-07-18: | ||
- Add macOS-13 job in azure-pipelines.yml | ||
|
||
- 2022-03-04: | ||
- Synchronize configure and configure.bat scripts for sanity | ||
- Update CI operating system support with latest Azure OS images | ||
- Streamline utility scripts in etc/scripts/ to create, fetch and manage third-party dependencies | ||
There are now fewer scripts. See etc/scripts/README.rst for details | ||
|
||
- 2021-09-03: | ||
- ``configure`` now requires pinned dependencies via the use of ``requirements.txt`` and ``requirements-dev.txt`` | ||
- ``configure`` can now accept multiple options at once | ||
- Add utility scripts from scancode-toolkit/etc/release/ for use in generating project files | ||
- Rename virtual environment directory from ``tmp`` to ``venv`` | ||
- Update README.rst with instructions for generating ``requirements.txt`` and ``requirements-dev.txt``, | ||
as well as collecting dependencies as wheels and generating ABOUT files for them. | ||
|
||
- 2021-05-11: | ||
- Adopt new configure scripts from ScanCode TK that allows correct configuration of which Python version is used. | ||
The GPL-2.0 applies only to the bundled Ctags binary. |
This file was deleted.
Oops, something went wrong.
This file contains 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,12 +1,12 @@ | ||
[metadata] | ||
name = skeleton | ||
name = source-inspector | ||
license = Apache-2.0 | ||
|
||
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390 | ||
description = skeleton | ||
description = source-inspector | ||
long_description = file:README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/nexB/skeleton | ||
url = https://github.com/nexB/source-inspector | ||
|
||
author = nexB. Inc. and others | ||
author_email = [email protected] | ||
|
@@ -41,12 +41,19 @@ setup_requires = setuptools_scm[toml] >= 4 | |
python_requires = >=3.7 | ||
|
||
install_requires = | ||
|
||
scancode-toolkit | ||
plugincode | ||
commoncode | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
|
||
[options.entry_points] | ||
scancode_scan = | ||
source_symbol = source_inpector.symbols_ctags:CtagsSymbolScannerPlugin | ||
|
||
|
||
[options.extras_require] | ||
testing = | ||
pytest >= 6, != 7.0.0 | ||
|
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.