Skip to content

Commit bce445f

Browse files
committed
Add fastseq source files from sctk branch
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent f454310 commit bce445f

12 files changed

Lines changed: 10201 additions & 116 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Python compiled files
22
*.py[cod]
3+
src/**/*.so
34

45
# virtualenv and other misc bits
56
/src/*.egg-info

README.rst

Lines changed: 3 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,4 @@
1-
A Simple Python Project Skeleton
2-
================================
1+
fastseq
2+
=======
33

4-
This repo attempts to standardize the structure of the Python-based project's
5-
repositories using modern Python packaging and configuration techniques.
6-
Using this `blog post`_ as inspiration, this repository serves as the base for
7-
all new Python projects and is mergeable in existing repositories as well.
8-
9-
.. _blog post: https://blog.jaraco.com/a-project-skeleton-for-python-projects/
10-
11-
12-
Usage
13-
=====
14-
15-
A brand new project
16-
-------------------
17-
18-
.. code-block:: bash
19-
20-
git init my-new-repo
21-
cd my-new-repo
22-
git pull git@github.com:nexB/skeleton
23-
24-
# Create the new repo on GitHub, then update your remote
25-
git remote set-url origin git@github.com:nexB/your-new-repo.git
26-
27-
From here, you can make the appropriate changes to the files for your specific project.
28-
29-
Update an existing project
30-
---------------------------
31-
32-
.. code-block:: bash
33-
34-
cd my-existing-project
35-
git remote add skeleton git@github.com:nexB/skeleton
36-
git fetch skeleton
37-
git merge skeleton/main --allow-unrelated-histories
38-
39-
This is also the workflow to use when updating the skeleton files in any given repository.
40-
41-
More usage instructions can be found in ``docs/skeleton-usage.rst``.
42-
43-
44-
Release Notes
45-
=============
46-
47-
- 2025-03-31:
48-
49-
- Use ruff as the main code formatting tool, add ruff rules to pyproject.toml
50-
51-
- 2025-03-29:
52-
53-
- Add support for beta macOS-15
54-
- Add support for beta windows-2025
55-
56-
- 2025-02-14:
57-
58-
- Drop support for Python 3.8, add support in CI for Python 3.13, use Python 3.12 as default
59-
version.
60-
61-
- 2025-01-17:
62-
63-
- Drop support for macOS-12, add support for macOS-14
64-
- Add support in CI for ubuntu-24.04
65-
- Add support in CI for Python 3.12
66-
67-
- 2024-08-20:
68-
69-
- Update references of ownership from nexB to aboutcode-org
70-
71-
- 2024-07-01:
72-
73-
- Drop support for Python 3.8
74-
- Drop support for macOS-11, add support for macOS-14
75-
76-
- 2024-02-19:
77-
78-
- Replace support in CI of default ubuntu-20.04 by ubuntu-22.04
79-
80-
- 2023-10-18:
81-
82-
- Add dark mode support in documentation
83-
84-
- 2023-07-18:
85-
86-
- Add macOS-13 job in azure-pipelines.yml
87-
88-
- 2022-03-04:
89-
90-
- Synchronize configure and configure.bat scripts for sanity
91-
- Update CI operating system support with latest Azure OS images
92-
- Streamline utility scripts in etc/scripts/ to create, fetch and manage third-party
93-
dependencies. There are now fewer scripts. See etc/scripts/README.rst for details
94-
95-
- 2021-09-03:
96-
- ``configure`` now requires pinned dependencies via the use of ``requirements.txt``
97-
and ``requirements-dev.txt``
98-
- ``configure`` can now accept multiple options at once
99-
- Add utility scripts from scancode-toolkit/etc/release/ for use in generating project files
100-
- Rename virtual environment directory from ``tmp`` to ``venv``
101-
- Update README.rst with instructions for generating ``requirements.txt``
102-
and ``requirements-dev.txt``, as well as collecting dependencies as wheels and generating
103-
ABOUT files for them.
104-
105-
- 2021-05-11:
106-
- Adopt new configure scripts from ScanCode TK that allows correct configuration of which
107-
Python version is used.
4+
This library is a Cython version of scancode-toolkit's ``licensedcode.seq``.

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ create_virtualenv() {
117117
--no-vcs-ignore \
118118
$CFG_QUIET \
119119
"$CFG_ROOT_DIR/$VENV_DIR"
120+
"$CFG_BIN_DIR/pip" install cython
120121
fi
121122
}
122123

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6"]
2+
requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6", "Cython"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
@@ -68,7 +68,7 @@ include = [
6868
"."
6969

7070
]
71-
# ignore test data and testfiles: they should never be linted nor formatted
71+
# ignore test data and testfiles: they should never be linted nor formatted
7272
exclude = [
7373
# main style
7474
"**/tests/data/**/*",

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[metadata]
2-
name = skeleton
2+
name = fastseq
33
license = Apache-2.0
44

55
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
6-
description = skeleton
6+
description = "A Cython version of ScanCode-toolkit's licensedcode.seq"
77
long_description = file:README.rst
88
long_description_content_type = text/x-rst
9-
url = https://github.com/aboutcode-org/skeleton
9+
url = https://github.com/aboutcode-org/fastseq
1010

1111
author = nexB. Inc. and others
1212
author_email = info@aboutcode.org

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env python
22

33
import setuptools
4+
from Cython.Build import cythonize
5+
6+
7+
extensions = [
8+
setuptools.Extension("fastseq._seq", ["src/fastseq/_seq.pyx"], language="c++"),
9+
]
410

511
if __name__ == "__main__":
6-
setuptools.setup()
12+
setuptools.setup(ext_modules=cythonize(extensions))

src/README.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/fastseq/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) nexB Inc. and others. All rights reserved.
3+
# fastseq is a trademark of nexB Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+
# See https://github.com/aboutcode-org/fastseq for support or download.
7+
# See https://aboutcode.org for more information about nexB OSS projects.
8+
#
9+
10+
from ._seq import *

0 commit comments

Comments
 (0)