Skip to content

Commit aaa2240

Browse files
author
github-actions
committed
-
[TRANSFER][PUBLISH]
1 parent e191f68 commit aaa2240

File tree

2 files changed

+5
-64
lines changed

2 files changed

+5
-64
lines changed

README.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

build/pypi-packager.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ class pypi {
3737
cp (this.rootDir + `/README.md`, this.tempPyDir + '/README.md');
3838
// write pyproject.toml
3939
const verion = this.defineVersion ();
40-
fs.writeFileSync(this.tempPyDir + '/pyproject.toml', this.pyprojectTolmContent(pypiPackageNameSanitized, verion));
40+
fs.writeFileSync(this.tempPyDir + '/pyproject.toml', this.pyprojectTolmContent(pypiPackageName, verion));
4141
this.pythonPackageBuild ();
4242
}
4343

44-
pyprojectTolmContent(pypiPackageNameSanitized:string, newVersion: string) {
44+
pyprojectTolmContent(pypiPackageName:string, newVersion: string) {
4545
const content = '' +
4646
`[build-system]\n` +
4747
`requires = ["hatchling"]\n` +
@@ -51,10 +51,11 @@ class pypi {
5151
`include = ["src/${this.exchange}"]\n` +
5252
`\n` +
5353
`[tool.hatch.build.targets.wheel]\n` +
54-
`packages = ["src/${this.exchange}"]\n` +
54+
`packages = ["${this.exchange}"]\n` +
55+
`src-layout = "src"\n` +
5556
`\n` +
5657
`[project]\n` +
57-
`name = "${pypiPackageNameSanitized}"\n` +
58+
`name = "${pypiPackageName}"\n` +
5859
`version = "` + newVersion + `"\n` +
5960
`authors = [\n` +
6061
` { name="CCXT", email="[email protected]" },\n` +

0 commit comments

Comments
 (0)