Skip to content

Commit c217ed0

Browse files
authored
🚚 move package to src directory (#72)
1 parent a4e56e5 commit c217ed0

File tree

12 files changed

+12
-10
lines changed

12 files changed

+12
-10
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}' mysql_to_sqlite3/__init__.py)
27+
VERSION=$(awk -F'"' '/__version__/ {print $2}' src/mysql_to_sqlite3/__init__.py)
2828
TAG=${GITHUB_REF_NAME#v}
2929
if [[ "$VERSION" != "$TAG" ]]; then
30-
echo "Version in mysql-to-sqlite3/__version__.py ($VERSION) does not match tag ($TAG)"
30+
echo "Version in src/mysql_to_sqlite3/__version__.py ($VERSION) does not match tag ($TAG)"
3131
exit 1
3232
fi
3333
echo "VERSION=$VERSION" >> $GITHUB_ENV

pyproject.toml

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

5858
[tool.hatch.version]
59-
path = "mysql_to_sqlite3/__init__.py"
59+
path = "src/mysql_to_sqlite3/__init__.py"
6060

6161
[tool.hatch.build.targets.sdist]
6262
include = [
63-
"mysql_to_sqlite3",
63+
"src",
6464
"tests",
6565
"README.md",
6666
"CHANGELOG.md",
@@ -102,6 +102,7 @@ known_first_party = "mysql_to_sqlite3"
102102
skip_gitignore = true
103103

104104
[tool.pytest.ini_options]
105+
pythonpath = ["src"]
105106
testpaths = ["tests"]
106107
norecursedirs = [".*", "venv", "env", "*.egg", "dist", "build"]
107108
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",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)