pyven 116__tar.gz → 118__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 (39) hide show
  1. {pyven-116 → pyven-118}/PKG-INFO +13 -5
  2. {pyven-116 → pyven-118}/pyven/Dockerfile.aridt +2 -1
  3. {pyven-116 → pyven-118}/pyven/checks.py +17 -11
  4. {pyven-116 → pyven-118}/pyven/container.py +4 -3
  5. pyven-118/pyven/execcheck.py +23 -0
  6. {pyven-116 → pyven-118}/pyven/files.py +4 -4
  7. {pyven-116 → pyven-118}/pyven/pipify.py +11 -12
  8. {pyven-116 → pyven-118}/pyven/projectinfo.arid +1 -1
  9. {pyven-116 → pyven-118}/pyven/projectinfo.py +4 -8
  10. {pyven-116 → pyven-118}/pyven/release.py +10 -10
  11. {pyven-116 → pyven-118}/pyven/tryinstall.py +0 -2
  12. {pyven-116 → pyven-118}/pyven.egg-info/PKG-INFO +13 -5
  13. {pyven-116 → pyven-118}/pyven.egg-info/requires.txt +4 -3
  14. {pyven-116 → pyven-118}/setup.py +2 -2
  15. pyven-116/pyven/execcheck.py +0 -21
  16. {pyven-116 → pyven-118}/README.md +0 -0
  17. {pyven-116 → pyven-118}/pyven/README.md.aridt +0 -0
  18. {pyven-116 → pyven-118}/pyven/__init__.py +0 -0
  19. {pyven-116 → pyven-118}/pyven/bdist.py +0 -0
  20. {pyven-116 → pyven-118}/pyven/functions.py +0 -0
  21. {pyven-116 → pyven-118}/pyven/licheck.py +0 -0
  22. {pyven-116 → pyven-118}/pyven/mainmodules.py +0 -0
  23. {pyven-116 → pyven-118}/pyven/metacheck.py +0 -0
  24. {pyven-116 → pyven-118}/pyven/minreqs.py +0 -0
  25. {pyven-116 → pyven-118}/pyven/nlcheck.py +0 -0
  26. {pyven-116 → pyven-118}/pyven/patchpolicy.py +0 -0
  27. {pyven-116 → pyven-118}/pyven/pyproject.toml.aridt +0 -0
  28. {pyven-116 → pyven-118}/pyven/release.arid +0 -0
  29. {pyven-116 → pyven-118}/pyven/setup.py.aridt +0 -0
  30. {pyven-116 → pyven-118}/pyven/setuptools.arid +0 -0
  31. {pyven-116 → pyven-118}/pyven/sourceinfo.py +0 -0
  32. {pyven-116 → pyven-118}/pyven/tasks.py +0 -0
  33. {pyven-116 → pyven-118}/pyven/tests/__init__.py +0 -0
  34. {pyven-116 → pyven-118}/pyven/util.py +0 -0
  35. {pyven-116 → pyven-118}/pyven.egg-info/SOURCES.txt +0 -0
  36. {pyven-116 → pyven-118}/pyven.egg-info/dependency_links.txt +0 -0
  37. {pyven-116 → pyven-118}/pyven.egg-info/entry_points.txt +0 -0
  38. {pyven-116 → pyven-118}/pyven.egg-info/top_level.txt +0 -0
  39. {pyven-116 → pyven-118}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pyven
3
- Version: 116
3
+ Version: 118
4
4
  Summary: Manage development of multiple Python projects
5
5
  Home-page: https://pypi.org/project/pyven/
6
6
  Author: Homsar
@@ -8,13 +8,21 @@ Author-email: homsar@foyono.com
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: aridity>=85
10
10
  Requires-Dist: diapyr>=31
11
- Requires-Dist: foyndation>=10
12
- Requires-Dist: lagoon>=49
13
- Requires-Dist: pydoc-markdown>=3.3
11
+ Requires-Dist: foyndation>=16
12
+ Requires-Dist: lagoon>=63
13
+ Requires-Dist: packaging>=25
14
+ Requires-Dist: pydoc-markdown>=4.8.2
14
15
  Requires-Dist: roman>=5
15
16
  Requires-Dist: setuptools>=44.1.1
16
17
  Requires-Dist: twine>=1.15.0
17
18
  Requires-Dist: venvpool>=18
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: requires-dist
25
+ Dynamic: summary
18
26
 
19
27
  # pyven
20
28
  Manage development of multiple Python projects.
@@ -1,5 +1,6 @@
1
1
  FROM python:$(pyversiontag)
2
- RUN $'[mkdir -pv /etc/apt/keyrings && \
2
+ RUN $'[pip install uv && \
3
+ mkdir -pv /etc/apt/keyrings && \
3
4
  curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
4
5
  echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list && \
5
6
  apt-get update && \
@@ -13,6 +13,7 @@ from itertools import chain
13
13
  from lagoon.text import diff, pydoc_markdown, tidy
14
14
  from lagoon.url import URL
15
15
  from pathlib import Path
16
+ from pstats import SortKey, Stats
16
17
  from setuptools import find_packages
17
18
  from shutil import copy2, copytree, ignore_patterns
18
19
  from subprocess import DEVNULL
@@ -47,7 +48,7 @@ def _runcheck(variant, check, *args):
47
48
 
48
49
  class EveryVersion:
49
50
 
50
- def __init__(self, info, siblings, userepo, noseargs, docker, transient):
51
+ def __init__(self, info, siblings, userepo, noseargs, docker, transient, testregex):
51
52
  self.files = Files(info.projectdir)
52
53
  self.info = info
53
54
  self.siblings = siblings
@@ -55,6 +56,7 @@ class EveryVersion:
55
56
  self.noseargs = noseargs
56
57
  self.docker = docker
57
58
  self.transient = transient
59
+ self.testmatch = re.compile(f"(?:{testregex})_").match
58
60
 
59
61
  def allchecks(self, exclude = ()):
60
62
  for check in self.licheck, self.nlcheck, self.execcheck, self.metacheck, self.pyflakes, self.nose, self.readme, self.github, self.linktree, self.wiki:
@@ -93,7 +95,7 @@ class EveryVersion:
93
95
  venv.run('check_call', [], 'pyflakes', paths)
94
96
  _runcheck(3, pyflakes)
95
97
 
96
- basenoseargs = '--capture-output', '--exe', '-v', '--with-doctest', '--doctest-extension', '.mediawiki', '--with-cov', '--cov-report', 'term-missing', '--with-xunit'
98
+ basenoseargs = '--capture-output', '--exe', '-v', '--with-doctest', '--doctest-extension', '.mediawiki', '--with-cov', '--cov-report', 'term-missing', '--with-xunit', '--with-cprofile', '--cprofile-stats-erase'
97
99
 
98
100
  def _spokeurl(self):
99
101
  try:
@@ -109,7 +111,7 @@ class EveryVersion:
109
111
  with doctestpath.open('w') as f:
110
112
  if url is not None:
111
113
  try:
112
- result = tidy._asxml(check = False, input = url.w(f"Category:Doctest/{self.info.config.name}"), stderr = DEVNULL)
114
+ result = tidy._asxml[::DEVNULL](check = False, input = url.w(f"Category:Doctest/{self.info.config.name}"))
113
115
  except HTTPError as e:
114
116
  if e.code != HTTPStatus.NOT_FOUND:
115
117
  raise
@@ -121,11 +123,12 @@ class EveryVersion:
121
123
  upstream_devel_packages = list(self.info.config.upstream.devel.packages)
122
124
  upstream_devel_scripts = list(self.info.config.upstream.devel.scripts) if self.userepo else []
123
125
  # TODO: Facility to freeze test requirements graph.
124
- with InstallDeps(self.info, ('nose-cov', 'pynose', *self.info.config.test.requires), self.siblings, _localrepo(), self.userepo) as installdeps:
126
+ with InstallDeps(self.info, (('nose-cprof', 'nose-cov'), ('pynose', *self.info.config.test.requires)), self.siblings, _localrepo(), self.userepo) as installdeps:
125
127
  reportsdir = self.info.projectdir / 'var' / '3'
126
128
  reportsdir.mkdir(exist_ok = True, parents = True)
127
129
  xmlpath = reportsdir / 'nosetests.xml'
128
- testpaths = self.files.testpaths([doctestpath], xmlpath)
130
+ statspath = reportsdir / 'stats.dat'
131
+ testpaths = self.files.testpaths(self.testmatch, [doctestpath], xmlpath)
129
132
  if self.docker:
130
133
  coveragepath = self.info.projectdir / '.coverage'
131
134
  with bgcontainer('-v', "{0}:{0}".format('/var/run/docker.sock'), '--network', 'host', '-v', f"{os.path.abspath(self.info.projectdir)}:{Container.workdir}", pyimage(self.info.pyversiontags[0], upstream_devel_packages, upstream_devel_scripts, *installdeps.corereqslayers())) as container:
@@ -133,19 +136,21 @@ class EveryVersion:
133
136
  container.installasuser(installdeps.containerrequires())
134
137
  cpath = lambda p: os.path.relpath(p, self.info.projectdir).replace(os.sep, '/')
135
138
  status = container.inworkdir.nosetests[print](
136
- *self.basenoseargs, '--xunit-file', cpath(xmlpath),
137
- *sum((['--cov', p] for p in chain(find_packages(self.info.projectdir), self.info.py_modules())), []), *map(cpath, testpaths), *self.noseargs,
139
+ *self.basenoseargs, '--xunit-file', cpath(xmlpath), '--cprofile-stats-file', cpath(statspath),
140
+ *chain.from_iterable(['--cov', p] for p in chain(find_packages(self.info.projectdir), self.info.py_modules())), *map(cpath, testpaths), *self.noseargs,
138
141
  check = False)
139
142
  else:
140
143
  coveragepath = Path('.coverage')
141
144
  with Pool().readonlyortransient[self.transient](installdeps) as venv:
142
145
  status = venv.run('call', installdeps.localreqs, 'nose', [
143
- *self.basenoseargs, '--xunit-file', xmlpath,
144
- *sum((['--cov', p] for p in chain(find_packages(self.info.projectdir), self.info.py_modules())), []), *map(str, testpaths), *self.noseargs,
146
+ *self.basenoseargs, '--xunit-file', xmlpath, '--cprofile-stats-file', statspath,
147
+ *chain.from_iterable(['--cov', p] for p in chain(find_packages(self.info.projectdir), self.info.py_modules())), *map(str, testpaths), *self.noseargs,
145
148
  ])
146
149
  if coveragepath.exists():
147
150
  copy2(coveragepath, reportsdir / 'coverage') # Replace whatever the status, as if we configured the location.
148
151
  coveragepath.unlink() # Can't simply use rename cross-device in release case.
152
+ if not status:
153
+ Stats(str(statspath)).sort_stats(SortKey.CUMULATIVE).print_stats(50)
149
154
  assert not status
150
155
 
151
156
  def readme(self):
@@ -156,7 +161,7 @@ class EveryVersion:
156
161
  def getpydoc(mainmodules):
157
162
  with TemporaryDirectory() as pydocparent:
158
163
  pydocdir = os.path.join(pydocparent, 'project')
159
- copytree(self.info.projectdir, pydocdir, ignore = ignore_patterns('test_*'))
164
+ copytree(self.info.projectdir, pydocdir, ignore = ignore_patterns('test_*', 'stress_*'))
160
165
  internal = {(os.path.dirname(mm.relpath) if '__init__.py' == os.path.basename(mm.relpath) else mm.relpath[:-len(dotpy)]).replace(os.sep, '.') for mm in mainmodules}
161
166
  internal.update(self.info.config.internal_module)
162
167
  modules = []
@@ -231,6 +236,7 @@ def main():
231
236
  parser.add_argument('--docker', action = 'store_true')
232
237
  parser.add_argument('--repo', type = yesno, default = True)
233
238
  parser.add_argument('--siblings', type = yesno, default = True)
239
+ parser.add_argument('--test', default = 'test|stress')
234
240
  parser.add_argument('--transient', action = 'store_true')
235
241
  args, noseargs = parser.parse_known_args()
236
- EveryVersion(ProjectInfo.seekany('.'), args.siblings, args.repo, noseargs, args.docker, args.transient).allchecks()
242
+ EveryVersion(ProjectInfo.seekany('.'), args.siblings, args.repo, noseargs, args.docker, args.transient, args.test).allchecks()
@@ -25,8 +25,9 @@ def pyimage(pyversiontag, packages, scripts, *requireslayers):
25
25
  cc.w.docker_gid = Path('/var/run/docker.sock').stat().st_gid
26
26
  for p in packages:
27
27
  cc.w.package += p
28
+ cc.w.pipinstallsh += 'sudo -u pyvenuser uv --directory ~pyvenuser venv'
28
29
  for requires in requireslayers:
29
- cc.w.pipinstallsh += f"sudo -u pyvenuser pip install --user --no-warn-script-location {' '.join(map(shlex.quote, requires))}"
30
+ cc.w.pipinstallsh += f"sudo -u pyvenuser uv --directory ~pyvenuser pip install {' '.join(map(shlex.quote, requires))}"
30
31
  cc.w.pyven_gid = os.getegid()
31
32
  cc.w.pyven_uid = os.geteuid()
32
33
  cc.w.pyversiontag = pyversiontag
@@ -44,12 +45,12 @@ class Container:
44
45
  workdir = '/io'
45
46
 
46
47
  def __init__(self, cid):
47
- self.inworkdir = docker.exec[partial]('-w', self.workdir, cid).sudo._u.pyvenuser[partial]('PATH=/home/pyvenuser/.local/bin:/usr/local/bin:/usr/bin:/bin').env
48
+ self.inworkdir = docker.exec[partial]('-w', self.workdir, cid).sudo._u.pyvenuser[partial]('PATH=/home/pyvenuser/.venv/bin:/usr/local/bin:/usr/bin:/bin').env
48
49
  self.cid = cid
49
50
 
50
51
  def installasuser(self, requires):
51
52
  if requires:
52
- docker.exec[print](self.cid, 'sudo', '-u', 'pyvenuser', 'pip', 'install', '--user', '--no-warn-script-location', *requires)
53
+ docker.exec[print](self.cid, 'sh', '-c', f"sudo -u pyvenuser uv --directory ~pyvenuser pip install {' '.join(map(shlex.quote, requires))}")
53
54
 
54
55
  def cp(self, src, dest):
55
56
  docker.cp[print](src, f"{self.cid}:{dest}")
@@ -0,0 +1,23 @@
1
+ import os
2
+
3
+ execmask = 0x49
4
+ magic = '#!'
5
+
6
+ def execcheck(paths):
7
+ for path in paths:
8
+ basename = os.path.basename(path)
9
+ executable = bool(os.stat(path).st_mode & execmask)
10
+ with open(path) as f:
11
+ hasmagic = f.readline().startswith(magic)
12
+ for prefix in 'test', 'stress':
13
+ if basename.lower().startswith(prefix):
14
+ if not basename.startswith(f"{prefix}_"):
15
+ raise Exception(f"Inconsistent name: {path}") # Note pyflakes already checks for duplicate method names.
16
+ if executable:
17
+ raise Exception(f"Should not be executable: {path}")
18
+ if hasmagic:
19
+ raise Exception(f"Using {magic} is obsolete: {path}")
20
+ break
21
+ else:
22
+ if executable != hasmagic:
23
+ raise Exception(path)
@@ -1,5 +1,5 @@
1
1
  from collections import defaultdict
2
- from foyndation import dotpy
2
+ from foyndation import dotpy, inf
3
3
  from lagoon.program import partial
4
4
  from lagoon.text import git
5
5
  from pathlib import Path
@@ -32,8 +32,8 @@ class Files:
32
32
  self.pypaths = [p for p in self.allsrcpaths if p.name.endswith('.py')]
33
33
  self.root = root
34
34
 
35
- def testpaths(self, docpaths, reportpath):
36
- paths = [p for p in self.pypaths if os.path.basename(p).startswith('test_')] + docpaths
35
+ def testpaths(self, testmatch, docpaths, reportpath):
36
+ paths = [p for p in self.pypaths if testmatch(p.name) is not None] + docpaths
37
37
  if reportpath.exists():
38
38
  with reportpath.open() as f:
39
39
  doc = dom.parse(f)
@@ -49,5 +49,5 @@ class Files:
49
49
  if name in nametopath:
50
50
  pathtotime[nametopath[name]] += float(e.getAttribute('time'))
51
51
  break
52
- paths.sort(key = lambda p: pathtotime.get(p, float('inf')))
52
+ paths.sort(key = lambda p: pathtotime.get(p, inf))
53
53
  return paths
@@ -5,18 +5,18 @@ from aridity.config import ConfigCtrl
5
5
  from diapyr.util import bfs
6
6
  from email.parser import Parser
7
7
  from foyndation import initlogging, solo
8
+ from importlib.resources import as_file, files
8
9
  from itertools import chain
9
10
  from lagoon.program import Program
10
11
  from lagoon.text import git
11
12
  from pathlib import Path
12
- from pkg_resources import resource_filename
13
13
  from shutil import copytree, rmtree
14
14
  from tempfile import mkdtemp
15
15
  from venvpool import Pool
16
16
  import logging, os
17
17
 
18
18
  log = logging.getLogger(__name__)
19
- setuptoolsreq = 'setuptools>=69.3,<75.8'
19
+ setuptoolsreq = 'setuptools>=75.8.1,<77'
20
20
 
21
21
  def pipify(info, version):
22
22
  # Allow release of project without origin:
@@ -58,11 +58,10 @@ console_scripts := $list()
58
58
  cc.w.build_requires += name
59
59
  if proc.donekeys != {'setuptools', 'wheel'}:
60
60
  tasks.append(['pyproject.toml', 'pyproject.toml.aridt', 'tomlquote'])
61
- for name, template, quote in tasks:
62
- cc.execute(f'" = $({quote})')
63
- cc.processtemplate(
64
- resource_filename(__name__, template), # TODO LATER: Make aridity get the resource.
65
- os.path.abspath(info.projectdir / name))
61
+ with as_file(files(__spec__.parent)) as parent:
62
+ for name, template, quote in tasks:
63
+ cc.execute(f'" = $({quote})')
64
+ cc.processtemplate(parent / template, (info.projectdir / name).absolute()) # TODO LATER: Make aridity get the resource.
66
65
 
67
66
  def main():
68
67
  initlogging()
@@ -109,9 +108,9 @@ class InstallDeps:
109
108
  def pypireqs(self):
110
109
  return [VolatileReq(i) for i in self.volatileprojects] + self.fetchreqs
111
110
 
112
- def __init__(self, info, morereqs, siblings, localrepo, userepo):
111
+ def __init__(self, info, morelayers, siblings, localrepo, userepo):
113
112
  self.info = info
114
- self.morereqs = morereqs
113
+ self.morelayers = morelayers
115
114
  self.siblings = siblings
116
115
  self.localrepo = localrepo
117
116
  self.userepo = userepo
@@ -122,7 +121,7 @@ class InstallDeps:
122
121
  editableprojects = {}
123
122
  volatileprojects = {}
124
123
  pypireqs = []
125
- @bfs([(self.info, self.morereqs, True)])
124
+ @bfs([(self.info, chain(*self.morelayers), True)])
126
125
  class Proc:
127
126
  def newdepth(self):
128
127
  log.debug("Examine requires of: %s", ', '.join(t[0].config.name for t in self.currentkeys))
@@ -160,13 +159,13 @@ class InstallDeps:
160
159
 
161
160
  def corereqslayers(self): # TODO: Also cache build-specific requirements for subsequent builds of that kind.
162
161
  'PyPI requirements layers for Docker cache, where each is a subset of the next (and a subset of requirements of some build).'
163
- yield self.morereqs
162
+ yield from self.morelayers
164
163
  if git.status.__porcelain(cwd = self.info.projectdir):
165
164
  return
166
165
  (self.workspace / 'releases').mkdir()
167
166
  volatileprojects = {}
168
167
  corereqs = []
169
- @bfs([(self.info, self.morereqs)])
168
+ @bfs([(self.info, chain(*self.morelayers))])
170
169
  class Proc:
171
170
  def newdepth(self):
172
171
  log.debug("Examine requires of: %s", ', '.join(t[0].config.name for t in self.currentkeys))
@@ -1,9 +1,9 @@
1
1
  pyversiontag +=
2
- 3.9
3
2
  3.10
4
3
  3.11
5
4
  3.12
6
5
  3.13
6
+ 3.14
7
7
  fwrap = $pyref(.functions fwrap)
8
8
  neq := $fwrap$pyref(operator ne)
9
9
  requires := $list()
@@ -8,7 +8,7 @@ from importlib.resources import files
8
8
  from inspect import getsource
9
9
  from lagoon.program import Program
10
10
  from lagoon.text import git
11
- from pkg_resources import parse_requirements
11
+ from packaging.requirements import Requirement
12
12
  from roman import fromRoman, toRoman
13
13
  from setuphacks import getsetupkwargs
14
14
  from urllib.error import HTTPError
@@ -29,7 +29,7 @@ class Req:
29
29
 
30
30
  @classmethod
31
31
  def parselines(cls, lines):
32
- return [cls(parsed) for parsed in parse_requirements(lines)]
32
+ return [cls(Requirement(l)) for l in lines]
33
33
 
34
34
  @property
35
35
  def namepart(self):
@@ -51,7 +51,7 @@ class Req:
51
51
  self.parsed = parsed
52
52
 
53
53
  def acceptversion(self, versionstr):
54
- return versionstr in self.parsed
54
+ return versionstr in self.parsed.specifier
55
55
 
56
56
  def siblingpath(self, workspace):
57
57
  return workspace / self.namepart
@@ -75,10 +75,6 @@ class Req:
75
75
  if 'UndefinedEnvironmentName' != type(e).__name__:
76
76
  raise
77
77
 
78
- def keyversion(self):
79
- s, = self.specifierset
80
- return self.parsed.key, s.version
81
-
82
78
  class SimpleInstallDeps(ParsedRequires):
83
79
 
84
80
  parselines = staticmethod(Req.parselines)
@@ -162,7 +158,7 @@ class ProjectInfo:
162
158
  time.sleep(60)
163
159
 
164
160
  def py_modules(self):
165
- return [stem for name in os.listdir(self.projectdir) if (stem := rmsuffix(name, dotpy)) is not None and 'setup.py' != name and not name.startswith('test_')]
161
+ return [stem for name in os.listdir(self.projectdir) if (stem := rmsuffix(name, dotpy)) is not None and 'setup.py' != name and not name.startswith(('test_', 'stress_'))]
166
162
 
167
163
  def mainmodules(self):
168
164
  paths = list(Files.relpaths(self.projectdir, [mainmodules.extension], []))
@@ -7,11 +7,11 @@ from .sourceinfo import SourceInfo
7
7
  from argparse import ArgumentParser
8
8
  from aridity.config import ConfigCtrl
9
9
  from foyndation import dotpy, initlogging, singleton, solo
10
+ from importlib.resources import as_file, files
10
11
  from itertools import chain
11
12
  from lagoon.binary import tidy
12
13
  from lagoon.program import NOEOL, partial, Program
13
14
  from lagoon.text import docker, git
14
- from pkg_resources import resource_filename
15
15
  from shutil import copy2, copytree, rmtree
16
16
  from tempfile import NamedTemporaryFile, TemporaryDirectory
17
17
  from urllib.error import HTTPError
@@ -34,10 +34,10 @@ def _images():
34
34
  )
35
35
  archmatch = re.compile(f"_({'|'.join(map(re.escape, archlookup))})$").search
36
36
  images = {
37
- 'manylinux_2_34_x86_64': '2024-11-23-da4547b',
38
- 'manylinux_2_28_x86_64': '2024-11-30-fa0d298',
39
- 'manylinux2014_x86_64': '2024-11-24-a3012f3',
40
- 'manylinux2014_i686': '2024-11-23-da4547b',
37
+ 'manylinux_2_34_x86_64': '2026.03.14-2',
38
+ 'manylinux_2_28_x86_64': '2026.03.14-2',
39
+ 'manylinux2014_x86_64': '2026.03.14-2',
40
+ 'manylinux2014_i686': '2026.03.14-2',
41
41
  }
42
42
  for plat, imagetag in images.items():
43
43
  yield Image(imagetag, plat, archlookup[archmatch(plat).group(1)])
@@ -61,7 +61,7 @@ class Image:
61
61
  scripts = list(info.config.devel.scripts)
62
62
  packages = list(info.config.devel.packages)
63
63
  # TODO: Copy not mount so we can run containers in parallel.
64
- with bgcontainer('-v', f"{info.projectdir}:/io", f"{self.prefix}{self.plat}:{self.imagetag}") as container:
64
+ with bgcontainer('-v', f"{info.projectdir}:/io", f"{self.prefix}{self.plat}:{self.imagetag}") as container, as_file(files(__spec__.parent)) as parent:
65
65
  def run(execargs, command):
66
66
  docker.exec[print](*execargs, container.cid, *self.arch.entrypoint, *command)
67
67
  if packages:
@@ -71,9 +71,9 @@ class Image:
71
71
  dirpath = docker.exec[NOEOL](container.cid, 'mktemp', '-d') # No need to cleanup, will die with container.
72
72
  log.debug("In container dir %s run script: %s", dirpath, script)
73
73
  run(['-w', dirpath, '-t'], ['sh', '-c', script])
74
- docker.cp[print](resource_filename(__name__, 'patchpolicy.py'), f"{container.cid}:/patchpolicy.py")
74
+ docker.cp[print](parent / 'patchpolicy.py', f"{container.cid}:/patchpolicy.py")
75
75
  run([], [self.pythonexe, '/patchpolicy.py'])
76
- docker.cp[print](resource_filename(__name__, 'bdist.py'), f"{container.cid}:/bdist.py")
76
+ docker.cp[print](parent / 'bdist.py', f"{container.cid}:/bdist.py")
77
77
  run(['-u', f"{os.geteuid()}:{os.getegid()}", '-w', '/io'], [self.pythonexe, '/bdist.py', '--plat', self.plat])
78
78
 
79
79
  def _uploadableartifacts(artifactrelpaths):
@@ -142,11 +142,11 @@ def _release(config, srcgit, versionno, info):
142
142
  copygit.tag[print](releasetag)
143
143
  copygit.push[print](config.golden_remote, 'HEAD', releasetag)
144
144
  pipify(info, str(versionno))
145
- EveryVersion(info, False, False, [], False, True).allchecks(exclude = ['metacheck'])
145
+ EveryVersion(info, False, False, [], False, True, 'test|stress').allchecks(exclude = ['metacheck'])
146
146
  scrub()
147
147
  for dirpath, dirnames, filenames in os.walk(info.projectdir):
148
148
  for name in chain(filenames, dirnames):
149
- if name.startswith('test_'): # TODO LATER: Allow project to add globs to exclude.
149
+ if name.startswith(('test_', 'stress_')): # TODO LATER: Allow project to add globs to exclude.
150
150
  path = os.path.join(dirpath, name)
151
151
  log.debug("Delete: %s", path)
152
152
  (os.remove if name.endswith('.py') else rmtree)(path)
@@ -1,5 +1,4 @@
1
1
  'Check last release can be installed from PyPI and its tests still pass, for use by CI.'
2
- from .checks import EveryVersion
3
2
  from .container import bgcontainer, pyimage
4
3
  from .projectinfo import ProjectInfo, toreleasetag
5
4
  from argparse import ArgumentParser
@@ -29,7 +28,6 @@ def main():
29
28
  with bgcontainer(pyimage(pyversion, upstream_devel_packages, [])) as container:
30
29
  container.installasuser([req])
31
30
  git.checkout[print](toreleasetag(versionno))
32
- EveryVersion(ProjectInfo.seek('.'), False, False, [], True, True).nose()
33
31
 
34
32
  if '__main__' == __name__:
35
33
  main()
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pyven
3
- Version: 116
3
+ Version: 118
4
4
  Summary: Manage development of multiple Python projects
5
5
  Home-page: https://pypi.org/project/pyven/
6
6
  Author: Homsar
@@ -8,13 +8,21 @@ Author-email: homsar@foyono.com
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: aridity>=85
10
10
  Requires-Dist: diapyr>=31
11
- Requires-Dist: foyndation>=10
12
- Requires-Dist: lagoon>=49
13
- Requires-Dist: pydoc-markdown>=3.3
11
+ Requires-Dist: foyndation>=16
12
+ Requires-Dist: lagoon>=63
13
+ Requires-Dist: packaging>=25
14
+ Requires-Dist: pydoc-markdown>=4.8.2
14
15
  Requires-Dist: roman>=5
15
16
  Requires-Dist: setuptools>=44.1.1
16
17
  Requires-Dist: twine>=1.15.0
17
18
  Requires-Dist: venvpool>=18
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: requires-dist
25
+ Dynamic: summary
18
26
 
19
27
  # pyven
20
28
  Manage development of multiple Python projects.
@@ -1,8 +1,9 @@
1
1
  aridity>=85
2
2
  diapyr>=31
3
- foyndation>=10
4
- lagoon>=49
5
- pydoc-markdown>=3.3
3
+ foyndation>=16
4
+ lagoon>=63
5
+ packaging>=25
6
+ pydoc-markdown>=4.8.2
6
7
  roman>=5
7
8
  setuptools>=44.1.1
8
9
  twine>=1.15.0
@@ -49,13 +49,13 @@ class SourceInfo:
49
49
  sourceinfo = SourceInfo('.')
50
50
  setup(
51
51
  name = 'pyven',
52
- version = '116',
52
+ version = '118',
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>=10', 'lagoon>=49', 'pydoc-markdown>=3.3', 'roman>=5', 'setuptools>=44.1.1', 'twine>=1.15.0', 'venvpool>=18'],
58
+ install_requires = ['aridity>=85', 'diapyr>=31', 'foyndation>=16', 'lagoon>=63', 'packaging>=25', 'pydoc-markdown>=4.8.2', 'roman>=5', 'setuptools>=44.1.1', 'twine>=1.15.0', 'venvpool>=18'],
59
59
  package_data = {'': ['*.pxd', '*.pyx', '*.pyxbld', '*.arid', '*.aridt']},
60
60
  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
61
  **sourceinfo.setup_kwargs(),
@@ -1,21 +0,0 @@
1
- import os
2
-
3
- execmask = 0x49
4
- magic = '#!'
5
-
6
- def execcheck(paths):
7
- for path in paths:
8
- basename = os.path.basename(path)
9
- executable = bool(os.stat(path).st_mode & execmask)
10
- with open(path) as f:
11
- hasmagic = f.readline().startswith(magic)
12
- if basename.lower().startswith('test'):
13
- if not basename.startswith('test_'):
14
- raise Exception(f"Inconsistent name: {path}") # Note pyflakes already checks for duplicate method names.
15
- if executable:
16
- raise Exception(f"Should not be executable: {path}")
17
- if hasmagic:
18
- raise Exception(f"Using {magic} is obsolete: {path}")
19
- else:
20
- if executable != hasmagic:
21
- raise Exception(path)
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