Skip to main content

Rename the package to ‘javascript data files’

ID
b4c887a
date
2024-10-23 10:58:20+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
cbb6cab
message
Rename the package to 'javascript data files'
changed files
4 files, 10 additions, 5 deletions

Changed files

pyproject.toml (1252) → pyproject.toml (1269)

diff --git a/pyproject.toml b/pyproject.toml
index d3aecf0..c73b6b0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,7 @@ requires = [
 build-backend = "setuptools.build_meta"
 
 [project]
-name = "alexwlchan-python-js-files"
+name = "javascript_data_files"
 description = "Work with JSON which is stored as a value in a JavaScript file"
 readme = "README.md"
 authors = [
@@ -28,7 +28,7 @@ dynamic = ["version"]
 "Changelog" = "https://github.com/alexwlchan/python-js-files/blob/main/CHANGELOG.md"
 
 [tool.setuptools.dynamic]
-version = {attr = "javascript.__version__"}
+version = {attr = "javascript_data_files.__version__"}
 
 [tool.setuptools.packages.find]
 where = ["src"]
@@ -38,7 +38,7 @@ nitrate = ["py.typed"]
 
 [tool.coverage.run]
 branch = true
-source = ["javascript", "tests",]
+source = ["javascript_data_files", "tests",]
 
 [tool.coverage.report]
 show_missing = true

src/javascript/__init__.py (5928) → src/javascript_data_files/__init__.py (5928)

diff --git a/src/javascript/__init__.py b/src/javascript_data_files/__init__.py
similarity index 99%
rename from src/javascript/__init__.py
rename to src/javascript_data_files/__init__.py
index a4306f2..6f314c9 100644
--- a/src/javascript/__init__.py
+++ b/src/javascript_data_files/__init__.py
@@ -19,7 +19,7 @@ import typing
 import uuid
 
 
-__version__ = "1.0.1"
+__version__ = "1.0.0"
 
 
 def read_js(p: pathlib.Path | str, *, varname: str) -> typing.Any:

src/javascript/py.typed (0) → src/javascript_data_files/py.typed (0)

diff --git a/src/javascript/py.typed b/src/javascript_data_files/py.typed
similarity index 100%
rename from src/javascript/py.typed
rename to src/javascript_data_files/py.typed

tests/test_javascript.py (11871) → tests/test_javascript_data_files.py (11903)

diff --git a/tests/test_javascript.py b/tests/test_javascript_data_files.py
similarity index 90%
rename from tests/test_javascript.py
rename to tests/test_javascript_data_files.py
index 34717a0..75cf8ff 100644
--- a/tests/test_javascript.py
+++ b/tests/test_javascript_data_files.py
@@ -7,7 +7,12 @@ import typing
 
 import pytest
 
-from javascript import append_to_js_array, append_to_js_object, read_js, write_js
+from javascript_data_files import (
+    append_to_js_array,
+    append_to_js_object,
+    read_js,
+    write_js,
+)
 
 
 @pytest.fixture