Skip to content

Commit

Permalink
bump version and add dlt pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 9, 2025
1 parent ce302d6 commit ad3b5c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,17 @@ jobs:
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
# - name: Create Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: false
# prerelease: steps.check-version.outputs.prerelease == 'true'

# - name: Publish to PyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry publish
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'

- name: Publish to PyPI
env:
DLT_PYPI_PASSWORD: ${{ secrets.DLT_PYPI_PASSWORD }}
DLT_PYPI_USERNAME: ${{ secrets.DLT_PYPI_USERNAME }}
run: |
poetry publish --repository dlt-pypi --username $DLT_PYPI_PASSWORD --password $DLT_PYPI_USERNAME
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dlt-pendulum"
version = "3.0.1"
version = "3.0.1a1"
description = "Python datetimes made easy"
readme = "README.rst"
requires-python = ">=3.9"
Expand Down Expand Up @@ -32,7 +32,7 @@ Repository = "https://github.com/sdispater/pendulum"

[tool.poetry]
name = "dlt-pendulum"
version = "3.0.1"
version = "3.0.1a1"
description = "Python datetimes made easy"
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
license = "MIT"
Expand Down Expand Up @@ -86,6 +86,11 @@ maturin = ">=1.0,<2.0"
[tool.poetry.extras]
test = ["time-machine"]

[[tool.poetry.source]]
name = "dlt-pypi"
url = "https://pypi.dlthub.com"
priority = "primary"

[tool.maturin]
module-name = "pendulum._pendulum"
features = ["pyo3/extension-module"]
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "_pendulum"
version = "3.0.1"
version = "3.0.1a1"
edition = "2021"

[lib]
Expand Down

0 comments on commit ad3b5c1

Please sign in to comment.