Skip to content

Commit 6797bcf

Browse files
committed
Update dependencies and add pyproject.toml
1 parent 28c532d commit 6797bcf

File tree

4 files changed

+54
-12
lines changed

4 files changed

+54
-12
lines changed

code_tokenize/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
from code_ast.parsers import ASTParser
1+
from code_ast import ASTParser, ASTVisitor
32

43
from .tokenizer import tokenize_tree
54
from .lang import load_from_lang_config

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "code_tokenize"
7+
version = "v0.2.1"
8+
description = "Fast program tokenization and structural analysis in Python"
9+
readme = "README.md"
10+
requires-python = ">= 3.8"
11+
license = { file = "LICENSE.txt" }
12+
keywords = ["code", "tokenization", "tokenize", "program", "language processing"]
13+
14+
authors = [{name = "Cedric Richter", email = "cedricr.upb@gmail.com"}]
15+
maintainers = [{name = "Cedric Richter", email = "cedricr.upb@gmail.com"}]
16+
17+
classifiers = [
18+
"Development Status :: 3 - Alpha",
19+
"Intended Audience :: Developers",
20+
"Topic :: Software Development :: Build Tools",
21+
"License :: OSI Approved :: MIT License",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.6",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: 3 :: Only",
32+
]
33+
34+
dependencies = ["tree_sitter", "GitPython", "requests", "code_ast"]
35+
36+
[project.urls]
37+
"Homepage" = "https://github.com/cedricrupb/code_tokenize"
38+
"Bug Reports" = "https://github.com/cedricrupb/code_tokenize/issues"
39+
"Source" = "https://github.com/cedricrupb/code_tokenize"

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tree_sitter==0.19.0
2-
requests==2.25.1
3-
GitPython==3.1.18
4-
code_ast==0.1.0
1+
tree_sitter==0.21.3
2+
requests>=2.32.0
3+
GitPython>=3.1.41
4+
code_ast>=0.1.1

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
setup(
77
name = 'code_tokenize',
88
packages = find_packages(exclude=['tests']),
9-
version = '0.2.0',
9+
version = '0.2.1',
1010
license='MIT',
1111
description = 'Fast program tokenization and structural analysis in Python',
1212
long_description = long_description,
1313
long_description_content_type="text/markdown",
1414
author = 'Cedric Richter',
1515
author_email = 'cedricr.upb@gmail.com',
1616
url = 'https://github.com/cedricrupb/code_tokenize',
17-
download_url = 'https://github.com/cedricrupb/code_tokenize/archive/refs/tags/v0.2.0.tar.gz',
17+
download_url = 'https://github.com/cedricrupb/code_tokenize/archive/refs/tags/v0.2.1.tar.gz',
1818
keywords = ['code', 'tokenization', 'tokenize', 'program', 'language processing'],
1919
install_requires=[
20-
'tree_sitter',
21-
'GitPython',
22-
'requests',
23-
'code-ast'
20+
'tree_sitter==0.21.3',
21+
'GitPython>=3.1.41',
22+
'requests>=2.32.0',
23+
'code-ast>=0.1.1'
2424
],
2525
classifiers=[
2626
'Development Status :: 3 - Alpha',
@@ -32,5 +32,9 @@
3232
'Programming Language :: Python :: 3.7',
3333
'Programming Language :: Python :: 3.8',
3434
'Programming Language :: Python :: 3.9',
35+
'Programming Language :: Python :: 3.10',
36+
'Programming Language :: Python :: 3.11',
37+
'Programming Language :: Python :: 3.12',
38+
'Programming Language :: Python :: 3.13',
3539
],
3640
)

0 commit comments

Comments
 (0)