Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
39a37c07
Commit
39a37c07
authored
May 16, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable test on Python 2.
parent
55456fe3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
changelog.d/1753.change.rst
changelog.d/1753.change.rst
+2
-2
setuptools/tests/test_config.py
setuptools/tests/test_config.py
+5
-0
No files found.
changelog.d/1753.change.rst
View file @
39a37c07
``attr:`` now extracts variables through rudimentary examination of the AST,
thereby supporting modules with third-party imports.
If examining the AST
thereby supporting modules with third-party imports. If examining the AST
fails to find the variable, ``attr:`` falls back to the old behavior of
importing the module.
importing the module.
Works on Python 3 only.
setuptools/tests/test_config.py
View file @
39a37c07
...
...
@@ -10,6 +10,7 @@ from mock import patch
from
setuptools.dist
import
Distribution
,
_Distribution
from
setuptools.config
import
ConfigHandler
,
read_configuration
from
setuptools.extern.six.moves
import
configparser
from
setuptools.extern
import
six
from
.
import
py2_only
,
py3_only
from
.textwrap
import
DALS
...
...
@@ -310,6 +311,10 @@ class TestMetadata:
with
get_dist
(
tmpdir
)
as
dist
:
assert
dist
.
metadata
.
version
==
'2016.11.26'
if
six
.
PY2
:
# static version loading is unsupported on Python 2
return
config
.
write
(
'[metadata]
\
n
'
'version = attr: fake_package.subpkg_b.mod.VERSION
\
n
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment