Skip to content

Commit

Permalink
🚚 move package to src directory (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse authored Apr 13, 2024
1 parent a4e56e5 commit c217ed0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
id: compare
run: |
set -e
VERSION=$(awk -F'"' '/__version__/ {print $2}' mysql_to_sqlite3/__init__.py)
VERSION=$(awk -F'"' '/__version__/ {print $2}' src/mysql_to_sqlite3/__init__.py)
TAG=${GITHUB_REF_NAME#v}
if [[ "$VERSION" != "$TAG" ]]; then
echo "Version in mysql-to-sqlite3/__version__.py ($VERSION) does not match tag ($TAG)"
echo "Version in src/mysql_to_sqlite3/__version__.py ($VERSION) does not match tag ($TAG)"
exit 1
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Sponsor = "https://github.com/sponsors/techouse"
PayPal = "https://paypal.me/ktusar"

[tool.hatch.version]
path = "mysql_to_sqlite3/__init__.py"
path = "src/mysql_to_sqlite3/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"mysql_to_sqlite3",
"src",
"tests",
"README.md",
"CHANGELOG.md",
Expand Down Expand Up @@ -102,6 +102,7 @@ known_first_party = "mysql_to_sqlite3"
skip_gitignore = true

[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
norecursedirs = [".*", "venv", "env", "*.egg", "dist", "build"]
minversion = "7.3.1"
Expand All @@ -115,6 +116,7 @@ markers = [
]

[tool.mypy]
mypy_path = "src"
python_version = "3.8"
exclude = [
"tests",
Expand Down
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.
File renamed without changes.
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ passenv =
LEGACY_DB
deps =
-rrequirements_dev.txt
commands = pytest -v --cov=mysql_to_sqlite3 --cov-report=xml
commands = pytest -v --cov=src/mysql_to_sqlite3 --cov-report=xml

[testenv:black]
basepython = python3
skip_install = true
deps =
black
commands = black mysql_to_sqlite3 tests/
commands = black src/mysql_to_sqlite3 tests/

[testenv:isort]
basepython = python3
Expand All @@ -53,7 +53,7 @@ deps =
flake8-typing-imports
pep8-naming
commands =
flake8 mysql_to_sqlite3
flake8 src/mysql_to_sqlite3

[testenv:pylint]
basepython = python3
Expand All @@ -63,15 +63,15 @@ deps =
-rrequirements_dev.txt
disable = C0209,C0301,C0411,R,W0107,W0622
commands =
pylint --rcfile=tox.ini mysql_to_sqlite3
pylint --rcfile=tox.ini src/mysql_to_sqlite3

[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit
commands =
bandit -r mysql_to_sqlite3 -c .bandit.yml
bandit -r src/mysql_to_sqlite3 -c .bandit.yml

[testenv:mypy]
basepython = python3
Expand All @@ -80,7 +80,7 @@ deps =
mypy>=1.3.0
-rrequirements_dev.txt
commands =
mypy mysql_to_sqlite3
mypy src/mysql_to_sqlite3

[testenv:linters]
basepython = python3
Expand Down

0 comments on commit c217ed0

Please sign in to comment.