Skip to content

Commit 3a68bbb

Browse files
authored
🚚 move package to src directory (#110)
1 parent 2ac7aac commit 3a68bbb

File tree

15 files changed

+74
-52
lines changed

15 files changed

+74
-52
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
id: compare
2525
run: |
2626
set -e
27-
VERSION=$(awk -F'"' '/__version__/ {print $2}' sqlite3_to_mysql/__init__.py)
27+
VERSION=$(awk -F'"' '/__version__/ {print $2}' src/sqlite3_to_mysql/__init__.py)
2828
TAG=${GITHUB_REF_NAME#v}
2929
if [[ "$VERSION" != "$TAG" ]]; then
30-
echo "Version in sqlite3_to_mysql/__version__.py ($VERSION) does not match tag ($TAG)"
30+
echo "Version in src/sqlite3_to_mysql/__version__.py ($VERSION) does not match tag ($TAG)"
3131
exit 1
3232
fi
3333
echo "VERSION=$VERSION" >> $GITHUB_ENV

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ jobs:
508508
- name: Upload coverage to Codecov
509509
uses: codecov/codecov-action@v4
510510
with:
511+
token: ${{ secrets.CODECOV_TOKEN }}
512+
slug: techouse/sqlite3-to-mysql
511513
files: ./coverage.xml
512514
env_vars: OS,PYTHON
513515
verbose: true

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ Sponsor = "https://github.com/sponsors/techouse"
5757
PayPal = "https://paypal.me/ktusar"
5858

5959
[tool.hatch.version]
60-
path = "sqlite3_to_mysql/__init__.py"
60+
path = "src/sqlite3_to_mysql/__init__.py"
6161

6262
[tool.hatch.build.targets.sdist]
6363
include = [
64-
"sqlite3_to_mysql",
64+
"src",
6565
"tests",
6666
"README.md",
6767
"CHANGELOG.md",
@@ -103,6 +103,7 @@ known_first_party = "sqlite3_to_mysql"
103103
skip_gitignore = true
104104

105105
[tool.pytest.ini_options]
106+
pythonpath = ["src"]
106107
testpaths = ["tests"]
107108
norecursedirs = [".*", "venv", "env", "*.egg", "dist", "build"]
108109
minversion = "7.3.1"
@@ -115,6 +116,7 @@ markers = [
115116
]
116117

117118
[tool.mypy]
119+
mypy_path = "src"
118120
python_version = "3.8"
119121
exclude = [
120122
"tests",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility to transfer data from SQLite 3 to MySQL."""
2+
23
__version__ = "2.1.7"
34

45
from .transporter import SQLite3toMySQL

sqlite3_to_mysql/cli.py renamed to src/sqlite3_to_mysql/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The command line interface of SQLite3toMySQL."""
2+
23
import os
34
import sys
45
import typing as t
File renamed without changes.
File renamed without changes.

sqlite3_to_mysql/mysql_utils.py renamed to src/sqlite3_to_mysql/mysql_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""MySQL helpers."""
2+
23
import re
34
import typing as t
45

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)