Skip to content

Commit

Permalink
feat: add support for non semantic release versions
Browse files Browse the repository at this point in the history
since setuptools>=67 non semantic release versions are not supported anymore.
we tried to fix it in #203 but it only solved part of the problem.

* remove tests for node 12
* add pkg_resources of setuptools==41 (as later versions aren't supported by python2)
* revert #203
  • Loading branch information
admons committed May 4, 2023
1 parent 14fe47b commit 3a140fb
Show file tree
Hide file tree
Showing 19 changed files with 12,417 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ workflows:
- Build
matrix:
parameters:
node_version: ['12','14', '16']
node_version: ['14', '16']
pip_version: ['10.0.0','18.1.0']
python_version: ['2.7','3.6', '3.7', '3.8', '3.9']
filters:
Expand Down
46 changes: 45 additions & 1 deletion lib/dependencies/inspect-implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,57 @@ function createAssets() {
path.join(__dirname, '../../pysrc/pytoml/core.py'),
path.join(__dirname, '../../pysrc/pytoml/parser.py'),
path.join(__dirname, '../../pysrc/pytoml/writer.py'),

path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/version.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/__init__.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/utils.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/requirements.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/_structures.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/markers.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/__about__.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/_compat.py'
),
path.join(
__dirname,
'../../pysrc/pkg_resources/_vendor/packaging/specifiers.py'
),
path.join(__dirname, '../../pysrc/pkg_resources/_vendor/__init__.py'),
path.join(__dirname, '../../pysrc/pkg_resources/_vendor/appdirs.py'),
path.join(__dirname, '../../pysrc/pkg_resources/_vendor/six.py'),
path.join(__dirname, '../../pysrc/pkg_resources/_vendor/pyparsing.py'),
path.join(__dirname, '../../pysrc/pkg_resources/extern/__init__.py'),
path.join(__dirname, '../../pysrc/pkg_resources/py31compat.py'),
path.join(__dirname, '../../pysrc/pkg_resources/__init__.py'),
];
}

function writeFile(writeFilePath: string, contents: string) {
const dirPath = path.dirname(writeFilePath);
if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath);
fs.mkdirSync(dirPath, { recursive: true });
}
fs.writeFileSync(writeFilePath, contents);
}
Expand Down
19 changes: 19 additions & 0 deletions pysrc/pkg_resources/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 2016 Jason R Coombs <jaraco@jaraco.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 3a140fb

Please sign in to comment.