pyven 119__tar.gz → 121__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {pyven-119 → pyven-121}/PKG-INFO +4 -8
  2. pyven-121/pyproject.toml +30 -0
  3. pyven-121/pyven/base.arid +1 -0
  4. {pyven-119 → pyven-121}/pyven/checks.py +1 -0
  5. {pyven-119 → pyven-121}/pyven/mainmodules.py +1 -1
  6. {pyven-119 → pyven-121}/pyven/pipify.py +10 -7
  7. {pyven-119 → pyven-121}/pyven/projectinfo.py +9 -11
  8. pyven-121/pyven/pyproject.toml.aridt +17 -0
  9. {pyven-119 → pyven-121}/pyven/setup.py.aridt +0 -1
  10. {pyven-119 → pyven-121}/pyven/setuptools.arid +1 -0
  11. {pyven-119 → pyven-121}/pyven.egg-info/PKG-INFO +4 -8
  12. {pyven-119 → pyven-121}/pyven.egg-info/SOURCES.txt +2 -0
  13. {pyven-119 → pyven-121}/pyven.egg-info/requires.txt +1 -1
  14. {pyven-119 → pyven-121}/setup.py +1 -2
  15. pyven-119/pyven/pyproject.toml.aridt +0 -2
  16. {pyven-119 → pyven-121}/README.md +0 -0
  17. {pyven-119 → pyven-121}/pyven/Dockerfile.aridt +0 -0
  18. {pyven-119 → pyven-121}/pyven/README.md.aridt +0 -0
  19. {pyven-119 → pyven-121}/pyven/__init__.py +0 -0
  20. {pyven-119 → pyven-121}/pyven/bdist.py +0 -0
  21. {pyven-119 → pyven-121}/pyven/container.py +0 -0
  22. {pyven-119 → pyven-121}/pyven/execcheck.py +0 -0
  23. {pyven-119 → pyven-121}/pyven/files.py +0 -0
  24. {pyven-119 → pyven-121}/pyven/functions.py +0 -0
  25. {pyven-119 → pyven-121}/pyven/licheck.py +0 -0
  26. {pyven-119 → pyven-121}/pyven/metacheck.py +0 -0
  27. {pyven-119 → pyven-121}/pyven/minreqs.py +0 -0
  28. {pyven-119 → pyven-121}/pyven/nlcheck.py +0 -0
  29. {pyven-119 → pyven-121}/pyven/patchpolicy.py +0 -0
  30. {pyven-119 → pyven-121}/pyven/projectinfo.arid +0 -0
  31. {pyven-119 → pyven-121}/pyven/release.arid +0 -0
  32. {pyven-119 → pyven-121}/pyven/release.py +0 -0
  33. {pyven-119 → pyven-121}/pyven/sourceinfo.py +0 -0
  34. {pyven-119 → pyven-121}/pyven/tasks.py +0 -0
  35. {pyven-119 → pyven-121}/pyven/tests/__init__.py +0 -0
  36. {pyven-119 → pyven-121}/pyven/tryinstall.py +0 -0
  37. {pyven-119 → pyven-121}/pyven/util.py +0 -0
  38. {pyven-119 → pyven-121}/pyven.egg-info/dependency_links.txt +0 -0
  39. {pyven-119 → pyven-121}/pyven.egg-info/entry_points.txt +0 -0
  40. {pyven-119 → pyven-121}/pyven.egg-info/top_level.txt +0 -0
  41. {pyven-119 → pyven-121}/setup.cfg +0 -0
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyven
3
- Version: 119
3
+ Version: 121
4
4
  Summary: Manage development of multiple Python projects
5
5
  Home-page: https://pypi.org/project/pyven/
6
6
  Author: Homsar
7
- Author-email: homsar@foyono.com
7
+ Author-email: Homsar <homsar@foyono.com>
8
+ Requires-Python: >=3.11
8
9
  Description-Content-Type: text/markdown
9
10
  Requires-Dist: aridity>=85
10
11
  Requires-Dist: diapyr>=31
@@ -15,14 +16,9 @@ Requires-Dist: pydoc-markdown>=4.8.2
15
16
  Requires-Dist: roman>=5
16
17
  Requires-Dist: setuptools>=44.1.1
17
18
  Requires-Dist: twine>=1.15.0
18
- Requires-Dist: venvpool>=18
19
+ Requires-Dist: venvpool>=28
19
20
  Dynamic: author
20
- Dynamic: author-email
21
- Dynamic: description
22
- Dynamic: description-content-type
23
21
  Dynamic: home-page
24
- Dynamic: requires-dist
25
- Dynamic: summary
26
22
 
27
23
  # pyven
28
24
  Manage development of multiple Python projects.
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+
4
+ [project]
5
+ authors = [{name = "Homsar", email = "homsar@foyono.com"}]
6
+ dependencies = [
7
+ "aridity>=85",
8
+ "diapyr>=31",
9
+ "foyndation>=18",
10
+ "lagoon>=64",
11
+ "packaging>=25",
12
+ "pydoc-markdown>=4.8.2",
13
+ "roman>=5",
14
+ "setuptools>=44.1.1",
15
+ "twine>=1.15.0",
16
+ "venvpool>=28",
17
+ ]
18
+ description = "Manage development of multiple Python projects"
19
+ name = "pyven"
20
+ readme = "README.md"
21
+ requires-python = ">=3.11"
22
+ version = "121"
23
+
24
+ [project.scripts]
25
+ minreqs = "pyven.minreqs:main"
26
+ pipify = "pyven.pipify:main"
27
+ release = "pyven.release:main"
28
+ tasks = "pyven.tasks:main"
29
+ tryinstall = "pyven.tryinstall:main"
30
+ tests = "pyven.tests.__init__:main"
@@ -0,0 +1 @@
1
+ . $pyres(pyven projectinfo.arid utf-8)
@@ -110,6 +110,7 @@ class EveryVersion:
110
110
  doctestpath.parent.mkdir(exist_ok = True)
111
111
  with doctestpath.open('w') as f:
112
112
  if url is not None:
113
+ log.info('Load doctests.')
113
114
  try:
114
115
  result = tidy._asxml[::DEVNULL](check = False, input = url.w(f"Category:Doctest/{self.info.config.name}"))
115
116
  except HTTPError as e:
@@ -50,7 +50,7 @@ def main():
50
50
  if call.args or call.keywords:
51
51
  log.warning("Bad call: %s", command)
52
52
  else:
53
- result['console_script'] = f"{command}={relpath[:-len(extension)].replace(os.sep, '.')}:{_funcpath(call.func)}"
53
+ result['console_script'] = command, f"{relpath[:-len(extension)].replace(os.sep, '.')}:{_funcpath(call.func)}"
54
54
  print(result)
55
55
 
56
56
  if ('__main__' == __name__):
@@ -30,6 +30,7 @@ def pipify(info, version):
30
30
  cc.execute('''py_modules := $list()
31
31
  install_requires := $list()
32
32
  console_scripts := $list()
33
+ project_scripts := $list()
33
34
  ''')
34
35
  cc.w.name = info.config.name
35
36
  cc.w.tagline = info.config.tagline
@@ -47,17 +48,19 @@ console_scripts := $list()
47
48
  cc.w.py_modules += m
48
49
  for r in info.allrequires:
49
50
  cc.w.install_requires += r
50
- for s in info.console_scripts():
51
- cc.w.console_scripts += s
51
+ for command, ref in info.console_scripts():
52
+ cc.w.console_scripts += f"{command}={ref}"
53
+ ps = getattr(cc.w.project_scripts, command)
54
+ ps.command = command
55
+ ps.ref = ref
56
+ @bfs(info.allbuildrequires)
57
+ def proc(bfsinfo, name):
58
+ cc.w.build_requires += name
52
59
  # XXX: Use soak to generate these?
53
60
  tasks = [
61
+ ['pyproject.toml', 'pyproject.toml.aridt', 'tomlquote'],
54
62
  ['setup.py', 'setup.py.aridt', 'pystr'],
55
63
  ]
56
- @bfs(info.allbuildrequires)
57
- def proc(bfsinfo, name):
58
- cc.w.build_requires += name
59
- if proc.donekeys != {'setuptools', 'wheel'}:
60
- tasks.append(['pyproject.toml', 'pyproject.toml.aridt', 'tomlquote'])
61
64
  with as_file(files(__spec__.parent)) as parent:
62
65
  for name, template, quote in tasks:
63
66
  cc.execute(f'" = $({quote})')
@@ -2,9 +2,8 @@ from . import mainmodules
2
2
  from .files import Files
3
3
  from .util import Seek
4
4
  from aridity.config import ConfigCtrl
5
- from aridity.model import Entry, Resource
5
+ from aridity.model import Entry, Locator, Resource
6
6
  from foyndation import dotpy, rmsuffix, solo
7
- from importlib.resources import files
8
7
  from inspect import getsource
9
8
  from lagoon.program import NOEOL, Program
10
9
  from lagoon.text import git
@@ -85,13 +84,14 @@ class SimpleInstallDeps(ParsedRequires):
85
84
  class ProjectInfo:
86
85
 
87
86
  projectaridname = 'project.arid'
87
+ setuptoolsaridresource = Resource(__name__, 'setuptools.arid', 'ascii')
88
88
 
89
89
  @classmethod
90
90
  def seek(cls, realdir):
91
91
  seek = Seek.seek(realdir, cls.projectaridname)
92
92
  if seek is None:
93
93
  raise ProjectInfoNotFoundException(realdir)
94
- return cls(seek.parent, seek.path)
94
+ return cls(seek.parent, Locator(seek.path))
95
95
 
96
96
  @classmethod
97
97
  def seekany(cls, realdir):
@@ -105,8 +105,7 @@ class ProjectInfo:
105
105
  return cls._setuptoolsinfo(setupseek.path)
106
106
  log.info('Use uninstallable mode.')
107
107
  projectdir = Seek.seek(realdir, '.git').path.parent
108
- with (files(__spec__.parent) / 'setuptools.arid').open(encoding = 'ascii') as f:
109
- info = cls(projectdir, f)
108
+ info = cls(projectdir, cls.setuptoolsaridresource)
110
109
  info.config.name = os.path.basename(os.path.abspath(projectdir))
111
110
  try:
112
111
  info.allrequires.extend((projectdir / 'requirements.txt').read_text().splitlines())
@@ -116,20 +115,19 @@ class ProjectInfo:
116
115
 
117
116
  @classmethod
118
117
  def _setuptoolsinfo(cls, setuppath):
119
- with (files(__spec__.parent) / 'setuptools.arid').open(encoding = 'ascii') as f:
120
- info = cls(setuppath.parent, f)
118
+ info = cls(setuppath.parent, cls.setuptoolsaridresource)
121
119
  setupkwargs = getsetupkwargs(setuppath, ['name', 'install_requires', 'entry_points'])
122
120
  if 'name' in setupkwargs:
123
121
  info.config.name = setupkwargs['name']
124
122
  info.allrequires.extend(setupkwargs.get('install_requires', []))
125
- console_scripts = setupkwargs.get('entry_points', {}).get('console_scripts')
123
+ if (console_scripts := setupkwargs.get('entry_points', {}).get('console_scripts')) is not None:
124
+ console_scripts = [s.split('=', 1) for s in console_scripts]
126
125
  info.console_scripts = lambda: console_scripts
127
126
  return info
128
127
 
129
- def __init__(self, projectdir, infopathorstream):
128
+ def __init__(self, projectdir, openable):
130
129
  cc = ConfigCtrl()
131
- Resource(__name__, 'projectinfo.arid', 'utf-8').source(cc.scope, Entry([])) # TODO: Should be explicit project.arid include.
132
- cc.load(infopathorstream)
130
+ openable.source(cc.scope, Entry([]))
133
131
  self.allbuildrequires = list(cc.r.build.requires)
134
132
  self.allrequires = list(cc.r.requires)
135
133
  self.pyversiontags = list(map(str, cc.r.pyversiontag)) # TODO: API to unparse instead of best scalar.
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = [$join($map($(build_requires) it $"$(it)) $.(, ))]
3
+
4
+ [project]
5
+ authors = [{name = $"$(author), email = $"$(author_email)}]
6
+ dependencies = [
7
+ $join$map($(install_requires) $.( $"$(),
8
+ ))]
9
+ description = $"$(description)
10
+ name = $"$(name)
11
+ readme = "README.md"
12
+ requires-python = ">=3.11"
13
+ version = $"$(version)
14
+
15
+ [project.scripts]
16
+ $join$map($(project_scripts) $.($(command) = $"$(ref)
17
+ ))$(eolhole)
@@ -9,7 +9,6 @@ setup(
9
9
  author = $"$(author),
10
10
  author_email = $"$(author_email),
11
11
  py_modules = [$join($map($(py_modules) $"$()) $.(, ))],
12
- install_requires = [$join($map($(install_requires) $"$()) $.(, ))],
13
12
  package_data = {'': [$join($map($(resource types) $"(*.$())) $.(, ))]},
14
13
  entry_points = {'console_scripts': [$join($map($(console_scripts) $"$()) $.(, ))]},
15
14
  **sourceinfo.setup_kwargs(),
@@ -1 +1,2 @@
1
+ . $./(base.arid)
1
2
  licheck enabled = false
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyven
3
- Version: 119
3
+ Version: 121
4
4
  Summary: Manage development of multiple Python projects
5
5
  Home-page: https://pypi.org/project/pyven/
6
6
  Author: Homsar
7
- Author-email: homsar@foyono.com
7
+ Author-email: Homsar <homsar@foyono.com>
8
+ Requires-Python: >=3.11
8
9
  Description-Content-Type: text/markdown
9
10
  Requires-Dist: aridity>=85
10
11
  Requires-Dist: diapyr>=31
@@ -15,14 +16,9 @@ Requires-Dist: pydoc-markdown>=4.8.2
15
16
  Requires-Dist: roman>=5
16
17
  Requires-Dist: setuptools>=44.1.1
17
18
  Requires-Dist: twine>=1.15.0
18
- Requires-Dist: venvpool>=18
19
+ Requires-Dist: venvpool>=28
19
20
  Dynamic: author
20
- Dynamic: author-email
21
- Dynamic: description
22
- Dynamic: description-content-type
23
21
  Dynamic: home-page
24
- Dynamic: requires-dist
25
- Dynamic: summary
26
22
 
27
23
  # pyven
28
24
  Manage development of multiple Python projects.
@@ -1,8 +1,10 @@
1
1
  README.md
2
+ pyproject.toml
2
3
  setup.py
3
4
  pyven/Dockerfile.aridt
4
5
  pyven/README.md.aridt
5
6
  pyven/__init__.py
7
+ pyven/base.arid
6
8
  pyven/bdist.py
7
9
  pyven/checks.py
8
10
  pyven/container.py
@@ -7,4 +7,4 @@ pydoc-markdown>=4.8.2
7
7
  roman>=5
8
8
  setuptools>=44.1.1
9
9
  twine>=1.15.0
10
- venvpool>=18
10
+ venvpool>=28
@@ -49,13 +49,12 @@ class SourceInfo:
49
49
  sourceinfo = SourceInfo('.')
50
50
  setup(
51
51
  name = 'pyven',
52
- version = '119',
52
+ version = '121',
53
53
  description = 'Manage development of multiple Python projects',
54
54
  url = 'https://pypi.org/project/pyven/',
55
55
  author = 'Homsar',
56
56
  author_email = 'homsar@foyono.com',
57
57
  py_modules = [],
58
- install_requires = ['aridity>=85', 'diapyr>=31', 'foyndation>=18', 'lagoon>=64', 'packaging>=25', 'pydoc-markdown>=4.8.2', 'roman>=5', 'setuptools>=44.1.1', 'twine>=1.15.0', 'venvpool>=18'],
59
58
  package_data = {'': ['*.pxd', '*.pyx', '*.pyxbld', '*.arid', '*.aridt']},
60
59
  entry_points = {'console_scripts': ['minreqs=pyven.minreqs:main', 'pipify=pyven.pipify:main', 'release=pyven.release:main', 'tasks=pyven.tasks:main', 'tryinstall=pyven.tryinstall:main', 'tests=pyven.tests.__init__:main']},
61
60
  **sourceinfo.setup_kwargs(),
@@ -1,2 +0,0 @@
1
- [build-system]
2
- requires = [$join($map($(build_requires) it $"$(it)) $.(, ))]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes