diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33535cb4..0f4f3abe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: uses: snok/install-poetry@v1.3.3 - name: configure pypi credentials run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}" - - name: Publish package + - name: Publish core package run: poetry publish --build - name: install dependencies run: poetry install @@ -34,3 +34,15 @@ jobs: env: DATABASE_URL: ${{ secrets.OPENSTATES_DATABASE_URL }} run: poetry run os-initdb + # Add steps for metadata package + - name: Change directory to metadata + run: cd openstates/metadata + + - name: install dependencies for metadata + run: poetry install + + - name: configure pypi credentials for metadata package + run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}" + + - name: Publish metadata package + run: poetry publish --build diff --git a/openstates/metadata/poetry.lock b/openstates/metadata/poetry.lock new file mode 100644 index 00000000..08580832 --- /dev/null +++ b/openstates/metadata/poetry.lock @@ -0,0 +1,36 @@ +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. + +[[package]] +name = "attr" +version = "0.3.2" +description = "Simple decorator to set attributes of target function or class in a DRY way." +optional = false +python-versions = "*" +files = [ + {file = "attr-0.3.2-py2.py3-none-any.whl", hash = "sha256:4f4bffeea8c27387bde446675a7ac24f3b8fea1075f12d849b5f5c5181fc8336"}, + {file = "attr-0.3.2.tar.gz", hash = "sha256:1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4"}, +] + +[[package]] +name = "attrs" +version = "24.2.0" +description = "Classes Without Boilerplate" +optional = false +python-versions = ">=3.7" +files = [ + {file = "attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2"}, + {file = "attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346"}, +] + +[package.extras] +benchmark = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +cov = ["cloudpickle", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier (<24.7)"] +tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] + +[metadata] +lock-version = "2.0" +python-versions = "^3.9" +content-hash = "73e06d79bc6e2c0b2c3ad93b8862a707f5331b207abc804788b894f59f46e1fa" diff --git a/openstates/metadata/pyproject.toml b/openstates/metadata/pyproject.toml new file mode 100644 index 00000000..6745fd06 --- /dev/null +++ b/openstates/metadata/pyproject.toml @@ -0,0 +1,17 @@ +[tool.poetry] +name = "openstates-metadata" +version = "0.1.0" +description = "Openstates metadata" +authors = ["alexobaseki "] +license = "MIT" + + +[tool.poetry.dependencies] +python = "^3.9" +attr = "^0.3.2" +attrs = "^24.2.0" + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api"