forked from toabctl/metaextract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for packages without setup.py
Following the doc from setuptools, when there's no setup.py file it's possible to use a simple one with just the call to `setup()` that will get the data from pyproject.toml: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#configuring-setuptools-using-pyproject-toml-files This should fix the issue in py2pack trying to generate from projects that doesn't provide a setup.py file: openSUSE/py2pack#159
- Loading branch information
Showing
4 changed files
with
60 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
long desc |
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,29 @@ | ||
[build-system] | ||
requires = ["hatchling>=0.21.0"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
requires-python = ">=2.6,!=3.0.*,!=3.1.*,!=3.2.*" | ||
name = "testpkg" | ||
version= "1.2.3" | ||
description = "desc" | ||
readme = "README.md" | ||
license = { text = "Apache-2.0" } | ||
authors = [ | ||
{ name = "的å", email = "author@email.com" }, | ||
] | ||
keywords = ["test", "pkg"] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
] | ||
dependencies = ["foo", "bar"] | ||
|
||
[project.optional-dependencies] | ||
extra1 = ["ex11", "ex12"] | ||
extra2 = ["ex21>=3.4", "ex22>=0.11.0,!=0.15.0"] | ||
|
||
[project.scripts] | ||
testpkgp1 = "testpkg:main" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
[tool.hatch.build.targets.wheel] |
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