-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a package without CLI (#25)
Fix #23. --------- Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information
Showing
6 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "nodejs-wheel" | ||
dynamic = ["version", "dependencies"] | ||
description = "unoffical Node.js package" | ||
authors = [ | ||
{name = "Jinzhe Zeng", email = "[email protected]"}, | ||
] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
] | ||
requires-python = ">=3.7" | ||
readme = "README.md" | ||
keywords = ["nodejs"] | ||
|
||
[project.urls] | ||
repository = "https://github.com/njzjz/nodejs-wheel" | ||
|
||
[project.scripts] | ||
node = "nodejs_wheel.executable:node" | ||
npm = "nodejs_wheel.executable:npm" | ||
npx = "nodejs_wheel.executable:npx" | ||
|
||
[tool.setuptools_scm] | ||
root = ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from setuptools import setup | ||
from setuptools_scm import Configuration, _get_version | ||
|
||
config = Configuration.from_file("pyproject.toml") | ||
version = _get_version(config) | ||
assert version is not None | ||
|
||
setup( | ||
install_requires=[ | ||
f"nodejs-wheel=={version}", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters