Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 30, 2025
1 parent 73ac554 commit 21bb51d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[project]
name = "PyCatFile"
version = "0.17.4"
readme = "README.md
license = "BSD-3-Clause"
keywords = []
description = "A tar like file format name catfile after unix cat command (concatenate files) ."
authors = [
{ name = "Kazuki Przyborowski", email = "kazuki.przyborowski@gmail.com" },
]

20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@
pkg_resources.to_filename(pymodule['name'])+".egg-info\""))
sys.exit()

if(len(sys.argv) > 1 and (sys.argv[1] == "buildcfg" or sys.argv[1] == "makecfg")):
outcfgvar = """[project]
name = "{}"
version = "{}"
readme = "README.md
license = "BSD-3-Clause"
keywords = []
description = "{}"
authors = [
{{ name = "{}", email = "{}" }},
]
""".format(pymodule['name'], pymodule['version'], pymodule['description'], pymodule['author'], pymodule['authoremail'])
mytoml = open("./pyproject.toml", "w")
mytoml.write(outcfgvar)
mytoml.flush()
if(hasattr(os, "sync")):
os.fsync(mytoml.fileno())
mytoml.close()
sys.exit()

setup(
name=pymodule['name'],
version=pymodule['version'],
Expand Down

0 comments on commit 21bb51d

Please sign in to comment.