Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/avoid dynamic metadata #296

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save
pip install toml-cli
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec", {
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" ecommerce_integrations/__init__.py'
"prepareCmd": 'toml set --toml-path pyproject.toml project.version ${nextRelease.version}'
}
],
[
"@semantic-release/git", {
"assets": ["ecommerce_integrations/__init__.py"],
"assets": ["pyproject.toml"],
"message": "chore(release): Bumped to Version ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
Expand Down
18 changes: 0 additions & 18 deletions MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion dev-requirements.txt

This file was deleted.

4 changes: 3 additions & 1 deletion ecommerce_integrations/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__version__ = "1.17.0"
import importlib.metadata

__version__ = importlib.metadata.version(__name__)
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
[project]
name='ecommerce_integrations'
description='Ecommerce integrations for ERPNext'
authors = [
{ name = "Frappe Technologies Pvt Ltd", email = "[email protected]"}
]
requires-python = ">=3.10"
readme = "./README.md"
version = "1.17.0"

dependencies = [
"ShopifyAPI==12.3.0", # update after resolving pyjwt conflict in frappe
"boto3~=1.28.10",
]

[project.license]
file = "./LICENSE"

[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"

[tool.black]
line-length = 99

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[metadata]
# compatibility until https://github.com/frappe/bench/pull/1502 is more adopted
version = 1.17.0
19 changes: 0 additions & 19 deletions setup.py

This file was deleted.