pyven 89__tar.gz → 91__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.
- {pyven-89/pyven.egg-info → pyven-91}/PKG-INFO +1 -1
- {pyven-89 → pyven-91}/pyven/checks.py +3 -3
- {pyven-89 → pyven-91}/pyven/pipify.py +21 -5
- {pyven-89 → pyven-91}/pyven/projectinfo.arid +1 -0
- {pyven-89 → pyven-91}/pyven/projectinfo.py +39 -12
- {pyven-89 → pyven-91}/pyven/release.py +3 -3
- {pyven-89 → pyven-91}/pyven/sourceinfo.py +1 -1
- {pyven-89 → pyven-91/pyven.egg-info}/PKG-INFO +1 -1
- {pyven-89 → pyven-91}/pyven.egg-info/requires.txt +1 -1
- {pyven-89 → pyven-91}/setup.py +3 -3
- {pyven-89 → pyven-91}/COPYING +0 -0
- {pyven-89 → pyven-91}/README.md +0 -0
- {pyven-89 → pyven-91}/foreignsyms +0 -0
- {pyven-89 → pyven-91}/pyven/README.md.aridt +0 -0
- {pyven-89 → pyven-91}/pyven/__init__.py +0 -0
- {pyven-89 → pyven-91}/pyven/bdist.py +0 -0
- {pyven-89 → pyven-91}/pyven/cythonize.py +0 -0
- {pyven-89 → pyven-91}/pyven/divcheck.py +0 -0
- {pyven-89 → pyven-91}/pyven/drmake.py +0 -0
- {pyven-89 → pyven-91}/pyven/execcheck.py +0 -0
- {pyven-89 → pyven-91}/pyven/files.py +0 -0
- {pyven-89 → pyven-91}/pyven/gclean.py +0 -0
- {pyven-89 → pyven-91}/pyven/launch.py +0 -0
- {pyven-89 → pyven-91}/pyven/licheck.py +0 -0
- {pyven-89 → pyven-91}/pyven/mainmodules.py +0 -0
- {pyven-89 → pyven-91}/pyven/minreqs.py +0 -0
- {pyven-89 → pyven-91}/pyven/nlcheck.py +0 -0
- {pyven-89 → pyven-91}/pyven/patchpolicy.py +0 -0
- {pyven-89 → pyven-91}/pyven/pyproject.toml.aridt +0 -0
- {pyven-89 → pyven-91}/pyven/release.arid +0 -0
- {pyven-89 → pyven-91}/pyven/setup.cfg.aridt +0 -0
- {pyven-89 → pyven-91}/pyven/setup.py.aridt +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/Cython/Build.py +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/Cython/__init__.py +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/__init__.py +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/ez_setup.py +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/fakesetup.py +0 -0
- {pyven-89 → pyven-91}/pyven/setuproot/setuptools.arid +0 -0
- {pyven-89 → pyven-91}/pyven/tasks.py +0 -0
- {pyven-89 → pyven-91}/pyven/tests/__init__.py +0 -0
- {pyven-89 → pyven-91}/pyven/tryinstall.py +0 -0
- {pyven-89 → pyven-91}/pyven/util.py +0 -0
- {pyven-89 → pyven-91}/pyven.egg-info/SOURCES.txt +0 -0
- {pyven-89 → pyven-91}/pyven.egg-info/dependency_links.txt +0 -0
- {pyven-89 → pyven-91}/pyven.egg-info/entry_points.txt +0 -0
- {pyven-89 → pyven-91}/pyven.egg-info/top_level.txt +0 -0
- {pyven-89 → pyven-91}/setup.cfg +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
from .files import Files
|
|
19
19
|
from .pipify import InstallDeps
|
|
20
|
-
from .projectinfo import ProjectInfo
|
|
20
|
+
from .projectinfo import ProjectInfo, SimpleInstallDeps
|
|
21
21
|
from .util import bgcontainer, Excludes, pyversiontags, stderr
|
|
22
22
|
from argparse import ArgumentParser
|
|
23
23
|
from aridity.config import ConfigCtrl
|
|
@@ -27,7 +27,7 @@ from itertools import chain
|
|
|
27
27
|
from lagoon import diff
|
|
28
28
|
from setuptools import find_packages
|
|
29
29
|
from tempfile import NamedTemporaryFile
|
|
30
|
-
from venvpool import initlogging, Pool
|
|
30
|
+
from venvpool import initlogging, Pool
|
|
31
31
|
import logging, os, shutil, subprocess, sys
|
|
32
32
|
|
|
33
33
|
log = logging.getLogger(__name__)
|
|
@@ -106,7 +106,7 @@ class EveryVersion:
|
|
|
106
106
|
def nose(self):
|
|
107
107
|
upstream_devel_packages = list(self.info.config.upstream.devel.packages)
|
|
108
108
|
with InstallDeps(self.info, self.siblings, _localrepo() if self.userepo else None) as installdeps:
|
|
109
|
-
installdeps.add('nose-cov')
|
|
109
|
+
installdeps.add('nose-cov', *self.info.config.test.requires)
|
|
110
110
|
for pyversion in self.info.config.pyversions:
|
|
111
111
|
reportsdir = os.path.join(self.info.projectdir, 'var', str(pyversion))
|
|
112
112
|
os.makedirs(reportsdir, exist_ok = True)
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
# along with pyven. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
'Generate setuptools files for a project.arid project.'
|
|
19
|
-
from .projectinfo import ProjectInfo, Req
|
|
19
|
+
from .projectinfo import ProjectInfo, Req, SimpleInstallDeps
|
|
20
20
|
from .sourceinfo import SourceInfo
|
|
21
21
|
from argparse import ArgumentParser
|
|
22
22
|
from pkg_resources import resource_filename
|
|
23
23
|
from tempfile import mkdtemp
|
|
24
|
-
from venvpool import initlogging, Pool
|
|
24
|
+
from venvpool import initlogging, Pool
|
|
25
25
|
import logging, os, shutil, subprocess, sys
|
|
26
26
|
|
|
27
27
|
log = logging.getLogger(__name__)
|
|
@@ -92,8 +92,24 @@ def setupcommand(info, pyversion, transient, *command):
|
|
|
92
92
|
with Pool(pyversion).readonlyortransient[transient](SimpleInstallDeps(buildreqs)) as venv:
|
|
93
93
|
setup(venv.programpath('python'))
|
|
94
94
|
|
|
95
|
+
class VolatileReq:
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def namepart(self):
|
|
99
|
+
return self.info.config.name
|
|
100
|
+
|
|
101
|
+
def __init__(self, info):
|
|
102
|
+
self.info = info
|
|
103
|
+
|
|
104
|
+
def acceptversion(self, versionstr):
|
|
105
|
+
return self.info.devversion() == versionstr
|
|
106
|
+
|
|
95
107
|
class InstallDeps:
|
|
96
108
|
|
|
109
|
+
@property
|
|
110
|
+
def pypireqs(self):
|
|
111
|
+
return [VolatileReq(i) for i in self.volatileprojects] + self.fetchreqs
|
|
112
|
+
|
|
97
113
|
def __init__(self, info, siblings, localrepo):
|
|
98
114
|
self.info = info
|
|
99
115
|
self.siblings = siblings
|
|
@@ -139,14 +155,14 @@ class InstallDeps:
|
|
|
139
155
|
pipify(i)
|
|
140
156
|
self.localreqs = [i.projectdir for i in editableprojects.values()]
|
|
141
157
|
self.volatileprojects = volatileprojects.values()
|
|
142
|
-
self.
|
|
158
|
+
self.fetchreqs = list(Req.published(pypireqs))
|
|
143
159
|
return self
|
|
144
160
|
|
|
145
161
|
def add(self, *requires):
|
|
146
|
-
self.
|
|
162
|
+
self.fetchreqs.extend(Req.parselines(requires))
|
|
147
163
|
|
|
148
164
|
def invoke(self, venv):
|
|
149
|
-
venv.install([i.projectdir for i in self.volatileprojects] + [r.reqstr for r in self.
|
|
165
|
+
venv.install([i.projectdir for i in self.volatileprojects] + [r.reqstr for r in self.fetchreqs])
|
|
150
166
|
|
|
151
167
|
def __exit__(self, *exc_info):
|
|
152
168
|
shutil.rmtree(self.workspace)
|
|
@@ -22,8 +22,9 @@ from .util import Path
|
|
|
22
22
|
from aridity.config import ConfigCtrl
|
|
23
23
|
from aridity.util import openresource
|
|
24
24
|
from inspect import getsource
|
|
25
|
+
from pkg_resources import parse_requirements
|
|
25
26
|
from pkg_resources.extern.packaging.markers import UndefinedEnvironmentName
|
|
26
|
-
from venvpool import
|
|
27
|
+
from venvpool import executablebits, ParsedRequires, TemporaryDirectory
|
|
27
28
|
import logging, os, re, subprocess, venvpool
|
|
28
29
|
|
|
29
30
|
log = logging.getLogger(__name__)
|
|
@@ -41,19 +42,13 @@ def textcontent(node):
|
|
|
41
42
|
yield value
|
|
42
43
|
return ''.join(iterparts(node))
|
|
43
44
|
|
|
44
|
-
class Req
|
|
45
|
+
class Req:
|
|
45
46
|
|
|
46
47
|
namematch = re.compile(r'\S+').search
|
|
47
48
|
|
|
48
|
-
@
|
|
49
|
-
def
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
def siblingpath(self, workspace):
|
|
53
|
-
return os.path.join(workspace, self.namepart)
|
|
54
|
-
|
|
55
|
-
def isproject(self, info):
|
|
56
|
-
return os.path.exists(self.siblingpath(info.contextworkspace()))
|
|
49
|
+
@classmethod
|
|
50
|
+
def parselines(cls, lines):
|
|
51
|
+
return [cls(parsed) for parsed in parse_requirements(lines)]
|
|
57
52
|
|
|
58
53
|
@classmethod
|
|
59
54
|
def published(cls, reqstrs):
|
|
@@ -72,6 +67,34 @@ class Req(BaseReq):
|
|
|
72
67
|
raise
|
|
73
68
|
log.warning("Never published: %s", r.namepart)
|
|
74
69
|
|
|
70
|
+
@property
|
|
71
|
+
def namepart(self):
|
|
72
|
+
return self.parsed.name
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def extras(self):
|
|
76
|
+
return self.parsed.extras
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def reqstr(self):
|
|
80
|
+
return str(self.parsed)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def specifierset(self):
|
|
84
|
+
return self.parsed.specifier
|
|
85
|
+
|
|
86
|
+
def __init__(self, parsed):
|
|
87
|
+
self.parsed = parsed
|
|
88
|
+
|
|
89
|
+
def acceptversion(self, versionstr):
|
|
90
|
+
return versionstr in self.parsed
|
|
91
|
+
|
|
92
|
+
def siblingpath(self, workspace):
|
|
93
|
+
return os.path.join(workspace, self.namepart)
|
|
94
|
+
|
|
95
|
+
def isproject(self, info):
|
|
96
|
+
return os.path.exists(self.siblingpath(info.contextworkspace()))
|
|
97
|
+
|
|
75
98
|
def minstr(self):
|
|
76
99
|
version, = (s.version for s in self.specifierset if s.operator in {'>=', '=='})
|
|
77
100
|
return "%s==%s" % (self.namepart, version)
|
|
@@ -89,6 +112,10 @@ class Req(BaseReq):
|
|
|
89
112
|
s, = self.specifierset
|
|
90
113
|
return self.parsed.key, s.version
|
|
91
114
|
|
|
115
|
+
class SimpleInstallDeps(ParsedRequires):
|
|
116
|
+
|
|
117
|
+
parselines = staticmethod(Req.parselines)
|
|
118
|
+
|
|
92
119
|
class ProjectInfo:
|
|
93
120
|
|
|
94
121
|
projectaridname = 'project.arid'
|
|
@@ -151,7 +178,7 @@ class ProjectInfo:
|
|
|
151
178
|
if 404 != e.code:
|
|
152
179
|
raise
|
|
153
180
|
last = 0
|
|
154
|
-
return str(last + 1)
|
|
181
|
+
return str(max(10, last + 1))
|
|
155
182
|
|
|
156
183
|
def descriptionandurl(self):
|
|
157
184
|
import urllib.error, urllib.request, json, time
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
from . import targetremote
|
|
20
20
|
from .checks import EveryVersion
|
|
21
21
|
from .pipify import allbuildrequires, InstallDeps, pipify
|
|
22
|
-
from .projectinfo import ProjectInfo
|
|
22
|
+
from .projectinfo import ProjectInfo, SimpleInstallDeps
|
|
23
23
|
from .sourceinfo import SourceInfo
|
|
24
24
|
from .util import bgcontainer
|
|
25
25
|
from argparse import ArgumentParser
|
|
@@ -30,7 +30,7 @@ from lagoon.program import partial, Program
|
|
|
30
30
|
from pkg_resources import resource_filename
|
|
31
31
|
from subprocess import CalledProcessError
|
|
32
32
|
from tempfile import NamedTemporaryFile
|
|
33
|
-
from venvpool import dotpy, initlogging, Pip, Pool,
|
|
33
|
+
from venvpool import dotpy, initlogging, Pip, Pool, TemporaryDirectory
|
|
34
34
|
import lagoon, logging, os, re, shutil, sys, sysconfig
|
|
35
35
|
|
|
36
36
|
log = logging.getLogger(__name__)
|
|
@@ -134,7 +134,7 @@ def _warmups(info):
|
|
|
134
134
|
with NamedTemporaryFile('w', suffix = dotpy, dir = info.projectdir) as script:
|
|
135
135
|
script.write("from %s import %s\n%s()" % (m, f.split('.')[0], f))
|
|
136
136
|
script.flush()
|
|
137
|
-
venv.run('check_call', installdeps.localreqs, os.path.basename(script.name)[:-len(dotpy)], [], cwd = info.projectdir)
|
|
137
|
+
venv.run('check_call', ['.'] + installdeps.localreqs, os.path.basename(script.name)[:-len(dotpy)], [], cwd = info.projectdir)
|
|
138
138
|
|
|
139
139
|
def _runsetup(info, commands):
|
|
140
140
|
with Pool(next(iter(info.config.pyversions))).readonly(SimpleInstallDeps(allbuildrequires(info))) as venv:
|
{pyven-89 → pyven-91}/setup.py
RENAMED
|
@@ -50,7 +50,7 @@ class SourceInfo:
|
|
|
50
50
|
|
|
51
51
|
def buildrequires(self):
|
|
52
52
|
if self.path.endswith('.pyx'):
|
|
53
|
-
yield 'Cython'
|
|
53
|
+
yield 'Cython<3'
|
|
54
54
|
|
|
55
55
|
def make_ext(self):
|
|
56
56
|
g = {}
|
|
@@ -136,7 +136,7 @@ def ext_modules():
|
|
|
136
136
|
sourceinfo = SourceInfo('.')
|
|
137
137
|
setuptools.setup(
|
|
138
138
|
name = 'pyven',
|
|
139
|
-
version = '
|
|
139
|
+
version = '91',
|
|
140
140
|
description = 'Manage development of multiple Python projects',
|
|
141
141
|
long_description = long_description(),
|
|
142
142
|
long_description_content_type = 'text/markdown',
|
|
@@ -144,7 +144,7 @@ setuptools.setup(
|
|
|
144
144
|
author = 'Andrzej Cichocki',
|
|
145
145
|
packages = sourceinfo.packages,
|
|
146
146
|
py_modules = [],
|
|
147
|
-
install_requires = ['aridity>=62', 'diapyr>=18', 'lagoon>=24', 'setuptools>=44.1.1', 'twine>=1.15.0', 'venvpool>=
|
|
147
|
+
install_requires = ['aridity>=62', 'diapyr>=18', 'lagoon>=24', 'setuptools>=44.1.1', 'twine>=1.15.0', 'venvpool>=10'],
|
|
148
148
|
package_data = {'': ['*.pxd', '*.pyx', '*.pyxbld', '*.arid', '*.aridt']},
|
|
149
149
|
scripts = ['foreignsyms'],
|
|
150
150
|
entry_points = {'console_scripts': ['drmake=pyven.drmake:main', 'gclean=pyven.gclean:main', 'launch=pyven.launch:main', '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']},
|
{pyven-89 → pyven-91}/COPYING
RENAMED
|
File without changes
|
{pyven-89 → pyven-91}/README.md
RENAMED
|
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
|
|
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
|
{pyven-89 → pyven-91}/setup.cfg
RENAMED
|
File without changes
|