Skip to content

Commit

Permalink
Fix publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindflayer committed Sep 16, 2024
1 parent 90e8fbb commit 4a1ed42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ test: types
safetest:
export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; make test

publish: install-test-requirements
python -m build --sdist .
twine upload --repository mocket dist/mocket-$(shell python -c 'import mocket; print(mocket.__version__)').tar.gz
publish: clean install-test-requirements
uv run python3 -m build --sdist .
uv run twine upload --repository mocket dist/*.tar.gz

clean:
rm -rf *.egg-info dist/ requirements.txt Pipfile.lock
find . -type d -name __pycache__ -exec rm -rf {} \;
rm -rf *.egg-info dist/ requirements.txt Pipfile.lock || true
find . -type d -name __pycache__ -exec rm -rf {} \; || true

.PHONY: clean publish safetest test setup develop lint-python test-python _services-up
.PHONY: prepare-hosts services-up services-down install-test-requirements install-dev-requirements
3 changes: 1 addition & 2 deletions tests/main/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ def test_file_object_with_no_lib_magic(self):
self.assertEqual(remote_content, local_content)
self.assertEqual(len(remote_content), len(local_content))
self.assertEqual(int(r.headers["Content-Length"]), len(local_content))
with self.assertRaises(KeyError):
self.assertEqual(r.headers["Content-Type"], "image/png")
self.assertNotIn("Content-Type", r.headers)

@mocketize
def test_same_url_different_methods(self):
Expand Down

0 comments on commit 4a1ed42

Please sign in to comment.