Skip to content

Commit

Permalink
fix: package name
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Oct 18, 2024
1 parent 66d3d2e commit 86c2ec9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
pyproject.toml
key: tests-${{ github.sha }}

- name: Lint files
- name: Check built package
run: tox -r -e dist

check-version-and-changelog:
Expand Down
4 changes: 0 additions & 4 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
---

extends: relaxed

rules:
line-length: disable
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ install:
format:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
black `git ls-files | grep "\.py$$"`
isort `git ls-files | grep "\.py$$"`
pyproject-fmt pyproject.toml
ruff format `git ls-files | grep "\.py$$"`
isort `git ls-files | grep "\.py$$"`

lint: clean
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
black --check `git ls-files | grep "\.py$$"`
isort --check `git ls-files | grep "\.py$$"`
ruff check `git ls-files | grep "\.py$$"`
yamllint `git ls-files | grep "\.yaml$$"`
Expand Down
2 changes: 1 addition & 1 deletion openfisca_extension_template/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def test_openfisca_server(payload):
with request.urlopen(**payload) as response:
data = json.loads(response.read().decode("utf-8"))
assert response.status == client.OK
assert data["info"]["title"] == "Openfisca-Country_Template Web API"
assert data["info"]["title"] == "Openfisca-Country-Template Web API"
14 changes: 4 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build-backend = "poetry.core.masonry.api"
requires = [ "poetry-core>=1.7", "setuptools>=61" ]

[tool.poetry]
name = "openfisca_extension_template"
name = "openfisca-extension_template"
version = "2.0.0"
description = "An OpenFisca extension that adds some variables to an already-existing tax and benefit system."
license = "AGPL-3.0-only"
Expand All @@ -28,10 +28,8 @@ packages = [ { include = "openfisca_extension_template", from = "." } ]

[tool.poetry.dependencies]
python = "~3.9 || ~3.10 || ~3.11"
openfisca_country_template = ">=7"
black = { version = "^24.8.0", optional = true }
openfisca-country_template = ">=7"
isort = { version = "^5.13.2", optional = true }
pyproject-fmt = { version = "^2.3.1", optional = true }
ruff = { version = "^0.6.9", optional = true }
ruff-lsp = { version = "^0.0.57", optional = true }
yamllint = { version = "^1.35.1", optional = true }
Expand Down Expand Up @@ -86,10 +84,6 @@ sections = [
"LOCALFOLDER",
]

[tool.pyproject-fmt]
column_width = 79
indent = 4

[tool.pytest.ini_options]
addopts = "--exitfirst --showlocals --doctest-modules --disable-warnings"
testpaths = [ "openfisca_extension_template/tests" ]
Expand All @@ -108,7 +102,7 @@ commands_pre = [
"install",
"--find-links",
".",
"openfisca_extension_template",
"openfisca-extension_template",
],
]

Expand All @@ -122,7 +116,7 @@ commands_pre = [
"install",
"--find-links",
".",
"openfisca_extension_template[dev]",
"openfisca-extension_template[dev]",
],
]

Expand Down

0 comments on commit 86c2ec9

Please sign in to comment.